I have an automation up and running to switch on my bedroom lights when my alarm goes off in the morning. It works perfectly, however, the lights are directly fully bright switched on.
A couple of friends of mine have a Philips Wake-up light that has caught my attention and I would like to make something similar, but then with my main bedroom light.
I did found some scripts on the world wide web and here on the forum (I have seen so many now that I do not know exactly who to credit for which part, sorry!!)
When tweaking it to my installation, it really works erroneousâŚ
The configurator states that I have a âbad indentation of a mapping entry at line 10, column 20:â
However, when I trigger the script, one of my 2 Philips white ambiance bulbs cycleâs the complete script, whereas the other one just turns on fully bright.
Both bulbs are switched on by a Shelly 1 behind my wall switch as the only time I use the adjustabillity of the bulbs is when I want to wake up.
So the bulbs themselves are âprogrammedâ to a standard setting when they are power back up again.
This is the script I have so far:
(the delay and transition times are indeed short, but that is for testing purposes instead of waiting the eventual 20 minutes to go through the script)
Could you try it this way please? (you need to do it for the others as well).
Sidenote: You can just change the topic of a thread without the need of starting a new one. And coming from Eindhoven (Hometown of Philips), Phillips is written with a single L XD.
I said to OP that I havenât seen separations with commaâs before (I thought list was something that I just showed in the code above). So please correct me if I am wrong.
Many thanks so far guys, the HA Configurator now also does not give me any warnings anymore that there is a fault in the code
So, I have adjusted the indentations however, now no lights will turn on anymoreâŚ
Not even the switch, providing both bulbs the power they need to shine.
It just stays darkâŚ
@Tediore: I did decimal the seconds as I was in the intention that HA also works with tenths of seconds?
I did this so I could tweak the time between the Shelly 1 switching on and the 2 Philips hue bulbs sending the command to turn of so I have the shortest amount of time that the lights give a flash before begining the script.
why would you say that? Using the 2 spaces is perfectly fine, as long as you do that consistently. I have 2 spaces in my complete configuration and it delivers perfectly.
No, using the comma separated list works fine also, and is a completely valid yamlâŚ
btw, as long as no extra data is required, you can leave the data key out, and use
See, now I was agreeing with Mariusâs, right up to the point where you said thisâŚ
And now I agree with you.
(the agreeing but is easy, itâs the spotting what lands you in the âsugarâ thatâs hard)