Sunset blind close

Deleted, as it’s not the right place.

Please format your code by placing it between three backticks: like this it is impossible to see. Check point 11 in this post:

I did spot you test for “open” but that is not a state a binary sensor can have. that is either on or off.

1 Like