sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
939 stars 220 forks source link

Reboot/Disconnect in loop after adding bulbs #750

Closed MrSiO closed 2 years ago

MrSiO commented 2 years ago

Hello.

I'm having an issues with my hub that began recently after adding 5 rgb_cct to my setup that already contained 3 rgbw bulbs.

Originally I was running on 1.10.7 (d1_mini_PRO) but upgraded to 1.1.8 around the same time I added my 5 new bulbs.

(Downgraded back to 1.10.7 but no luck - same issue)

Symptoms : the hub is now rebooting/loosing connectivity in loop every 1 to 3 minutes.

I get the following error trough MQTT:


{"status":"disconnected_unclean","firmware":"milight-hub","version":"1.10.7","ip_address":"10.10.107.14","reset_reason":"Software/System restart"}

After a hard reset (USB unplugged and replug) I now have this slightly different message:

{"status":"disconnected_unclean","firmware":"milight-hub","version":"1.10.7","ip_address":"10.10.107.14","reset_reason":"External System"}

I can see from my wifi ap that the connection uptime never gets over 3 minutes.

Extra info : At first try I added the rgb_cct as rgbw in the GUI (my bad). To fix this, I downloaded the config, replaced rgbw with rgb_cct and re-uploaded the config... no special character all was modified in VIM.

Q: I would not mind wiping the config and starting over, but my bulbs are up high on the roof and don't want to have to climb up there to pair again. If I factory reset and then set back the same 0x1234 ID, would I still need to pair back?

Thx alot.

MrSiO commented 2 years ago

/about

 {"firmware":"milight-hub","version":"1.10.7","ip_address":"10.10.107.14","reset_reason":"External System","variant":"d1_mini_PRO","free_heap":16072,"arduino_version":"2_4_2","queue_stats":{"length":0,"dropped_packets":0}} 
sidoh commented 2 years ago

Are you able to get serial logs? Hard to tell what's going on without those.

Can confirm you won't need to re-pair lights if you wipe the ESP.

MrSiO commented 2 years ago

I will start with a factory reset and get the serial infos if not fixed.

Fun fact: I just noticed that the Hub is only having issues when my lights bulbs are ON? And they seem to affect my entire 2.4ghz network including the hub.

So the issue probably ain't related to the hub but to my 2.4Ghz network. Will do a few more validation and get back to you.

Side question : miLights bulbs are only 2.4Ghz receivers right? No transmission?

If so I don't understand why being ON would affect my 2.4Ghz...

MrSiO commented 2 years ago

FYI I'm closing this issue. It turns out many led bulbs and smart bulbs are notorious for interference in the 2.4Ghz range.

This is clearly my issue (just installed those for Christmas...)

Not sure what my next move will be. Thx for your time.

sidoh commented 2 years ago

Oh yikes, that's no good! For what it's worth, I've not had this problem with any of my bulbs.

Glad you've got it figured out.

MrSiO commented 2 years ago

Ya. And you know what is even weirder? When the bulbs are in white mode or fixed color mode: no problem.

But when they are set to mode (my case I was set to mode 0 - disco) then the interference is making my 2.4ghz drop.

For the records: I'm using all Unifi product. AP lite for wifi.

Go figure .

On Wed., Nov. 24, 2021, 19:46 Chris Mullins, @.***> wrote:

Oh yikes, that's no good! For what it's worth, I've not had this problem with any of my bulbs.

Glad you've got it figured out.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/sidoh/esp8266_milight_hub/issues/750#issuecomment-978620573, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4PN4BVRKAK5WUZ436MJKTUNWBN7ANCNFSM5IU6SXQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

sidoh commented 2 years ago

Oh, interesting.

The only time Milight bulbs transmit anything is during animation effects, presumably to synchronize transitions with other bulbs.

MrSiO commented 2 years ago

Ho really? I was looking for documentation on that.

That's probably my issue

Thx again for your help.

If I find a good workaround I'll let you know.

On Wed., Nov. 24, 2021, 20:46 Chris Mullins, @.***> wrote:

Oh, interesting.

The only time Milight bulbs transmit anything is during animation effects, presumably to synchronize transitions with other bulbs.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/sidoh/esp8266_milight_hub/issues/750#issuecomment-978725674, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4PN4GOEUBISYXBV4LV4DTUNWIOVANCNFSM5IU6SXQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

sidoh commented 2 years ago

Haha yeah I only know about it because I noticed it show up in radio logs while I was working on reverse-engineering the protocol. Have some notes in an old issue. Unfortunately not aware of a way to turn it off.