thanks for helping me .
now i am trying to get it to be a switch
again thanks for quick response
have a nice evening
thanks for helping me .
now i am trying to get it to be a switch
again thanks for quick response
have a nice evening
Great tips. Helped to reach my target.
captive_portal:
binary_sensor:
- platform: gpio
pin:
number: GPIO2
mode: INPUT_PULLUP
inverted: True
name: "btn"
on_press:
- delay: 500ms
- switch.toggle: relay_1
on_release:
- delay: 500ms
- switch.toggle: relay_1
switch:
- platform: gpio
name: "apasaL"
pin: GPIO0
id: relay_1
inverted: True
Nice , that you have get it to work .