Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'system checks'.
Hi, Whenever I restart my HC2 I run a series of checks manually to see that the various parts are all operational I finally got around to automating this It waits 10 seconds and then runs a series of checks on a reboot All checks are separate functions. I don't expect that it'll work out of the box for users but some of the approaches I use may be helpful in parts Output in debug window, email or via smsgh These systems are important to my setup and this is the output I get to give me a sense that all has started up okay HC2 API ....OK HC2 CPU ....OK - CPU0: 7.37% / CPU1: 9.88% HC2 Free Memory ....OK - 42% HC2 Sys Free Storage ....OK - 57% HC2 Rec Free Storage ....OK - 66% Home Table ....OK State Table ....OK MainScene ....OK Smart Msg Hub ....OK WWWAPI Monitor ....OK LAN Monitor ....OK Internet ....OK Sonos API ....OK HA Bridge ....OK USG ....OK Alarm Gateway ..OK output in debug window / via message hub (pushover) and this is how I check the various sections... API - check that I -get a 200 or 201 return code and non nil json response HC2 diags - read through the api HomeTable - check that I can read a table entry StateTable - check that I can read a table entry Main Scene (scene) - check that running instances is > 0 Message Hub (scene) - trigger a message and check that running instances is > 0 WWWAPI Monitor (vd) - I added a specific debug message each loop and check for a match to that LAN Monitor (vd) - I added a specific debug message each loop and check for a match to that Internet/SonosAPI/HABridge/USG/Alarm Gateway - from the StateTable (4) updated by the monitor (7) Some config ID's at the to of the scene lua file attached _f HC2 Post Reboot Checks.lua