What I’m trying to archive is to have a simple „window open, climate off automation“, but with one simple automation, using wildcards.
Everywhere I look around, people doing it all one by one - specifying every room, every window and every thermostat in single automations.
Having an office, a brothers-home, a parents-home and an own Home makes things really annoying.
So basically taking the Area of a window-magnet to choose which Area to turn off the climate.
Ideally restoring it’s old value after closing the window.
And also ideally choosing the name from that window-magnet for the cover to open (if named the same), so let some fresh air in.
So I thought maybe you guys have done something like this already or maybe it’s interesting enough for you to build?
Long story short
something like
If: window.{Bedroom_Front} in area.{Bedroom} gets opened
do: turn_off climate in area.{Bedroom} and (if closed) open cover.{Bedroom_Front} to 30%
OK you have not mentioned your environment - but i am guessing that with the terminology you have used - this is Home Assistant with the Node Red Add-on ?
If so i would suggest you would be better off on the Node-red subforum on the HA forum (in the third party section as they will be better able to integrate the answer into the HA environment.
There are only a couple of us on here who use HA very much at all
You leave out details, what nodes are you using what are their output messages, what are the input messages to open/close, turn on/ turn off. All this info will help people help you. Without it we are guessing, so an answer will probably not quite fit your actual needs