Made some changes to L_EventWatcher.lua

I wanted to track more things and I’d like to contribute back in case anyone else finds it useful.

Added:

classTable ("D", Door_Services,       Door_Variables,             "DOOR_LOCK"),        -- 7

[code]local Door_Services = {
“urn:micasaverde-com:serviceId:DoorLock1”,
“urn:micasaverde-com:serviceId:DoorLock1”,
“urn:micasaverde-com:serviceId:DoorLock1”,
“urn:micasaverde-com:serviceId:DoorLock1”,
}

local Door_Variables = {
“Status”,
“sl_UserCode”,
“sl_PinFailed”,
“sl_LockButton”,
}[/code]

Modifed HVAC stuff:

[code]local HVAC_Services = {
“urn:upnp-org:serviceId:HVAC_UserOperatingMode1”,
“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,
“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool”,
“urn:upnp-org:serviceId:TemperatureSensor1”,
“urn:micasaverde-com:serviceId:HVAC_OperatingState1”,
“urn:upnp-org:serviceId:HVAC_UserOperatingMode1”,
“urn:upnp-org:serviceId:HVAC_FanOperatingMode1”,
“urn:upnp-org:serviceId:TemperatureSetpoint1”,
“urn:upnp-org:serviceId:TemperatureSensor1”,
}

local HVAC_Variables = {
“ModeStatus”,
“CurrentSetpoint”,
“CurrentSetpoint”,
“CurrentTemperature”,
“ModeState”,
“EnergyModeStatus”,
“FanStatus”,
“CurrentSetpoint”,
“CurrentTemperature”,
}[/code]

You’re aware, also, that EventWatcher can watch any variable you like, whether or not it’s defined in the usual category list?

[quote=“EventWatcher User Guide, p15”]Logging Other Variables

In addition to the usual category-based method of defining which devices to watch, an additional feature allows ANY serviceId/variable to be watched.
The device variable parameter ExtraVariablesFile defines the location of a file with the description of one variable per line in the format ...
This file is read at startup and the requested variables added to the watch list.
So, for example, my ExtraVariablesFile is set to /www/EWextras.conf, and that file contains:
[tt] 044.urn:akbooer-com:serviceId:EventWatcher1.AppMemoryUsed
044.urn:akbooer-com:serviceId:EventWatcher1.CpuLoad05
[/tt][/quote]

Yep, but in my case, I wanted to track LoadLevelStatus and some door lock stuff. Much easier to modify the lua file than having to figure out and then add x number of lines in the conf file (and going forward, any new lights and locks are supported without having to do anything).

This plugin is easily 2nd only to PLEG… Love it.

Ok, fine.

I don’t have a lock, so never really discovered which the relevant services and variables were. I’ll update the file on the next release.

Thanks.

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules