Hello there,
I have a home setup with 3 E16S boards running ESPHome. Each one is connected to a series of HAv2 breakout boards through the RS485 bus.
I'm using momentary switches very similar to the ones you sell, but they are from a different supplier.
Each wall switch has digital inputs (K1 to K6, dry contact) and digital outputs (D1 to D6 - LEDs).
LEDs go WHITE if I short Dx to GND. Otherwise, they stay AMBER
In the YAML (attached), I configure every Kx press to:
- Flip an output of the E16S
- Flip an output of an HAv2 (Dx) so that the LED is White/Ambar based on the relay state
The issue I'm having is inconsistent behavior between presses and LEDs. Sometimes presses are ignored.
With ChatGPT's help and logs, we've figured out that the issue happens due to collisions on the RS485 bus:
Repeated key presses collide with ESPHome's "reply" to flip the LED. This happens especially when:
- A kid spams a switch
- Someone presses two switches "at the same time"
Is there a way to avoid this collision? Can you implement bus access arbitration in HAv2?
I have a home setup with 3 E16S boards running ESPHome. Each one is connected to a series of HAv2 breakout boards through the RS485 bus.
I'm using momentary switches very similar to the ones you sell, but they are from a different supplier.
Each wall switch has digital inputs (K1 to K6, dry contact) and digital outputs (D1 to D6 - LEDs).
LEDs go WHITE if I short Dx to GND. Otherwise, they stay AMBER
In the YAML (attached), I configure every Kx press to:
- Flip an output of the E16S
- Flip an output of an HAv2 (Dx) so that the LED is White/Ambar based on the relay state
The issue I'm having is inconsistent behavior between presses and LEDs. Sometimes presses are ignored.
With ChatGPT's help and logs, we've figured out that the issue happens due to collisions on the RS485 bus:
Repeated key presses collide with ESPHome's "reply" to flip the LED. This happens especially when:
- A kid spams a switch
- Someone presses two switches "at the same time"
Is there a way to avoid this collision? Can you implement bus access arbitration in HAv2?

