Update sim800l.rst (#893)

This commit is contained in:
tyomikh 2020-12-21 02:36:09 +03:00 committed by GitHub
parent 9edb71d594
commit b5e9683e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,23 @@ To trigger the automation from Home Assistant you can invoke the service with th
recipient: "+15551234567" recipient: "+15551234567"
message: "Hello World!" 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 See Also
-------- --------