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

Sonoff configured as 2-way switch - is it possible? #300

Closed
xoseperez opened this issue Nov 29, 2017 · 8 comments
Closed

Sonoff configured as 2-way switch - is it possible? #300

xoseperez opened this issue Nov 29, 2017 · 8 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis)


Is it possible to do this? When one SONOFF T1 is connected to 220V and directly to the lamp, the other is only 220V connected. And the status changes both at MQTT?
This would be a very useful feature. You can use Sonoff T1 3 gang together with 3 separate Sonoff T1 1 gangs, each with its own MQTT channel to exchange status.

Thanks a lot!
Marius

sonofft1.png

@xoseperez
Copy link
Owner Author

This could be done adding a feature to the firmware to define a "group" topic where all the devices sharing the same group should listen to it and sync its status according to it. They will have to publish their status to the group topic only if it has changed based on an input different from the group topic itself.
I think this should not be hard to implement. Maybe for the next release.

@xoseperez
Copy link
Owner Author

Original comment by laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis):


Good news! Thanks!

@xoseperez
Copy link
Owner Author

Original comment by J Hendricks (Bitbucket: joeyhza, GitHub: joeyhza):


Awesome news - Thanks Xose

I'm currently using Tasmota to accomplish this - firmware accommodates Group Topic and works well. However when Espurna with group topics gets released I can at least flash all my Sonoff Basics with the new version, currently running a mix of Espurna for my Sonoff Duals and Tasmota for my Sonoff Basics - would rather just run the same firmware for all

@xoseperez
Copy link
Owner Author

Original comment by laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis):


Did i understand well? Groups will be described for the device itself? (then you will not be able to connect one 3 gang with different gang switches). Or it might be more useful if the groups could be described by the different relays?
Example - One SONOFF T1 3 gang will be able to control 3 lamps: 1 lamp will be separately controlled: SONOFF T1 1 gang, the other two separate: SONOFF T1 2 gang. Such a solution would be very good.

Thanks
Marius

Sonoff-T1.png

@xoseperez
Copy link
Owner Author

I have just pushed a first version of it to the dev branch, just incase you want to test it. @laurinaitis , groups are defined per relay (each gang in a T1 3CH could have a different group topic), so you will be able to do what you describe.

You can also define some of the devices/relays to use an inverse logic from the group, so you could pair a couple of smart switches so when you turn one on the other goes off.

@xoseperez
Copy link
Owner Author

Original comment by laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis):


Thank You, so fast! I will definitely try! I'll let you know how I'm doing.

Marius

@xoseperez
Copy link
Owner Author

Released with 1.10.1

@xoseperez
Copy link
Owner Author

Removing milestone: 1.10.1 (automated comment)

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

No branches or pull requests

1 participant