02-20-2024, 05:01 PM
ok, I will think about.
I have some troble with analog input used as binary sensor.
This is the code I'm using
- platform: gpio
name: "p_off_camera"
pin:
number: 32
inverted: true
on_press:
- switch.turn_off: l_camera_1
- switch.turn_off: l_comodino_dx
But when I insert the connector with my push button, I have a lot of "events" linked to other button!
I have some troble with analog input used as binary sensor.
This is the code I'm using
- platform: gpio
name: "p_off_camera"
pin:
number: 32
inverted: true
on_press:
- switch.turn_off: l_camera_1
- switch.turn_off: l_comodino_dx
But when I insert the connector with my push button, I have a lot of "events" linked to other button!