mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
Change on_message topics into a yaml list (#867)
This commit is contained in:
parent
14af7df38a
commit
1d7c9a3413
@ -123,14 +123,14 @@ Useful for
|
||||
mqtt:
|
||||
# ...
|
||||
on_message:
|
||||
topic: livingroom/ota_mode
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.prevent: deep_sleep_1
|
||||
topic: livingroom/sleep_mode
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.enter: deep_sleep_1
|
||||
- topic: livingroom/ota_mode
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.prevent: deep_sleep_1
|
||||
- topic: livingroom/sleep_mode
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.enter: deep_sleep_1
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
Loading…
Reference in New Issue
Block a user