If then automation queries

Hi Guys,

I’m trying to set an automation for my zigbee aqara curtain with aqara button where by utilising the single press in order to toggle open and close.
in my head, the plan is just to set whenever single press is triggered, to then check the state of the curtains. If the curtains are open, then to close them and to open when they’re closed.
But I’m stuck and wondering if anyone can help me to understand what this “if then” option does or even suitable to what I need.

so currently, it looks something like this. I basically set condition with nothing. then straight down to action where I specified, if curtains are open, then run close script which basically set both left and right curtains to close position, then else, set them to open position. This doesn’t seems to be work as intended. any guidance would be much appreciated. thanks



To solve this problem I suggest you need to break it down into parts:

  1. Can you make an automation that does something simpler when you press your button?

  2. If you operate the blinds manually, does the state for each blind show correctly as open or closed on a dashboard?

Yes, Originally I had it single press to open and double press to close. But I need the double press for another function, so I thought I put it into one by hopefully being able to enable the toggling.

What about this bit?

If, say, a blind that is closed had a state that is not closed then there will be a problem.

ok, I will test this when I get home tonight. Thanks