I have a lot of sonoff light switches, and I only just noticed that only one binary sensor works at then same time. (my tasmota devices have the same behavior)
So when I press both switches together only 1 is triggered.
when I press 1 switch and hold it, this one is triggered
but the second one won’t be triggered unless I release the first one first.
but I want my switches to work independently, so I can press both at the same time.
my config looks like this:
esp8266:
board: esp8285
restore_from_flash: true
early_pin_init: false
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
id: button_1
on_press:
then:
- switch.toggle: switch_1
- platform: gpio
pin:
number: GPIO9
mode:
input: true
pullup: true
inverted: true
id: button_2
on_press:
then:
- switch.toggle: switch_2
switch:
- platform: gpio
name: ${switch_name_1}
pin: GPIO12
id: switch_1
on_turn_on:
then:
- script.execute: set_status_led
on_turn_off:
then:
- script.execute: set_status_led
- platform: gpio
name: ${switch_name_2}
pin: GPIO5
id: switch_2
on_turn_on:
then:
- script.execute: set_status_led
on_turn_off:
then:
- script.execute: set_status_led
light:
- platform: status_led
id: stat_led
pin:
number: GPIO13
inverted: yes
script:
- id: set_status_led
then:
- if:
condition:
or:
- switch.is_on: switch_1
- switch.is_on: switch_2
then:
- if:
condition:
- light.is_on: stat_led
then:
- light.turn_off: stat_led
- delay: 200ms
- light.turn_on: stat_led
else:
- light.turn_off: stat_led
mode: restart
is this possible or is this some kind of limitation of the chipset?