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

Endless loop when switching ON OFF very fast in domoticz #120

Closed
xoseperez opened this issue Apr 6, 2017 · 3 comments
Closed

Endless loop when switching ON OFF very fast in domoticz #120

xoseperez opened this issue Apr 6, 2017 · 3 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Anonymous


Hi,

I have an issue with a Sonoff Touch Switch that has Espurna firmware.

If I switch very fast the On Off toggle button in Domoticz, the switch enters in an endless loop and I have cut off the power to stop it.

Then I changed a bit the firmware to make the reacting time of the physical switch button smaller so that when I push the switch button to instantly turn on the light. Everything was OK until I tried to switch ON OFF very fast. The same thing happened. It entered in an infinite loop.

Now, when i disconnected the MQTT connection and switched the physical button very fast, the endless loop disappeared.

It seems that MQTT publishes the status, Domoticz gets it and then publishes back to Espurna.

How can solve this issue?

Thanks!

@xoseperez
Copy link
Owner Author

A fix for this issue has been merged into dev branch recently: https://bitbucket.org/xoseperez/espurna/pull-requests/16, it will be released as 1.7.2 soon. In the meantime you can use the dev branch.

@xoseperez
Copy link
Owner Author

Pushed to master with version 1.8.0.

@xoseperez
Copy link
Owner Author

Removing milestone: 1.8.0 (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