Open TommySharpNZ opened 1 year ago
I had an attempt at doing this myself and also tried to do a search/replace of "left" with "top" and "Right" with "bottom" to take into account that on this switch you swipe from the top to bottom instead of left to right....
But that got me in a total mixup and so I'll have to start from scratch again or wait and see if anyone else has an attempt :-)
Here's a snip from my own ESPHome configs:
US version has 32 LED around the perimeter of the switch.
The silk screen on the PCB starts counting at 1 but esphome starts counting at 0
From the front of the switch, mounted in traditional "tall" orientation:
- Top right corner going down the right side
LED 32, 1-9
- Bottom right corner going across the bottom to the left
LED 10-15
- Bottom left corner going up the left side
LED 16-25
- Top left corner going across the top to the right
LED 26-31
Hi @kquinsland any chance you could share your entire ESPHOME yaml somewhere?
@TommySharpNZ
I am not really using any of the example yaml from this repo, just the custom component for abstracting away touch events as I have some "unique" needs / functionality that I want to get out of the device. I am currently hitting some annoying limitations w/ the partition
type lights and some other stuff. Assuming I can get these doing what I want, I'll write something up and share but not any time soon; I get a few hours/month (not super contiguous!) to hack on development for this.
You should be able to adjust the reference yaml from this repo now that you know the US version has a different number of LEDs and how they're numbered around the perimeter.
@TommySharpNZ I've gotten things "good enough" to share. My ESPHome config for the US version of the T5 switch is here
@kquinsland awesome! Did you manage to keep the swipe gestures working and possibly even the speaker for announcements?
@TommySharpNZ
Did you manage to keep the swipe gestures working
My needs are basic so I didn't use anything but the on_touch
hook from the custom component but you absolutely can plumb back in the on_release
or on_swipe_{right,left}
... etc hooks for your needs.
and possibly even the speaker for announcements?
I don't use the native API for a variety of reasons and home assistant doesn't support media players over MQTT so there's no "easy" way to get a test bed up. There is now a template text component so it might be possible to plumb that to the i2s speaker but I didn't bother for a few reasons:
I would also really like this!
Don't know enough about ESPHome/Home Assistant just yet, but realise I'm being left behind in the rat race of home automation, so making the jump... So still learning day by day.
Hoping to be able to just "point" the config at "github://SmartHome-yourself/sonoff-tx-ultimate-for-esphome/tx_ultimate_US_3Gang.yaml@main" or something like that in the ESPHome .yaml file.
Happy to help with testing and what not as I have a spare US 3 Gang that I'm not using at the moment, sop can set it up to help test if need be.
@TommySharpNZ I've gotten things "good enough" to share. My ESPHome config for the US version of the T5 switch is here
I need to look into this a bit more, looked a bit overwhelming when I first looked... But I think this is my key to getting it setup!!
Hi all, I also have the 3 Gang TX ultimate US version which I am attempting get LED’s to illuminate alongside the respective gang touchpad being activated. Is the documented method kquinsland shared the only way one can get this to work or has anyone else perhaps had success making changes to the existing EU config to adapt to US?
The US version has a rectangle shape instead of a square shape... What do we need to update to make the LEDs work nicely? For example, at the moment the leds that light up do not correspond with the toch area on my 3 gang switch...