But what i really need is a way to check externally if the lua enig is still running without any errors.
Sometimes i have random lua errors and this results in a ‘dead’ vera system, no scenes are executed anymore etc
What i had in mind is to check reguarly from my NAS the vera unit if it still runs normally, when not then remotely restart the lua enige so it keeps running.
I now often have a compleet rando lua error in the middle of the night (or middle of day) when no body is at home or in bed. When someone enters the room no sensors are working or scenes are executed because the vera unit had again a complete rando lua error. A simple reload of the lua engine fixes this and the unit is running again.
On UI5 i never had this kind of random errors, the code is OK and according to micasaverde support it is mosttimes caused by plugins randomly. So a real fix is not available.
This is why i am searching to monitor the unit externally and reboot it when not running anymore…
You could make Vera make an outbound URL call to the NAS, and have the NAS periodically check to see if those logs are sufficiently ‘fresh’ before initiating the reload (or reboot)
And use the typical/classic fallback of a manual timer on Vera’s PSU for a daily hard reboot for cases when it goes totally off the rails.
added in one of my timebased scenes (15 minutes) a option to update a mysql database on my NAS, i update a unixtimestamp eachtime this cronjob on vera runs
on my NAS i already have several script running which check devices in my network constantly and update them in vera, i added a check to read the database and calculate the diff between now and last update
if the diff is more the 32 minutes it will call the lua enige to reload and when receive OK i update the unixtimestamp in database to prevent constant reloading of lua engine.
I hope with this trick that if the lua engine crashes/errors it is automaticly restarted within 32 minutes.
Best Home Automation shopping experience. Shop at Ezlo!