Jump to content

How to have a script automatically start?


Recommended Posts

I have written 2 scripts.

One  addEventHandler script

Shelly.addEventHandler(function (event) {

When I unplug the shelly plus S and plug it in again, it always seems to start.

 

I have one other script that does not have a addEventHandler, and when I unplug and plug this does not auto start (even when it was started before I unplugged it.)

Do I need a addEventHandler in the script to have it start? Or am I overlooking something. When I start it with the start button it does start.

 

Also not really sure what the switch behind the script name does (see image)

Thank you for any help you are giving me! Much appreciated.

 

Screenshot 2024-03-03 at 10.01.59.jpg

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.

Guest
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...