Hi,
I am trying to improve my (single) touch sensors by swapping them out for these “quad-sensors”:
These require 4 IO’s and are practically 4 separate sensors on one PCB.
What I want to achieve:
- Single tap on any of the 4 sensors switches a Home Assistant light on/off to the last (brightness) state.
- Long press on any of the 4 sensors will turn on to 100% brightness
- Swiping from left to right (hitting only 2 IO’s in a row) will brighten a light by 5% in Home Assistant. Swiping from right to left will dimm by 5%.
This needs to work for sensors 1>2, 2>3, 3>4 or 2>1, 3>2, 4>3 - Swiping from left to right (hitting only 3 IO’s in a row) will brighten a light by 10% in Home Assistant. Swiping from right to left will dimm by 10%.
This need to work for 1>2>3, 2>3>4 or 3>2>1, 4>3>2 - Swiping from left to right (hitting all 4 IO’s in a row) will brighten a light by 15% in Home Assistant. Swiping from right to left will dimm by 15%.
So 1>2>3>4 or 4>3>2>1
I have no clue on how to get this done.
Can anyone help me out?
Cheers,
Michel