I have a bathroom with a magnet sensor and during the day I want normal lighting. Between 23:00 and 07:00 I want dimmed light with another color so I don't get flashbanged during the night. I also need the light to stay for a bit while on the toilet.
I tried setting it up with one automation, but I can't get it to work. Do I need to do it in 2 separate automations? I have close to zero understanding of yaml, and I use chatgpt to do the code. I kinda understand the code when it spits it out...