I’m having a dickens of a time getting my pleg code to properly switch my modes from home → away.
This is all about getting geofencing working the way it should for two people (L and S).
I’m pretty sure I have Vera Proximity working right. I have three fences. largest sets to rapid updating next sets an “outer” multibutton, smallest sets to “inner” multibutton.
Multibutton Setup:
1 Inner for L
2 Outer for L
3 Inner for S
4 Outer for S
Here is the status from pleg… i cant figure out why the dang thing isn’t triggering the Home and Away actions. It is something in the conditions… i’m perplexed. Help please:
PLC Version:7.46Program Logic Event Generator[25]
2016-01-31 19:36:06.446
Registration
Installed: Wed Mar 04 2015. You have 1 license, which allows a total of 4 PLEG and/or PLTS plugins.
Triggers
Name Description State Last True Last False
tLInner MultiSwitch Switch 1 is turned on false 2016-01-31 19:32:42.420 2016-01-31 19:32:49.402
tLOuter MultiSwitch Switch 2 is turned on false 2016-01-31 19:32:38.971 2016-01-31 19:32:50.852
tSInner MultiSwitch Switch 3 is turned on false 2016-01-31 19:34:00.043 2016-01-31 19:34:06.717
tSOuter MultiSwitch Switch 4 is turned on false 2016-01-31 19:34:02.581 2016-01-31 19:34:05.076
Modes
Mode Name State Last True Last False
Home mHome true 2016-01-31 18:29:08.106 2016-01-31 18:28:53.132
Away mAway false 2016-01-31 18:28:53.136 2016-01-31 18:29:08.102
Night mNight false 0 0
Vacation mVacation false 0 0
Device Properties
Name Device Name Device Variable Value Last Change Previous Change
coolSetPoint Kitchen Thermostat CurrentSetpoint 68 2016-01-31 18:29:22.001 2016-01-31 18:25:48.102
cTemp Kitchen Thermostat CurrentTemperature 69.5 2016-01-31 17:38:52.942 2016-01-31 16:44:13.074
heatSetPoint Kitchen Thermostat CurrentSetpoint 76 2016-01-28 18:45:44.119 0
Conditions
Name Repeat Expression State Last True Last False
cNeedsHeat No cTemp < coolSetPoint false 2016-01-31 09:27:40.223 2016-01-31 10:01:11.522
Comments: Thermostat setpoint is higher then current temperature.
cNoMoreHeat No cTemp > coolSetPoint true 2016-01-31 10:01:11.522 2016-01-31 09:27:40.235
Comments: Current temperature reaches setpoing
cHome No (mAway or mVacation) and ((tLOuter and tLInner) and (tLOuter;tLInner)) false 0 0
cAway No mHome and !((tLOuter and tLInner) and (tLOuter;tLInner)) and (mHome;!tLOuter) and (mHome;!tLInner) true 2016-01-31 19:32:50.873 2016-01-31 19:32:39.005
cLHome No (tLOuter and tLInner) and (tLOuter;tLInner) false 2016-01-31 19:32:42.431 2016-01-31 19:32:49.433
cSHome No (tSOuter and tSInner) and (tSOuter;tSInner) undefined undefined undefined
Actions
Actions for Condition: cNeedsHeat
Device Actions:
Immediate
Device Action Arguments
Fireplace Blower SetTarget newTargetValue=1
Fireplace Gas SetTarget newTargetValue=1
Actions for Condition: cNoMoreHeat
Device Actions:
Immediate
Device Action Arguments
Fireplace Blower SetTarget newTargetValue=0
Fireplace Gas SetTarget newTargetValue=0