So I successfully implemented a sunrise alarm using a Hue color bulb and some datetime input. I had a question though on this line of code that works. I see in some of the examples I have seen a False and a True as a field. I believe this custom timestamp is needed because sensor.time attribute timestamp shows seconds as well and this prunes the seconds off for a comparison to my input selection.
False is the only one that works for me here. Using true puts me an hour out. Supposedly true means to use local time and false uses universal (or something similar) but given that I’m in the UK false and true should both be the same.
There is a discussion on it somewhere, but the basic answer is that it should be true and nobody knows why false works better for a significant number of people.
Well False works for me as well. I guess I’ll see what happens once I hit daylight savings time removal if it changes anything but the number I am using is just an input datetime so it’s static set and not moving with a time zone.
Thanks for giving more background. The example on HA site didn’t work and I found a few forum posts with this alternative style and the False. I was going to do a PR to fix the site but since I didn’t know why it was that way I figured I’d ask.