Hi
UPDATED 1.1
UPDATED THIS VD FROM A SCENE WATCHDOG TO A SCENE & VIRTUAL DEVICE WATCHDOG
Hopefully this will be a useful little VD to some users
It was inspired by a comment made by @tinman (I think)
This VD Enables a user to scan all scene and virtual device DEBUG MESSAGES and trigger on predefined key words in the debug messages.
This may be useful to see if a scene develops an error or perhaps you are just looking for a keyword for a different reason
All scenes and virtual devices are included by default
Specific scenes and virtual device id's can be flagged to exclusion
Separate watch lists for scenes and virtual devices
A watchdog report is sent for all matches identified.
Can be sent via email or smart message hub
You get one email or message per id flagged ( not per watch word)
It will send message if no match in either vd or scene is found (added in v 1.1)
Suggested icon included below
Note: If you use the Smart Message Hub please add that scene ID into the exclusion list as that scene will be
flagged by the watchdog after the first use.
This can be run on demand or on a schedule using Main Scene by @Sankotronic or similar.
I run it on a schedule once per day
Installation
Import the VD
Configure the following as required
-- user configurable
local jT = json.decode(fibaro:getGlobalValue("HomeTable")) -- comment out if HomeTable is not used
watchListSC = {"syntax", "error", "line334", "concatinate"} -- words that you want to watch in scenes
watchListVD = {"expected", "unfinished"} -- words that you want to watch in virtual devices
excludeList = {"23", "32"} -- scene and virtual device id's that you would like to exclude from watching
SMsgH = true -- set to false if you don't use smart message hub
SMsgHtarget = "pushover" -- set to preferred medium if you use smart message hub
deBug = false -- enable for greater debug verbosity
Place on a scheduler if required
The VD has a status label and when it was last run
and this is what the report looks like on pushover
VD attached
scvd_Watchdog_1.1.vfib