Jump to content
Shelly IoT Innovation Challenge started! ×

Help with a script

Recommended Posts

I control my blinds with a Shelly 2PM and have the following problem: I want the blinds to lower to 24%. To open the slats slightly, it should then be raised again briefly to achieve the desired position of the slats. The lowering to 24 % already works with the following script:

Shelly.call("Cover.GoToPosition", {'id': 0, 'pos': 24});

Now I try this:

Shelly.call("Cover.GoToPosition", {'id': 0, 'pos': 24});

Shelly.call("Cover.GoToPosition", {'id': 0, 'pos': 23});

Only the first line is executed. What must the script look like so that both lines are executed directly one after the other?


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...