This object is in archive! 

Add device event "Startup"

Robert Hercz shared this idea 8 years ago
Under Consideration

Please add "System" (or "Zipatobox") as a device where state "Startup" can be tested in the rule creator. This way it would be possible to make sure certain settings/states are proper and also to start certain timed rules which normally would have been started by the scheduler, if necessary.

Brgds

Robert

Replies (7)

photo
1

This can be done with the backup battery expansion module so power. But i would like a device for internet connection, so you know when it is offline or online easily. I think the Zipatile has this feature, just not the Zipabox.

photo
1

Adrian,

What I'm looking for, is events which can be used to invoke necessary Rules after a reboot/restart, which do not necessarily happen if/when power is lost/resumed. Afaik, the Backup Battery Expansion does not create events when the system is booted/restarted.

photo
1

Hi Robert. I have to rules that give me a message when the box resets. They use the backup power expansion module. The messages are sent when the box comes back online. Don't me why, but they just work. I guess the box briefly goes onto backup power on a reset and this is stored until the box comes back online and is sent. It will not work if you just loose internet connection, but will if the box resets.

With this you can them try other things as you suggest.

photo
1

Adrian,

I just selected "Reboot" from the UI for one of my Zipaboxes (with backup power expansion). The LEDs on the box showed that the box rebooted, but there were no battery events in the list of events in the UI after the boot...

photo
1

nor in my events list, status is always 0. Did you try the rule?

photo
1

Adrian,

I have rules to send me both SMS and Push whenever there are Battery Discharging events or when there is a Battery Normal event.

I didnt receive anything after reboot...

photo
1

Hi Robert, I have just tired my above rules with the added turn on a light and power plug and send push messages and email. It all works, takes about 30 seconds after the box has fully loaded, but all triggers are activated.

photo
photo
1

One of the reasons why a STARTUP event is really important, is to be able to initialize (set initial values of variables which are being used, and therefore also set the dynamic variable types):


Whenever an uninitialized variable is referenced in PUSH or EMAIL contents the text states "


${variables.get("MyVariable")}" instead of NIL (or something else which could be useful)

photo
1

I use a rule which tests if variable is undefined or has not a special value. If so, then there was a reboot and I set this variable. I test with a scheduler every 5 min. Works fine and easy without battery box.

photo
1

@Andreas,

I have a every minute scheduler for timer purpose. I had hoped not to clutter this for the sole purpose of initializing variables and getting status. I have tried adding another minute scheduler which I've set to END after 5 times. For some reason it never starts. I haven't checked yet if there is a bug in Zipabox that it's only possible to have one minute scheduler, or if there's another reason why this particular scheduler never starts. I've opened a ticket for this just this morning.

Leave a Comment
 
Attach a file