mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-07 00:12:13 +01:00
fix SMS example (#4094)
This commit is contained in:
parent
2f4c7279bd
commit
4a47ef5aae
@ -340,7 +340,7 @@ Relay management commands received from an authorized sender:
|
|||||||
sim800l:
|
sim800l:
|
||||||
on_sms_received:
|
on_sms_received:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if ( (id(sms_sender).state == "+79991234567") && ( (id(sms_message).state == "relay_1_on") OR (id(sms_message).state == "Relay_1_on") ) ) {
|
if ( (id(sms_sender).state == "+79991234567") && ( (id(sms_message).state == "relay_1_on") || (id(sms_message).state == "Relay_1_on") ) ) {
|
||||||
id(relay_1).turn_on();
|
id(relay_1).turn_on();
|
||||||
}
|
}
|
||||||
switch:
|
switch:
|
||||||
|
Loading…
Reference in New Issue
Block a user