Add Sonoff S20 complete example

This commit is contained in:
Otto Winter 2018-06-03 13:01:39 +02:00
parent e238eb4e54
commit d417d528ca
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -294,6 +294,8 @@ in Home Assistant, replace the last part with this:
name: "Sonoff S20 Relay"
output: s20_relay
To make pressing the button on the front toggle the relay, have a look at the `the complete Sonoff S20
with automation example <https://github.com/OttoWinter/esphomeyaml/blob/master/examples/sonoff_s20.yaml>`__.
Upload the firmware again (through OTA or Serial) and you should immediately see
something like this in Home Assistant because of esphomeyaml's automatic MQTT discovery. (You'll