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

It is possible to use 4 touch zones on 1/2/3 gang relay versions #64

Open
nstrelow opened this issue Dec 15, 2024 · 2 comments
Open

It is possible to use 4 touch zones on 1/2/3 gang relay versions #64

nstrelow opened this issue Dec 15, 2024 · 2 comments

Comments

@nstrelow
Copy link

As described (in the video I think), the touch sensor seems to have 10 zones, so technically up to 10 programmable touch fields could be used.

So I assume that one can also use 4 touch fields on a switch that only has one relay.

New face plates can be bought on itead, so one can get a black star or the animal 4 touch fields plate to replace.

I just realized this and wanted to share it. I'll test it some time if face plate switching works (I have a 3 relay one, and a few 4 relay plates).

But could be super useful for folks that want more touch (maybe building their own faceplace)

@barth11
Copy link

barth11 commented Dec 16, 2024

Imo you'd have to tweak the code a bit so it doesn't try to switch on/off the relays but theoretically speaking you can have up to 10 zones.

lambda: "return ${relay_count}==3;"

Extending this part would be a good start because you can just reuse the 3 size and add new part with 10 where you'd put 10 "ifs" to handle each touch field.
If you are happy with 4 then you can just use code of others who have it but I don't know it so in detail to tell if it wouldn't look for the 4th L relay.

@nstrelow
Copy link
Author

I use this one for my 4 relais:
#55

You can set those variables:
toggle_relay_1_on_touch: "true"
toggle_relay_2_on_touch: "true"
toggle_relay_3_on_touch: "true"
toggle_relay_4_on_touch: "true" <== this needs to be false

And then maybbe some switch should be cleaned up.

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

2 participants