hi, i’m tring to move the windows blind to position 15 and then (when reached the position) move to 10 so it will tilt the slat, i can achive that with a delay of 1 minute, but is not so smooth…
So I assume the script you show here is your attempt to automatically detect the blind has gotten to position 15 and then change it to 10. Is that right? And if so, that’s it’s not working, right?
At a minimum, in your wait_template, “state.” should be “states.”. And more than likely you need “attributes.” before “current_position”. It would help if you entered the following in the template editor and shared the output: