Announcement
Collapse
No announcement yet.
Any way to automate a shutdown and restart of HS on a Zee S2?
Collapse
X
-
While it would be nice if everything worked as expected, it is not always the case. I have observed that if I try to access the HS Message Board at midnight EST it will be unresponsive. Clearly they are doing a daily maintenance activity which likely includes clearing out garbage that has accumulated over the day.
When HS has crashed then HS cannot be used to recover. One approach is an external monitor, which I thought was the idea behind HSSentry. Either it has not been enabled or it was not designed to deal with the specific failure mode being observed.
Another approach is clear the accumulated garbage before it becomes a problem. A daily restart of HS (or every 8 hours, or whatever works for you) can be easily done with a HS event scheduled at a specific time or time interval to set the HS Restart device that is available in the mcsMQTT plugin. This does an orderly shutdown and restart of HS and all enabled plugins.
- Likes 1
Comment
-
Originally posted by Michael McSharry View PostWhile it would be nice if everything worked as expected, it is not always the case. I have observed that if I try to access the HS Message Board at midnight EST it will be unresponsive. Clearly they are doing a daily maintenance activity which likely includes clearing out garbage that has accumulated over the day.
When HS has crashed then HS cannot be used to recover. One approach is an external monitor, which I thought was the idea behind HSSentry. Either it has not been enabled or it was not designed to deal with the specific failure mode being observed.
Another approach is clear the accumulated garbage before it becomes a problem. A daily restart of HS (or every 8 hours, or whatever works for you) can be easily done with a HS event scheduled at a specific time or time interval to set the HS Restart device that is available in the mcsMQTT plugin. This does an orderly shutdown and restart of HS and all enabled plugins.
I've highlighted in bold what you said, because until I can figure out why my HS gets hinky every once and a while [not turning on certain ZWAVE] lights, sometimes Insteon AND ZWAVE devices, a scheduled restart is what I need. Currently, I restart manually [cycle its power plug] to get things working again but if i could automate that, that would be preferred.
So all I have to do is search the plug ins area for the mcsMQTT plugin and setup up an event to "restart" every so many days? If not, if you could outline what you did that would be greatly appreciated. Thanks for this.
Comment
-
mcsMQTT plugin provides several integrations and generally presents them using a model of a MQTT communication. The MQTT Page, Association Tab is the primary way of viewing what is available. In the case of the HS & Plugin status and control, mcsMQTT provides a set of endpoints that represent HS and each plugin that it identified. Most easily viewed by using the T1 (Topic tier 1) filter with HS as the selection item.
If only interested in HS and not the plugins, then the "a" column checkbox should be used on the row that shows the HS4 (or equivalent for various flavors of HS) endpoint. This will result in a HS device being created. In my test case it is device 9042 and the table updated to reflect this
When looking at the HS4 Devices page (or HS3 DeviceUtility) it will show up as having two controls. Shutdown and Restart. You will note that the Room and Floor are assigned HS as the default. You are welcome to change these (and Name) to better fit your preferences.
The status reflected will be the CPU use over the last 1 minute. The controls can be used from an event as the event's action. The trigger condition is of your choice using the built in HS Event Trigger or something like EasyTrigger.
In the example below I used sunrise as the trigger time to restart HS.
- Likes 1
Comment
-
Michael McSharry I think what you just explained made my head explode. I was hoping that the solution would be a little bit simpler.
Tangent: When my system recently failed to turn on my Zwave lights, instead of just power cycling my HS4 Pi, I thought I'd try launching the mobile app and try a restart, but before I did that I thought I'd try turning on/off the Zwave plugin and see if that would do anything to get things going. But before I did that I noticed that there was an update for the Zwave plugin. So I downloaded it and installed it then lo and behold things started working again. So the whole reason I was looking into this programmable restart was because when the system fails, as described, I've just been cycling power and things just start working again. "Something" seems to be particularly screwy with the Zwave because the Insteon light modules are working fine. Thanks for your post!
Comment
-
Shorthand version... Install mcsMQTT plugin. From HS Plugin tab select mcsMQTT and MQTT Page. On Association tab select HS in the T1 selector. Check the "a" column checkbox on the row with the name HS or HSConsole. Setup event to run at a time of day with action of control device and command it to Restart.
Shorter version... create a HS Device, create event to set this device to Restart.
Comment
-
Originally posted by Michael McSharry View PostShorthand version... Install mcsMQTT plugin. From HS Plugin tab select mcsMQTT and MQTT Page. On Association tab select HS in the T1 selector. Check the "a" column checkbox on the row with the name HS or HSConsole. Setup event to run at a time of day with action of control device and command it to Restart.
Shorter version... create a HS Device, create event to set this device to Restart.
Comment
Comment