I’ve been having problems with a somewhat large LightOn/Off condition not giving me the expected result and think I have it tracked down to a case of the real state of the switch not being reflected correctly by PLEG (see attachments).
Nothing I do to the switch, through the UI or “in person” seem to change the state. It is always “on”.
Oh, and yes, I’ve done the reload dance. I typically use a Chrome Incognito Window and change TAB and reload (hard) on every save when working with PLEG.
What sort of switch is it? BTW: It is not always on - it turned off yesterday at 04:49…
Do you have a condition of the same name ? Prior versions of PLEG did not check that Triggers and Condition names were unique relative to each other.
Between the two PLEG instances I have, a search through the Status page shows a single instance (I got burned by the non-unique name problem in the past).
Its one of several GE/Jasco switches in my house.
Re the off yesterday: Yeah. That’s the problem. It seems to be intermittent. I.e. it’s working fine. And then “something goes wrong”. I’ve seen nil comparison errors logged for the PLEG instance, but the plugin seemed to be working fine and those were about other devices such as an Aeon 4-in-1.
Does a scene trigger from the switch reliably?
Did not test since this morning, the problem “moved”. I.e. the switch I reported is no longer exhibiting the issue and a new one is.
Last night, the actions I have defined for that instance appeared to work again, across the board. This morning I realized the basement heat had been on all night because PLEG thinks the basement ceiling light dimmer was on (it was not).
Makes me think there’s something in the plugin that gets reset when either Vera reboots or if/when the Luup/Lua engine restarts.
I’m not finding any lua errors in the log, but it looks like it rolled over at around 1:30ish last night, and I only have about 4.5 hours worth of log info, so that’s unlikely to have recorded anything related to the light state not being correct in PLEG.