Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions source/_components/switch.mqtt.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ state_topic:
description: The MQTT topic subscribed to receive state updates.
required: false
type: string
state_on:
description: The payload that represents the on state.
required: false
type: string
default: ON
state_off:
description: The payload that represents the off state.
required: false
type: string
default: OFF
command_topic:
description: The MQTT topic to publish commands to change the switch state.
required: false
Expand Down Expand Up @@ -117,6 +127,8 @@ switch:
availability_topic: "home/bedroom/switch1/available"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: true
Expand Down