Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajustments for US version? #15

Open
TommySharpNZ opened this issue Sep 1, 2023 · 10 comments
Open

Ajustments for US version? #15

TommySharpNZ opened this issue Sep 1, 2023 · 10 comments

Comments

@TommySharpNZ
Copy link

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...

@TommySharpNZ
Copy link
Author

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 :-)

@kquinsland
Copy link

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

@TommySharpNZ
Copy link
Author

Hi @kquinsland any chance you could share your entire ESPHOME yaml somewhere?

@kquinsland
Copy link

@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.

@kquinsland
Copy link

@TommySharpNZ I've gotten things "good enough" to share. My ESPHome config for the US version of the T5 switch is here

@TommySharpNZ
Copy link
Author

@kquinsland awesome!
Did you manage to keep the swipe gestures working and possibly even the speaker for announcements?

@kquinsland
Copy link

kquinsland commented Nov 27, 2023

@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:

  • So far, nobody else has managed to figure out how to drive the speaker the same way that Sonoff is / I'm not convinced that a speaker the size of my thumbnail is going to be that useful.
  • RGB lights are a lot easier to work with - native HA/MQTT support + much higher information density!
  • I prefer silent ambient notifications over anything that I might miss because the roomba is on.

@finch6
Copy link

finch6 commented Nov 28, 2023

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.

@finch6
Copy link

finch6 commented Nov 28, 2023

@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!!

@burghs
Copy link

burghs commented Jan 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants