Been reading and trying for hours but cannot get it to work.
I want a light to switch immediately off or delayed, depending on the sun elevation.
The media player should pause with the same delay in both conditions.
The angle of the elevation might change since I don’t know yet what is convenient.
Thanks for helping!
I could be mistaken, but don’t you have to declare your attributes to be integers? If so then your >=1 wouldn’t work the way you think if it comes over as a string. Again, this might not be the issue, but I’ve run into situations where I had similar failures because I didn’t declare the attribute as a number (int or float) before comparing them:
Hi @anon43302295, do you know/can you tell me why it happens that in some cases that delay-code gets replaced by “[object Object]” and the automation doesn’t work anymore?