-
Notifications
You must be signed in to change notification settings - Fork 1
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
1S Bulbs (color4) Timing Out #1
Comments
Try to execute git submodule update --recursive --remote to make sure you get the latest changes of the submodules I still had to update this repo to point to latest changes.
Caused you to pull a specific sha commit of the submodules (not the latest change)
This will update and point the submodules to latest remote. So you can either execute this or just delete the folder and clone again =) I pushed the fix. So the clone will pull the latest changes now as well First time working with submodules ^^ |
They’re lasting longer now but still stop working after a few minutes I’m getting this error after each interaction
and this as it stops working I think
Also curious if a delay of up to 5 seconds for the bulb to respond to an interaction is normal. |
They are on different vlans right? Have you tried putting the bulbs and ha server on the same vlan ? Yeelight released beta firmware 0033 for color4 last week, have you tried updating to it? This should fix the get_prop so you don't even need the SSDP I will be working on the miio protocol today, so you can finally say bye to LAN control. Which is buggy as hell. |
Alright, thanks. I'll give those a shot. Buggy for sure, I'm looking forward to trying out that miio protocol. |
Yeah, it might also be a security protection to only respond to broadcast packets on the same subnet.
I had to do it for miio to work accross subnets. Miio works excellent, all command behave as they should so will be pushing it soon, eg the same way Xiaomi/Yeelight communicates. Just getting the miio-tokens is an extra step to use the protocol. |
@selsoh I just fixed a bug in regards to your color4 bulb, the interaction should now also only have a delay for the first time interacting. Miio protocol has also been implemented. I also updated the README regarding VLAN Can you delete the folder and execute this again?
|
I was actually about to report earlier today on what I've tested so far. Sorry I wasn't able to get back to you sooner. Three days ago, I moved the bulbs to the same subnet as my HA server with firewall restrictions on the bulbs to only allow connections to, and from the HA server. They were still timing out. Then earlier today, I saw you've implemented the miio protocol and gave that a go (along with the setup above). Interactions became very snappy and I was hopeful that everything would be good. But they eventually stopped receiving messages despite not giving any errors in the log. I've now updated after seeing your comment, let the bulbs run for about 15 minutes and it seems they have stopped responding again. This was without changing anything from my previous setup (firewall+miio). I tried again without miio tokens and got this error after about 15 minutes.
Also, I'd like to ask how one can get into the firmware beta. I've only searched briefly and was mostly seeing people posting their Mi IDs in the forum. |
You sure they are using miio ? I added debug logs to see if miio is enabled or not. Yeah you post your Mi Id and they will add you when they see it :P You got discord or anything? |
I think I do. Here's the log, I've hidden the tokens just in case I'm supposed to. Log
|
@selsoh |
I'm also having similar issues with my color4.
and so on and so forth. Edit: Also started getting this now:
EDIT: Just an update. I've added my miio token and it's now no longer timing out. |
Both bulbs are on a separate VLAN from my HA server and don't have internet access.
I did
inside the custom_components folder
added these to my configuration.yaml
then restarted HA
they show up but time out after a few minutes or after I interact with them
The text was updated successfully, but these errors were encountered: