Please login or register.

Login with username, password and session length

Author Topic: Automatically start HG apps  (Read 2107 times)


  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2082
Automatically start HG apps
« on: December 12, 2018, 05:52:12 PM »

Since Gene has decided to join the forum, I'm hoping he will see this.

I have many apps in my HG setup that do a variety of tasks.  Some of the code is stock, some is my own.  I have an issue where an app in HG will stop working and thus functionality is lost.  This could be during a reboot and an app doesn't start or it could be when things are running smoothly for months and an app turns off.  What I would like to know is if there is an easy way to tell HG to restart "critical" apps if they stop.  Or, if during a reboot an app could be added to a list of apps to force to start/restart.

As an example, I came home yesterday and found that a light in my loft was turned on at 11pm.  I use that light to simulate presence since it is visible from the front of the property (I use it for nothing else).  It is supposed to turn off at 9:30pm.  I restarted HG last night and assumed all would be ok.  This morning, my backyard lights didn't turn off at sunrise (I leave them on for the dogs assuming HG will turn them off when it's light out).  I checked and it turns out that the stock scheduler app had a red icon (error of some kind).  I restarted it and all is currently good.  In this case, the scheduler failed during HG running smoothly and again at startup.

I assume an app would currently be required to perform this action, but maybe it should be a system level operation.  If the app fails to load after a 2nd or 3rd attempt, HG should notify the admin that something needs attention.

I can submit an issue if that would be approrpiate, but I thought some input from Gene on this might be good.  I believe the BE (Bounce edition) version of HG includes some kind of restart capability so it should be feasible to incorporate should it be forked back into the main project. | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 All rights reserved.