-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
4CHR3 cannot turn on multiple channels. #130
Comments
Hi, Edit: |
I have my device shared with a secondary account so I could login to Ewelink with two phones. This is because the Ewelink app on iOS doesn't seem to be able to add new devices anymore so I had to use another android phone to setup switches. Ewelink seems to only allow one login at a time and I read somewhere on Reddit that sharing devices work so thats what I have right now. |
Having two ewelink accounts was needed until recently. Please try logging into your main ewelink account in hoobs. And it shouldn’t log out out of your own phone app. And i also believe this will fix your original issue! |
Thanks for the quick help. I switched off sharing and used a single account for my phone and the plugin. The issue still persists. I made sure that interlocking is disabled in the Ewelink app as well. Here is a log for the same actions without sharing mode. I also attached a screenshot of the log in the Ewelink app.
|
This line here
makes me question of your device has a stable internet connection? Is the device on your home network? The time differences between the logs and the screenshot you send are about 5 minutes apart? In general, the issue you are having is that the plugin is not receiving "ok" responses from eWeLink when you send a device update, and so the plugin doesn't update what it thinks the state of the devices are. |
The 4CH has strong internet connection but is on another Wifi access point and thus SSID. I have multiple APs throughout my house all linked through LAN. The response time is instant so I don't think its a signal stregnth issue. My phone and computer has been connected to the same AP and SSID the HOOBS is on this whole time. The log screenshot is me performing the same actions a few minutes after I pasted the HOOBS log so the time doesn't match up. Sorry I did not make that clear. Maybe there is an issue with getting an issue with getting an "ok" response from the 4CH because its on another AP? My phone controls it just fine with the Ewelink app regardless of which AP its connected to though. |
This shouldn't be the case. This is the reason why the plugin can't detect your device through LAN mode, but, the 'ok' updates from eWeLink are sent straight to Homebridge, not via the device. The plugin is receiving some sort of response from eWeLink each time you try to control the device:
It is just not very informative, and not in the format of a usual standard response. This is what is puzzling me. Is there the option of giving this device a static IP over your local network? |
I currently can't set a static IP for it yet. For some reason I can't access the control panel for that specific AP when I put in it's IP. I'll try moving the 4CH to another AP for now and see if that changes anything. |
At the moment your device is being controlled over the cloud, and for some reason it's not receiving updates back from eWeLink. If you are able to give the device a static IP then you can use the Let me know if you are able to give the device a static IP and I can help you with the setup for the plugin. |
Please update to v3.11.1 you might find an improvement :) |
Really appreciate the help you've been giving me so far. Some weird things to report with the latest update though! I haven't got around to changing the network setup yet so we can still try a static IP once I figure out my AP's control panel. Right after updating I tried out the usual sequence and the both switches stayed on. However the third and fourth switch started malfunctioning where toggling SW1 will also toggle SW3. I didn't have much time to test it out and enable debugging log then so I left it and came back today. Fortunately the weird stuff stopped but it's back to how it was before the update. Here's the log for it:
|
Would it be possible to message you on the Homebridge Discord? |
Hi there guys, I am having the same issue as well.. Edit: I only use one account on Ewelink and on the HOOBS plugin of yours yet I still face the same issue. |
@fizulnizam https://github.com/bwp91/homebridge-ewelink/wiki/Beta-Version#hoobs |
Came here as new homebridge user, trying to figure out how to code my config correctly to use a 4Ch-RF Smart Switch. Forgive me if this is a bumb question. I note in the device settings there is an interlock feature that is designed to produce this behavior. Has it been enabled within the e-Welink app by the end user or is it being enabled by the plugin? |
Hi @TassiRob
As I have not implemented any sort of interlock feature in the plugin? Which setting are you talking about? |
Within the eWeLink App one of the deivce settings for the 4 channel switch that I have is an "Interlock" option that is described as producing this precise behavior. |
The plugin does not turn on/off the interlock feature of any device, if that is what you are asking. If you have interlocking turned on for the device, the plugin should mimic the behaviour of this from the updates that it gets from eWeLink. I hope I am answering your questions :) |
I am not being clear. My question was speculation about what was causing the problem for the original poster. |
@TassiRob its okay you were just trying to help.. Just for your information, I have checked whether or not interlock was enabled in the ewelink app but no it was not. I tried enabling and disabling the interlock feature but there wasn't difference to how the switch behaved. Am trying to install the beta version now, will update the progress soon. |
Ahh @TassiRob now I understand! I thought you were having an issue yourself with the interlock getting turned on somehow! I appreciate your suggestion here 👍 |
@fizulnizam the slight delay I have had to introduce to fix a separate issue. It’s a delay of a random time between 0 and 1 second, so hopefully it’s not too irritating! |
v3.12.0 seems to resolve this issue :) |
Gonna get this issue closed as @fizulnizam you've said its's working okay and @Peetey we got this sorted on the discord. |
What issue do you have? Please be as thorough and explicit as possible.
I have a 4CHR3 installed and working perfect through the eweLink app. All channels can be turned on and off independently without issues. However, I noticed that I cannot have more than 1 channel turned on through Homebridge. If I turn CH1 on then turn CH2 on, then it will turn off CH1. This applies to every channel, turning on a single channel will turn off all other active channels. The master switch CH0 still functions correctly. Homekit and HOOBS will still show the switches as on even though they're off.
Example:
The log below shows the steps I mentioned in the example above right after a fresh restart of HOOBS. It seems to be turning off other switches when I turn on one of them and turning everything off when 1 is turned off.
...
Details of your setup.
Do you use Homebridge or HOOBS?
HOOBS with a TadoAC plugin as the only other plugin.
...
Which version of Homebridge/HOOBS do you have?
3.2.9
...
Which version of this plugin (homebridge-ewelink) do you have?
3.10.0 but the issue has been there before I updated from 3.5
...
Please paste any relevant logs below. It helps if you can turn
debug
anddebugReqRes
in the package settings for more thorough logging....
The text was updated successfully, but these errors were encountered: