Lights turning on for unknown reason

So I have completely isolated some lights: no automations, no scripts, not part of any area, adaptive lighting integration is completely removed. With HA turned off nothing turns on, with HA running I get lights turning on.
The latest idea is I just noticed a logbook entry of nmap ‘finding’ a device on the wifi, just as all the lights turn on. Maybe the network scan is trigging the lights to turn on.

1 Like

What about any Template Light or Template Switch that include the lights?

Thank you, but I don’t use templates (had to actually look them up to see what they were and make sure).

So got a new/odd entry in the logs, light got turned off by service light.on.

This has happened since removing the nmap integration, so it wasn’t that.

Just for kicks and crazy ideas…

Run tcpdump and make sure a remote API call isn’t calling light.turn_on?

[edit] spelling

Sounds like a good idea, but a little over my current skill level. hitting up google to see how :wink:

With my “old” z-wave standard dimmer switches that don’t send their status to HA (I forget the right word), if I turn them off with their dimmer switch itself, adaptive lighting will turn the light on during the next brightness adjustment, as HA thinks that the light is still on. I had to tweak some settings and setup some gentle polling of some lights to make it work.

Does this problem occur if you turn off the light from HA? If I do that, the “unknown” turn on doesn’t happen. If you see the same behavior it’s probably adaptive lighting and I can give you a few pointers on how to reduce or eliminate the issue.

1 Like

Thanks, this may indeed be helpful, perhaps not the exact cause this time. Lights are still turning on when I removed the adaptive lighting integration, and I nearly always use HA to turn the lights off. Although it got me thinking, and I realised I may have caused a similar problem by having the local Tuya config of the lights as well as the HA Tuya integration, thus creating the issue where HA still thinks the light is on, as it may be looking at the other version of the light.
So I disabled the device of each of the lights on the Tuya integration, leaving only the local version (I hope :wink: )
Sadly so far this does not seem to have worked, although my lights did not auto turn on overnight, only during the day.

1 Like

Hey Michael,

did you find a solution so far ?
I’ve got the same mysterious turn on on lights …

2 Likes

Never found a solution, I ended up doing a complete rebuild from scratch of the whole system.

2 Likes

MickW69,

I have am having the same problem! Did you ever find a solution? Did rebuilding solve the mystery lights.on with localtuya? From what I can tell, when my local tuya lights lose connection it seems there is a default to turn the light to 56% at a specific color.

1 Like

having the same issue here just 1 light though

1 Like

I’m having the same problem with lights coming on randomly. I have both the cloud Tuya integration and the new Tuya Local (please note not Local Tuya but Tuya Local) installed. I can’t remove the cloud Tuya as Tuya local does not support all my devices.

Any ideas on this one?

1 Like

Something like that happened to me and only recently after 6 months I found the error.

In my case it was due to an automation with a (A) long delay action, (B) running in 5x queued mode and (C) the rare case that the automation triggers several times in a short time.

Thus, actions still ran after 1.5 h and it could not be traced. Also not via the trace function.

I my case it was ok to change the mode to restart

Alexa hunches also does this, turn that off if you can

Has there been any movement on this? I am still getting random lights turning on in random patterns at random times. Could this be a network or connection issue?

These forums can be great but I wish there was someone that could give help in realtime to make sure everything is set up properly.

We can’t really help with what you’ve posted. You’ve provided no information.

I just had the same thing happen to me, on new years day after the wife and I got to bed at 2am, at 3:54 every light in the house switched on (and we all know how difficult it is to get your SO onboard) went through the logs this morning and it seems to be in my case at least that Alexa is turning them on, still haven’t figured out what in Alexa is doing this and may just kill Alexa integration entirely but found this.

Fortunately my wife does have a button next to her bed that turns off all lights so small wins :slight_smile:

After looking into Alexa I found the issue seems to be hunches, which I believe I have now disabled

Here is a log entry I found,

This light randomly turned on and this is the entry associated with it…does this help? I don’t understand how to troubleshoot this further.

2024-01-13 09:48:13.612 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=entity_id=light.galley_04, transition=900.0, profile=relax>

here is a shot from the logbook…

I am not sure how to identify what triggered these lights to turn on??