Cover down if binary sensor true

Hi there,

I looking for a way to turn the cover (roller shutter) down automatically with sundown.
I solved it but now I have the situation, that I want that this Automation don’t work, I’f a binary sensor detects that the door is open.
The sensor is a Xiaomi / aqara door sensor.

Can you tell me a workaround to implement this?
I tried different ways with node red, but I didn’t get it…

Here is my actually flow:

How can I trigger or use the state of the sensor?
If sensor true (door closed), than it’s okay to turn down the cover…

Regards
Timo

Use a current state node in line between trigger (sundown) and the call service to roll down cover.

Just add something like this in the node:

1 Like