Hey guys, I’m relatively new to Home Assistant so I’m not sure what I’m doing wrong. I bought some IKEA blinds to open and close depending on the time of day. I configured them using my Zigbee device. I am trying to create a script to open and close my 3 blinds in the living room. Basically, I want one to start opening up, wait 5 seconds, another blind to start opening up, wait another 5 seconds, then the last blind to start opening up. For whatever reason, the first blind opens up fine, waits five seconds, then the next one starts opening up. However, the third blind never opens up and I have no idea why. I tried multiple ideas but none of them worked. This is the yaml file that was created when I added the actions using the visual editor.
In addition, please complete the code by which you call the script.
And since Ikea devices often have a life of their own: Have you checked if that third roller blind is working?
And I don’t have any code that calls my script yet. I just run the script manually. Once I get this working, I’m going to automate the script to run when the sun rises. And yeah, the third blind definitely works. When I run this script without any delays in it, all three blinds go up at the same time, but I was trying to get them to go up at different intervals, but it’s kind of sounding like it might be a problem with the blinds.
The delays are after an action, so this would simply cause a 5 second delay before HA considers the script run task ‘finished’.
@tylermoore19 have you 100% confirmed there is not a typo in the entity_id or device_id? Perhaps swap the first and last devices in the script.
Also, this is just my personal preference as I think it makes things neater, you can change the delay time format to delay: '00:00:05' which saves a heap of lines.
So I tried adding a 5 second delay at the end of the script and same thing, still wasn’t working. I double checked my entity_id’s and those are correct too. I didn’t even manually type those in because I created the script through the UI so it gave me a drop down menu with all the available devices I could use. But I did notice something weird. I was playing around with it and tried this script out:
So I made the delays 3 seconds and I took out the middle delay, so I only had one after the first blind, and then after the third blind. The first blind went up normally, 3 second delay, then the middle blind started going up, and then about 6 or 7 seconds later, the third blind started going up. It kind of feels like the delay was doubled for the third blind, which is weird because I don’t even have a delay between the second and third blinds.
Yeah when I’m just using two blinds, the delay works just fine, but for some reason, when I add that third one in there, it doesn’t work correctly. I tried your approach of just calling the open service and that isn’t working either. I decided I’m just going to have all three blinds open at the same time because this is not worth the hassle to have 5 seconds delay in-between each window. Thanks everyone for trying to help!