mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Fix mqtt button entity full example (#20659)
This commit is contained in:
parent
1033f4a5d9
commit
6f7e4c3fc5
@ -188,11 +188,10 @@ button:
|
|||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
unique_id: bedroom_switch_reboot_btn
|
unique_id: bedroom_switch_reboot_btn
|
||||||
name: "Restart Bedroom Switch"
|
name: "Restart Bedroom Switch"
|
||||||
state_topic: "home/bedroom/switch1"
|
|
||||||
command_topic: "home/bedroom/switch1/commands"
|
command_topic: "home/bedroom/switch1/commands"
|
||||||
|
payload_press: "restart"
|
||||||
availability:
|
availability:
|
||||||
- topic: "home/bedroom/switch1/available"
|
- topic: "home/bedroom/switch1/available"
|
||||||
payload_press: "restart"
|
|
||||||
qos: 0
|
qos: 0
|
||||||
retain: false
|
retain: false
|
||||||
entity_category: "config"
|
entity_category: "config"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user