You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/switch.mqtt.markdown
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Configuration variables:
35
35
- **name** (*Optional*): The name of the switch. Default is 'MQTT Switch'.
36
36
- **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates.
37
37
- **command_topic** (*Required*): The MQTT topic to publish commands to change the switch state.
38
+
- **availability_topic** (*Optional*): The MQTT topic subscribed to receive availability (online/offline) updates. The payload is the same for the command_topic.
38
39
- **payload_on** (*Optional*): The payload that represents enabled state. Default is "ON".
39
40
- **payload_off** (*Optional*): The payload that represents disabled state. Default is "OFF".
40
41
- **optimistic** (*Optional*): Flag that defines if switch works in optimistic mode. Default is `true` if no `state_topic` defined, else `false`.
0 commit comments