I want to build a simple thermostat automation, currently only using the UI, becase I'm pretty new.
I set up the time in a schedule.
Now I want to set up the "if window is closed" automation.
I want:
- if window is closed
- and if time is within the schedule
- turn on heat
- else don't turn on heat
But how do I do this (setp 4) using only the UI? Because I can only set up one trigger and one action, but can't do further stuff after that...
I could do it in reverse with a condition like this:
- if window is closed
- and if time is NOT within the schedule
- turn on heat
but then I would need a second automation for just turning off the heat... Is there a simpler solution to this?
If it's only possible with YAML. Is there a guide to get started here? I don't even know where I would put that code...