-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Plug sometimes immediately switches back to previous state #22
Comments
I've got the same problem. From my observations, it seems to matter what is connected to the plug (or where in the house the plug is plugged in?). I've been using 3 plugs for my aquarium (lights, etc) for several months, controlled by MQTT with Home Assistant. During this timeframe, I've seen the following:
I then disconnected the first plug from the aquarium tech and plugged it into another wall outlet in my house, with nothing plugged into the plug. It is still connected to WiFi and Home Assistant,uses the same Home Assistant schedule, and still switches on and off 4 times a day. But the problem of immediately switching back to the old state has never happened since, according to the Home Assistant logs. Therefore, I assume it has something to do with whats plugged into it or which outlet is being used (or maybe whether or not there is an extension cord involved?) |
I suspect that this is related to spikes in the AC line caused when the relay toggles. I'll increase/improve the button debounce time (maybe even make it configurable). |
I will add config settings for the button debounce timers. |
Thank you! I am looking forward to this and I will test it. :) |
Great to see you working on this firmware again and thanks a lot! Some days ago, the official app of my switches stopped working (Connection timeout). All alternative apps (Rittig, NEO, Rec Plus) in the Google Play store stopped working at the same time. Seems like the backend cloud servers are not available anymore. This might be a temporary issue, but if it's persistent, then your firmware could be the saviour for thousands of switches ;) |
Please test with latest release (1v1). |
Re-open if that doesn't solve the issue. |
First of all i want to thank you for your great work as this code makes a wifi extension cable (OBI Steckdosenleiste 3-fach Weiß mit WIFI Alexa-kompatibel) useable for me. But i have the same error that it sometimes switches back to the off-state if i want to switch it on. I tried to set debounce-time to various values, but still no difference. Maybe you find a solution in the firmware for this issue. |
First of all: Thank you for your amazing work! It's great to have this kind of device to be controllable by home assistant!
Unfortunately I'm experiencing a strange problem
When I control the plug by MQTT or HTTP sometimes it switches immediately back to its previous state. For example:
If I send a 1 and the current state is 0 then it switches to 1 and immediately back to 0. And vice versa.
Strange enough this only happens sometimes.
I learned from some other issue on here that I can see the last trigger of status change on the /status page. So I did and when this problem occurs it reads the following:
Relay: Open(Off), last changed by: SWITCH, publish: 1, action: 2
So it seems to me that the plug magically overrides the input sometimes.
Any ideas on this one?
But thanks anyway for your project, I really like it! :)
Thank you in advance.
The text was updated successfully, but these errors were encountered: