dannybloe wrote:System Alive Checker. It creates switches for devices that you want to ping. What I would do is create a dzVents script using a persistent variable that counts consecutive ping timeouts and only when there have been a couple in a row perform some action.
System Alive Checker > $hiddenMyDevice > dzVents script > counter > myDevice.switchOn/Off
Something like that. Thing is that sometimes you get an occasional time-out while the device is still online. By counting consecutive timeouts you can prevent false negatives.
the ping device does not seem to end up in devices.lua (I deleted the file and checked in the recreated file, and it is not there)
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "On",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 6,
"HardwareName" : "System Alive Checker",
"HardwareType" : "System Alive Checker (Ping)",
"HardwareTypeVal" : 51,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000003",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-06-16 15:21:37",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Vardagsrum, Sony TV Ping",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 0,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "214"
}