LED Strip not turning on after one of the last few updates

Hi @bobbyD

Please can someone assist, I am not sure which update broke it but it must have been maybe 2 or 3 updates ago. I have a Yeelight LED strip in my bathroom that comes on after 11pm when it detects motion. This has stopped working now, the issue is the motion sensor works as this turns the main lights on if it is before 11pm and this works, same motion sensor. I can turn the Yeelight LED strips on from the device page and that works okay. The issue is no matter what rule I try to use, be it motion lighting, simple automation's neither of these will work. I have deleted the rules and re-done them. still no go.

This has been working for almost a year now, so something has gone wrong in one of the last few updates. My wife really loved this automation as the strip comes on enough to see in the bathroom but not enough to blind you late at night.
I saw this in the logs for the Motion Rule:

app:16662020-12-04 08:30:42.390 infoTurning off lights

app:16662020-12-04 08:29:42.365 infoDelaying off for 1 minute

app:16662020-12-04 08:29:42.306 infoMotion inactive Main Bathroom Motion Entry

app:16662020-12-04 08:29:27.279 infoNot turning on, already on

app:16662020-12-04 08:29:27.253 infoMotion active Main Bathroom Motion Entry

app:16662020-12-04 08:29:15.693 infoDelaying off for 1 minute

app:16662020-12-04 08:29:15.635 infoMotion inactive Main Bathroom Motion Entry

app:16662020-12-04 08:28:53.434 infoNot turning on, already on

app:16662020-12-04 08:28:53.405 infoMotion active Main Bathroom Motion Entry

app:16662020-12-04 08:28:16.972 infoDelaying off for 1 minute

app:16662020-12-04 08:28:16.932 infoMotion inactive Main Bathroom Motion Entry

app:16662020-12-04 08:27:57.386 infoSetting color to hue:17 sat:70 level:10

app:16662020-12-04 08:27:57.383 infoRandom color: hue: 17, saturation: 70

app:16662020-12-04 08:27:57.348 infoMotion active Main Bathroom Motion Entry

So it says not turning on already on, but the LED strip light is off?

These are the logs for the LED strip:

dev:16332020-12-04 08:32:32.088 debugheartbeat- message sent...

dev:16332020-12-04 08:32:32.084 debugts- ct:1607063552078, lhb: 1607063442522, age: 109556

dev:16332020-12-04 08:32:32.079 debuggetReTry- reTryCount:0

dev:16332020-12-04 08:30:42.525 warnskipped:[id:3, result:[ok]]

dev:16332020-12-04 08:30:32.103 debugheartbeat- message sent...

dev:16332020-12-04 08:30:32.099 debugts- ct:1607063432094, lhb: 1607063312125, age: 119969

dev:16332020-12-04 08:30:32.094 debuggetReTry- reTryCount:0

dev:16332020-12-04 08:28:32.120 debugheartbeat- message sent...

dev:16332020-12-04 08:28:32.115 debugts- ct:1607063312109, lhb: 1607063277847, age: 34262

dev:16332020-12-04 08:28:32.110 debuggetReTry- reTryCount:0

dev:16332020-12-04 08:27:57.850 warnskipped:[id:7, result:[ok]]

dev:16332020-12-04 08:27:57.840 warnskipped:[id:2, result:[ok]]

dev:16332020-12-04 08:26:32.055 debugheartbeat- message sent...

dev:16332020-12-04 08:26:32.052 debugts- ct:1607063192047, lhb: 1607063072061, age: 119986

dev:16332020-12-04 08:26:32.048 debuggetReTry- reTryCount:0

@bravenel

Okay so I seem to have narrowed down what has changed (I think). I use Motion and Mode lighting, what I used to do and it worked for almost a year was the option:
On motion
Set Color for these bulbs
Color: Random
Level: 10

This would then turn the led strip on and I had it to a random color each time. Since a few updates ago (not sure which one) this no longer turns the strip on. If I change the app and say:
On motion
Turn on Switches
The led strip turns on. The problem with this is that is always turns on to the same color.

Something has changed that now the option to set color and level no longer turns the device on.

How would I using Motion and mode lighting would I get back to being able to have a random color on the strip each time it is turned on. RM might be an answer, but I would much rather use the Motion lighting as it worked so well before.

I will investigate this.

I've tested this and it works for me. Turn on logging in the Motion Lighting instance to see what is going on.

Playing around with it, I think it can be improved. Specifically, I get a much nicer variation of color if saturation is always 100, instead of varying as it does now.

1 Like

@bravenel

Okay so here is the Motion lighting app

Here is the log

Everything looks fine but no led light? As I say if I just say turn on switch it works fine.
Also if this helps it is a Yeelight Led Strip, added using the built in Yeelight intergration app.

Thanks for having a look at this.

I don't understand what you are saying. hue 78 and sat 53 is the random color. If the light isn't turning on from that, that's a device issue. Try the same numbers on the device page.

@bravenel

I have never set a hue and sat value, I thought this was part of the "random", will try that on the device page and see what it does, here is the device page now without any changes.

Doesn't look like it's been set from the app. Maybe it's not working right.

Okay, here is what I did, I rebooted the LED strip, then I removed it from the HE. Added it back in via the Yeelight app and then added it into the Motion lighting app. It now seems to be working again. Not sure what happened, maybe an incorrect hue or sat. Also I never set this so it has to be coming from the Motion lighting app, can you tell me if this comes from the app if it is set to random color?

Thanks for helping on this issue.

It could have come from the app, don't know. Random sets a hue between 1 and 100, and a sat between 51 and 100. I'm going to change the latter to just be 100, and only vary the hue. The app was setting level to 10, per your rule.

Just trigger it multiple times with logs on, and be sure the value in the logs is the same one for the strip on its device page.

2 Likes

Thanks, yes I set the level to 10 as the strip is very bright. I will test it and see what happens

Thanks again