Edit esp-reterminal-e1001.yaml
This commit is contained in:
@@ -1443,7 +1443,7 @@ mqtt:
|
|||||||
|
|
||||||
on_message:
|
on_message:
|
||||||
- topic: "${mqtt_command_topic}/deepsleep"
|
- topic: "${mqtt_command_topic}/deepsleep"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(sleep_allowed) = true;
|
id(sleep_allowed) = true;
|
||||||
@@ -1453,12 +1453,12 @@ mqtt:
|
|||||||
- logger.log: "Deep sleep ALLOWED by retained MQTT command."
|
- logger.log: "Deep sleep ALLOWED by retained MQTT command."
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: "${mqtt_status_topic}/deepsleep"
|
topic: "${mqtt_status_topic}/deepsleep"
|
||||||
payload: "ON"
|
payload: "On"
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- topic: "${mqtt_command_topic}/deepsleep"
|
- topic: "${mqtt_command_topic}/deepsleep"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(sleep_allowed) = false;
|
id(sleep_allowed) = false;
|
||||||
@@ -1467,7 +1467,7 @@ mqtt:
|
|||||||
- logger.log: "Deep sleep PREVENTED by retained MQTT command."
|
- logger.log: "Deep sleep PREVENTED by retained MQTT command."
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: "${mqtt_status_topic}/deepsleep"
|
topic: "${mqtt_status_topic}/deepsleep"
|
||||||
payload: "OFF"
|
payload: "Off"
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: true
|
retain: true
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
|
|||||||
Reference in New Issue
Block a user