WLED Random Turn On

Having a problem with WLED integration. Have tried numerous drivers (Joyfulhouse, WLED, Hypercube)...all wirk as expected apart from the strange behavior of randomly turning on.

Im running WLED on ESP8266. Ive tried changing setting and reading numerous threads, but there is nothing that addresses this problem. Hoping someone can assist.

Many thanks

Anything in hub logs ?

Nothing but on and off commands. And they all seem to correspond to when I turned them on/off. Anything else i can check? It's funny that the activity happens willy-nilly. Thanks again.

Go to Settings, Network Settings, and make sure that the periodic Bonjour service restart is turned off.

2 Likes

I've done that. Will monitor and report back. Thanks for the tip.

1 Like

If that setting was on before, it should do the trick. It has specifically been known to cause issues with WLED. I think it was making them disconnect for someone else, so maybe yours is reconnecting in an On state for some reason.

@bobbyD maybe this should be off by default? This is the third time I can recount recently, where we had people turn this off due to issues it causes.

IMO everyone should turn this setting off. Even if you don't notice that it is causing problems on your LAN, trust me, it is.

4 Likes

That seems to have solved the issue. I did find one set of lights On during the overnight, but so far today, no reoccurances. I'll monitor throughout the day to make sure things are stable.

Many thanks.

1 Like

Well, i thought problem solved.....but issue persists. Anything further i can try?

FWIW, the device event logs show 'switch' as 'off' even though the strip is on.

Thanks again for the help.

So there is nothing in the event history for the device other than the prior off command? It turned on by itself, and did not report the change to the hub? This sounds like a device issue, unrelated to the hub.

Do you have the device connected directly to any other systems, Home Assistant, Alexa, etc...?

Can you post a screenshot of the event history for the device, and also what approx time did it turn on by itself?

Does it stop if your Hubitat is not powered? Or not plugged into the router? Just want to confirm there is no other cause.

@jtp10181....yes, they turn on by themselves. Not sure what time exactly....just walked into the area and they were on....sometime after 1045 though. The devices are not connected to any other system. I have the WLED app on my phone, but other than that..

Heres a screenshot you requested:

@aaiyar....if I disable the virtual device, then all is well.

If disabling the device in Hubitat stops the issue, then it is a driver problem.

Does the driver have any sort of scheduled jobs to refresh or ping the device? If so can you disable it?

I dont have either running. Strangest thing, all have remained off for the couple hours.....may stay that way for however long, but maybe not. I have 7 different WLED devices and the random 'on' can occur on any of them whenever.

Should it be an ESP32. Would this make a difference?

Was the driver written for ESP32? Wasn't aware.....my bad. Eeverything else works perfectly....just that one, annoying problem.

I'm not sure, just a hunch. Do a spot of research and feedback. I'm likely to be wrong here but thought I'd throw the suggestion out there for critique.

Update to this situation -- Seems like spontaneous "on" is occuring during the middle of the night.....some time between 9pm and 4:30am. And if I get up and find them on, turn them off and go back to bed, it may or may not happen again.....usually does though.

All WLED instances are fine during the day (4:30am-9pm), when all the activity takes place. Is there something HE does during the night that could cause this behavior?

I have checked wiring, etc and tried some things from the WLED settings, but no go.

I can make things work using GET and POST commands, but if I can figure out this quirky thing, I'd much rather use this driver for sure.

Thanks again.

So you said with the driver/device disabled the problem stops? So I think then the driver itself must be doing something. I wonder if it keeps a constant open connection with the WLED?

Can you give a link to the driver code? I can check and see if it has and scheduled tasks.

Or also, you can just check the Scheduled Jobs tab of the device, see if there is anything scheduled?

One other thought, what is your Wifi setup? Some routers and mesh systems do an overnight "optimization" which may change the Wifi Channels. Often times you can disable the feature. This used to be one of the things that would boot Hubitat offline constantly. I wonder if the WLED is getting booted offline and then when HE reconnects the driver you are using turns it on for some reason?

@jtp10181
Heres the link....its the joyfullhouse driver:

I checked the scheduled tasks and there are none scheduled.

Im using a Nighthawk Rax80 router. Took a cursory look but didnt see anything like a night time heal happening.

Thanks for your help.

You must have the refresh disabled?

Looks like debug logging should stay on indefinitely if turned on, turn on the debug logging and see if anything gets captured overnight. Or did you try that already?

1 Like