You need to add appropriate entries to configuration.yml.
You should consider what kind of device this valve should be visible in the HA and what functions it should have.
Supla with Home assistant error
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
Yes i know that theori but i hope that may U will have any pies of code for valves…
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
mqtt:
- switch:
unique_id: Valve_switch
name: "Water Valve switc"
state_topic: "**********************************************"
command_topic: "**********************************************"
availability:
- topic: "*************************"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: true
- switch:
unique_id: Valve_switch
name: "Water Valve switc"
state_topic: "**********************************************"
command_topic: "**********************************************"
availability:
- topic: "*************************"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: true
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
i do not know what to set here:
state_topic: "**********************************************"
command_topic: "**********************************************"
availability:
- topic: "*************************"
state_topic: "**********************************************"
command_topic: "**********************************************"
availability:
- topic: "*************************"
-
pzygmunt
- Posts: 20302
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
- Been thanked: 59 times
state_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/closed"
command_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/execute_action"
payload_on: "CLOSE"
payload_off: "OPEN"
state_on: "true"
state_off: "false"
retain: false
availability:
- topic: supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/connected
- payload_available: "true"
- payload_not_available: "false"
More or less. I may have made a mistake in copying the IDs from your screenshot.
command_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/execute_action"
payload_on: "CLOSE"
payload_off: "OPEN"
state_on: "true"
state_off: "false"
retain: false
availability:
- topic: supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/connected
- payload_available: "true"
- payload_not_available: "false"
More or less. I may have made a mistake in copying the IDs from your screenshot.
SUPLA.... Nareszcie w domu.
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
So like that:
mqtt:
switch:
unique_id: Water Valve switch
name: "Uzaver vody"
state_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/closed"
command_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/execute_action"
payload_on: "CLOSE"
payload_off: "OPEN"
state_on: "true"
state_off: "false"
retain: false
availability:
- topic: supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/connected
- payload_available: "true"
- payload_not_available: "false"
mqtt:
switch:
unique_id: Water Valve switch
name: "Uzaver vody"
state_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/closed"
command_topic: "supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/execute_action"
payload_on: "CLOSE"
payload_off: "OPEN"
state_on: "true"
state_off: "false"
retain: false
availability:
- topic: supla/988d8c3e919ea6b60c5ea0e8c2b865d6/devices/4277/channels/8463/state/connected
- payload_available: "true"
- payload_not_available: "false"
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
Something is wrong...any idea?
You do not have the required permissions to view the files attached to this post.
-
moravec.frantisek
- Posts: 21
- Joined: Tue Sep 26, 2023 3:24 pm
Now its aviable but open and close do not work.
Mybey comman line change execute_action to set?
Mybey comman line change execute_action to set?
