Closed mlares85 closed 6 years ago
You have it under the sensor
section. If you're trying to use that pin to control a relay it needs to go in a new switch
section. Take a second look at the example in the docs.
https://esphomelib.com/esphomeyaml/cookbook/relay.html
Alternately, if you're trying to use that pin as an input then you want binary_sensor
:
https://esphomelib.com/esphomeyaml/components/binary_sensor/gpio.html
Yeah I see it now. I saw switch and sensor and for some reason only saw 'sensor' and thought it was just an additional sub setting to the sensor section.
Thanks.
I add the code for using a relay but it doesn't pass the verify step. *Nodemcu V2
Code: