mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-05 09:20:08 +01:00
Update sim800l.rst (#893)
This commit is contained in:
parent
9edb71d594
commit
b5e9683e03
@ -160,6 +160,23 @@ To trigger the automation from Home Assistant you can invoke the service with th
|
||||
recipient: "+15551234567"
|
||||
message: "Hello World!"
|
||||
|
||||
|
||||
Relay management commands received from an authorized sender:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
sim800l:
|
||||
on_sms_received:
|
||||
- lambda: |-
|
||||
if ( (id(sms_sender).state == "+79991234567") && ( (id(sms_message).state == "relay_1_on") OR (id(sms_message).state == "Relay_1_on") ) ) {
|
||||
id(relay_1).turn_on();
|
||||
}
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: relay_1
|
||||
pin: 0
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user