Supla with Home assistant error

User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

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.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

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

Post

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
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

i do not know what to set here:

state_topic: "**********************************************"
command_topic: "**********************************************"
availability:
- topic: "*************************"
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

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.
SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

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"
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Yes, but there are spaces before - topic: etc.
SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Something is wrong...any idea?
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

The following are under availability. They should have indentations.
- payload_available: "true"
- payload_not_available: "false"
SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Now its aviable but open and close do not work.
Mybey comman line change execute_action to set?

Return to “Help”