Closed cronutan closed 3 years ago
Log does not include event for either L0_LR_OCP or L0_LR_OCP_Z turning off, so I don't see the error. If I'm missing it, what is the time stamp for the event?
Z-Wave received "L0_LR_OCP_Z" status update is on
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Received INSTEON "L0_LR_LT" off
Trigger L0_LR_LT_OFF
Trigger L0_LR_VOCP_OFF_VAR
Received INSTEON "BY_Pool_Skim_TEMP" off (button 2)
Z-Wave received "L1_WC_OCP_Z" status update is off
Trigger L1_WC_OCP_Z_OFF_VAR
DSC Alarm Alarm Zone 'L0_GR_MTN' Opened.
Trigger L0_GR_MNT_ON_VAR
Received INSTEON "BY_Pool_Skim_TEMP" on (button 2)
DSC Alarm Alarm Zone 'L0_GR_MTN' Closed.
Trigger L0_GR_MNT_OFF_VAR
Received INSTEON "BY_Pool_Skim_TEMP" off (button 2)
Received INSTEON "BY_Pool_Skim_TEMP" on (button 2)
Z-Wave received "L0_LR_OCP_Z" status update is off
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Received INSTEON "BY_Pool_Skim_TEMP" off (button 2)
Received INSTEON "BY_Pool_Skim_TEMP" on (button 2)
Z-Wave received "L0_PowerMeter" power load to 6383.256 W
Trigger UpdatePowerDisplayVariable
Z-Wave received "L0_PowerMeter_Clamp_1" power load to 3326.602 W
Received INSTEON "L0_LR_OCP" off (button 1)
Trigger L0_LR_OCP_OFF_VAR
Z-Wave received "L4_AtticL_TEMP_Z" sensor update to 15.4 °C
Z-Wave received "L4_AtticL_TEMP_Z" sensor update to 15.4 °C
Z-Wave received "L4_AtticL_TEMP_Z" sensor update to 15.4 °C
Z-Wave received "L4_AtticL_TEMP_Z" sensor update to 15.4 °C
Z-Wave received "L4_AtticL_HUM_Z" sensor update to 69%
DSC Alarm Alarm Zone 'L1_FR_MTN' Opened.
Trigger L1_FR_MNT_ON_VAR
Trigger Occupancy Log Update
Z-Wave received "L4_AtticL_ILUM_Z" sensor update to -32768 lux
Z-Wave received "L4_AtticL_UV_Z" sensor update to -1
DSC Alarm Alarm Zone 'L1_FR_MTN' Closed.
Trigger L1_FR_MNT_OFF_VAR
DSC Alarm Alarm Zone 'L1_FR_MTN' Opened.
Trigger L1_FR_MNT_ON_VAR
DSC Alarm Alarm Zone 'L1_FR_MTN' Closed.
Trigger L1_FR_MNT_OFF_VAR
DSC Alarm Alarm Zone 'L1_FR_MTN' Opened.
Trigger L1_FR_MNT_ON_VAR
DSC Alarm Alarm Zone 'L1_FR_MTN' Closed.
Trigger L1_FR_MNT_OFF_VAR
Indigo Cocoa client authenticated (192.168.1.99)
Received INSTEON "BY_Pool_Skim_TEMP" temperature changed to 24.0
Z-Wave received "L0_PowerMeter" power load to 6306.569 W
Trigger UpdatePowerDisplayVariable
Z-Wave received "L0_PowerMeter" energy total to 225.790 kWh
Z-Wave received "L0_PowerMeter_Clamp_1" power load to 3303.888 W
Z-Wave received "L0_PowerMeter_Clamp_1" energy total to 126.362 kWh
Mar 22, 2021 at 11:27:17 AM
DSC Alarm Alarm Zone 'L1_FR_MTN' Opened.
Trigger L1_FR_MNT_ON_VAR
DSC Alarm Alarm Zone 'L1_FR_MTN' Closed.
Trigger L1_FR_MNT_OFF_VAR
Z-Wave received "L0_PowerMeter" power load to 6321.065 W
Trigger UpdatePowerDisplayVariable
Z-Wave received "L0_PowerMeter_Clamp_1" power load to 3296.555 W
Trigger L0_LR_OCPTM_LT_OFF
Action Group L0_LR_OFF
Sent INSTEON "PowerLinc Interface" off (scene 11 - L0_LR)
Trigger L0_LR_LT_OFF
Z-Wave received "L4_AtticL_TEMP_Z" sensor update to 15.6 °C
Z-Wave received "L4_AtticL_HUM_Z" sensor update to 70%
Schedule DoubleCheck_KeypadLinc
Action Group FY_ENT_KPD_ButtonsSync
Script Button 2 state: True, L2_LR_Clock_LT.onState: True
Script Button 3 state: False, L2_LR_TLampN_LT.onState: False
Script Button 4 state: False, L2_LR_TLampS_LT.onState: False
Script Button 5 state: False, L2_LR_Pot1_LT.onState: False
Script Button 6 state: False, L2_LR_Pot2_LT.onState: False
Script Button 7 state: False, L2_LR_Pot3_LT.onState: False
Script Button 8 state: True, L2_DR_Pot_LT.onState: True
Z-Wave received "L4_AtticL_ILUM_Z" sensor update to -32768 lux
Z-Wave received "L4_AtticL_UV_Z" sensor update to -1
There's no Occupatum debug statements in that log. And a lot of stuff that has nothing to do with the sensors, trigger, or plugin.
And please post the logs directly on GitHub - the code formatting doesn't work if you send them by email.
Occupatum Debug Watched Device updated: L0_LR_OCP
Trigger L0_LR_VMNT_ON_VAR
Trigger Occupancy Log Update
Trigger Action Log Update
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1834, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
DSC Alarm Alarm Zone 'L0_GR_MTN' Opened.
Trigger L0_GR_MNT_ON_VAR
Trigger Occupancy Log Update
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1835, initial)> with delay = 0.0
Occupatum Debug L0_GR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Z-Wave received "L0_LR_OCP_Z" status update is on
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = True, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1836, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
DSC Alarm Alarm Zone 'L0_GR_MTN' Closed.
Trigger L0_GR_MNT_OFF_VAR
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = False, previous = True, delay = 480.0
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1837, initial)> with delay = 480.0
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Received INSTEON "L0_LR_LT" off
Trigger L0_LR_LT_OFF
Trigger L0_LR_VOCP_OFF_VAR
Occupatum Debug L0_LR_OCPTM: No Timer Active
DSC Alarm Alarm Zone 'L0_GR_MTN' Opened.
Trigger L0_GR_MNT_ON_VAR
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = True, previous = True, delay = 0.0
Occupatum Debug L0_GR_OCPTM: checkSensors, cancelling existing delay timer
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1838, initial)> with delay = 0.0
Occupatum Debug L0_GR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
DSC Alarm Alarm Zone 'L0_GR_MTN' Closed.
Trigger L0_GR_MNT_OFF_VAR
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = False, previous = True, delay = 480.0
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1839, initial)> with delay = 480.0
Z-Wave received "L0_LR_OCP_Z" status update is off
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1840, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Z-Wave received "L0_PowerMeter" power load to 7338.839 W
Trigger UpdatePowerDisplayVariable
Z-Wave received "L0_PowerMeter_Clamp_1" power load to 3228.165 W
Received INSTEON "L0_LR_OCP" off (button 1)
Trigger L0_LR_OCP_OFF_VAR
Occupatum Debug Watched Device updated: L0_LR_OCP
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = False, previous = True, delay = 60.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1841, initial)> with delay = 60.0
Mar 22, 2021 at 11:53:22 AM
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = False
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_OFF
Action Group L0_LR_OFF
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" off (scene 11 - L0_LR)
Trigger L0_LR_LT_OFF
Occupatum Debug L0_LR_OCPTM: No Timer Active
It looks like i pasted it wrong again. I'm not sure how to make it look as nice as when you did it.
It's three back quotes for a block. One back quote for a single line.
And it's this block that's the issue?
Z-Wave received "L0_LR_OCP_Z" status update is off
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1840, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Trigger L0_LR_OCP_ON_VAR
Trigger L0_LR_VOCP_ACTN_VAR
Occupatum Debug Watched Device updated: L0_LR_OCP
Trigger L0_LR_VMNT_ON_VAR
Trigger Occupancy Log Update
Trigger Action Log Update
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1842, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
DSC Alarm Alarm Zone 'L0_GR_MTN' Opened.
Trigger L0_GR_MNT_ON_VAR
Trigger Occupancy Log Update
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1843, initial)> with delay = 0.0
Occupatum Debug L0_GR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Z-Wave received "L0_LR_OCP_Z" status update is on
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = True, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1844, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
DSC Alarm Alarm Zone 'L0_GR_MTN' Closed.
Trigger L0_GR_MNT_OFF_VAR
Occupatum Debug Watched Device updated: L0_GR_MNT_MSQRD
Occupatum Debug L0_GR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [1950901611]
Occupatum Debug L0_GR_OCPTM: checkSensors, occupied = False, previous = True, delay = 480.0
Occupatum Debug L0_GR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1845, initial)> with delay = 480.0
Received INSTEON "L0_LR_LT" off
Trigger L0_LR_LT_OFF
Trigger L0_LR_VOCP_OFF_VAR
Occupatum Debug L0_LR_OCPTM: No Timer Active
Z-Wave received "L0_LR_OCP_Z" status update is off
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1846, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_ON
Action Group L0_LR_ON
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Schedule L0_LR_OCPTM_LT_ON (delayed action)
Sent INSTEON "PowerLinc Interface" on to 100% (instant) (scene 11 - L0_LR)
Received INSTEON "L0_LR_OCP" off (button 1)
Trigger L0_LR_OCP_OFF_VAR
Occupatum Debug Watched Device updated: L0_LR_OCP
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = False, previous = True, delay = 60.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1847, initial)> with delay = 60.0
Mar 22, 2021 at 12:05:22 PM
Mar 22, 2021 at 12:05:52 PM
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = False
Occupatum Debug L0_LR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_ON: Match on Zone L0_LR_OCPTM
Occupatum Debug L0_FR_OCPTM_LT_ON: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Testing Event Trigger
Occupatum Debug L0_LR_OCPTM_LT_OFF: Match on Zone L0_LR_OCPTM
Trigger L0_LR_OCPTM_LT_OFF
Action Group L0_LR_OFF
Occupatum Debug L0_FR_OCPTM_LT_OFF: Testing Event Trigger
Sent INSTEON "PowerLinc Interface" off (scene 11 - L0_LR)
Trigger L0_LR_LT_OFF
Occupatum Debug L0_LR_OCPTM: No Timer Active
Yes it looks like it.
So to boil it down to the bare minimum, it's the sensors L0_LR_OCP and L0_LR_OCP_Z, and the Occupatum device L0_LR_OCPTM, which is defined per the screenshot in the first post? I need to figure out the minimum needed to recreate this issue.
Exactly.
Here's what I'm seeing.
Occupatum Debug Watched Device updated: L0_LR_OCP
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1842, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
L0_LR_OCP turns on, which causes L0_LR_OCPTM to turn on immediately.
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = True, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1844, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
L0_LR_OCP_Z turns on, L0_LR_OCPTM is already on.
Z-Wave received "L0_LR_OCP_Z" status update is off
Occupatum Debug Watched Device updated: L0_LR_OCP_Z
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = True, previous = False, delay = 0.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1846, initial)> with delay = 0.0
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = True
L0_LR_OCP_Z turn off, L0_LR_OCPTM stays on (L0_LR_OCP is still on).
Received INSTEON "L0_LR_OCP" off (button 1)
Occupatum Debug Watched Device updated: L0_LR_OCP
Occupatum Debug L0_LR_OCPTM: checkSensors, onSensorsOnOff = on, onSensorsOnOff = on, sensors: [168366766, 935853968, 1445441965]
Occupatum Debug L0_LR_OCPTM: checkSensors, occupied = False, previous = True, delay = 60.0
Occupatum Debug L0_LR_OCPTM: checkSensors, starting delay timer <_Timer(Thread-1847, initial)> with delay = 60.0
L0_LR_OCP turns off, 60 sec delay timer started.
Occupatum Debug L0_LR_OCPTM: delayTimerComplete, occupied = False
Delay timer completes, L0_LR_OCPTM turns off.
I'm not seeing the L0_LR_OCPTM device turning on again. The only reference to a timer cancellation I see is:
Occupatum Debug L0_LR_OCPTM: No Timer Active
Where something tried to cancel a timer, but there wasn't one active.
I attempted to recreate your scenario based on the original description, and couldn't do it. If you can list the exact sequence of events, with delays between them, I can try again.
I go in to the room, and both (fairly close together) motion sensors trigger The lights comes on I wait 5 seconds and press the off button on the light This triggers a reset of the occupatum device and the light goes off As soon as z-wave motion reports off the light comes on After the other one reports off, and after a timeout the light goes off again.
I'll go over all my triggers to see if there isn't anything else interfering
What is important is the manual light off which resets ocupatum timers:
Z-Wave received "L0_LR_OCP_Z" status update is off
If I don't turn off the light ocupatum works properly, its only when I turn off the light and reset the ocupatum timer that this happens.
Oh, now I think I see what you mean. It's got nothing to do with timers. There is no active timer at that point, because the plugin doesn't have a pending transition to off. You can see that here:
Received INSTEON "L0_LR_LT" off
Trigger L0_LR_LT_OFF
Trigger L0_LR_VOCP_OFF_VAR
Occupatum Debug L0_LR_OCPTM: No Timer Active
You turn off the light with the Insteon keypad, and one of your triggers attempts to cancel a non-existent timer.
So you're turning off the light, but both sensors are still active. One of them turns off, which triggers a re-evaluation of the zone state. Which is turned back on because the other is still on.
You could change the zone definition to "All" sensors instead of "Any", but that might not work depending on why you have multiple sensors in the first place.
That sounds about right. So when I cancel the timer, there isn't one yet. So how do I deal with manual ight off? I don't want occupatum waiting the timeout period before triggereing again. I set my motion sensors to as low as possibly, 30s for the z-waves.
I have multiple sensors, so they catch you from several locations. In this case if you are in the room, in some places for longer, the light would go off.
So that begs the question - the zone is activated due to the motion sensors. You turn off the light. Now you really want that zone to not do anything until when? Both sensors go off and then it should be active again? You could disable the zone in the trigger, then re-enable it on a delay.
Untill both (all) sensors turn off. Which in my case will be about 30s.
What I don't want is wait for the timeout. Since I set the motion sensors to as short as possible, but my timeout fairly long at 10min. I don't want to go back to the room in 4 min and nothing happens.
Where's the 10 min timeout defined? Is that in the devices, or somewhere else.
Try this for now. In your action group where you were cancelling the timer, instead disable the device for 30 seconds:
That's under "Server Actions".
10 minutes is an example. It is in the delay off by seconds in the ocupatum. In this case I only have a minute, but in other like my workshop I need a lot more.
Ok. I see where you are going with this. This might work. Let me give this a try.
I'm thinking about how I can do a code change so it won't be necessary to disable the device. I need to make sure it doesn't break anything else.
It works, with disabling, but is a bit clunky. In my case I also need to delay the disabling by a second or it fails to turn on the lights. If you could figure out how to change the plugin, that would be super.
One other thing you can try while I'm looking into the logic changes.
Right now, you're using the "Zone Occupied" and "Zone Unoccupied" triggers, right? Try using the zone device onOff state
becomes "on" or "off" instead. Because those will only trigger if the zone actually changes state, unlike the other two which can possibly fire even if the state doesn't actually change.
And that's without the disable device in the actions...
Yes, I'm using zone occupied and zone unoccupied.
So try using the device state triggers.
Yes, it works. I still do a reset timer of ocupatum device but delay it for 30s.
What happens if you don't do the reset?
I'll try now.
Then the light doesn't come on again if I trigger the motion sensors after 30s. Which is exactly what I need.
Maybe I'm not understanding what you mean by a reset timer.
Since I want the light to come on after I manually turn it off, I need to reset ocupatum and change it to off so when the sensors trigger again the occupatum device becomes on, which in turn will turn on the light.
Sorry wrong screen shot. This is the correct one.
It's going to set the zone device to off as soon as both sensors report off. Which should happen about the same time, won't it? And the only timer is the delay to turn it off. SO basically you're just shorting your 1 minute off delay?
Yes. In this case it is only 1 minute, but I need more than one minute delay. I just set it to 60s because of the issue. And in other places I'll want it longer. If I could, I would set my motion sensors to 5s and off delay to 5 min or so.
What is happening is that my wife always turns off the light manually but she walks in and out often. So if she is back before the light would normally go out, it doesn't come on and she has to turn it on manually (and complains about it). What I want is if I turn off the light manually and then come back in after 30s the lights come back on. I will also get rid of the insteon motion sensor and install a second z-wave so I can have only 15 second delay. The insteon one can go down only to 30s.
I'm going to fix the zone triggers by only firing them when the state actually changes, which makes them functionally identical to the default Indigo device state change triggers. Using either of those solutions resolves this issue, as best I can tell.
Great. Let me know when you have a new version and I'll test it.
Installing it now.
Its still not fully working. With the cancel timer for zone triggered imediatelly when turning off the light, the light will turn on after the first motion sensor turns off. If I delay the cancel timer for zone to after the first motion turns off then it works. I'm triggering the light on occupatum's device state on/off.
It works if I delay the cancel till after both motions turn off. Otherwise it occupatum becomes on when one of them turns off but the other is still on. So what happens with the dalayed cancel is that ocupatum continues to be occupied untill the second motion is off and then I can cancel timer which also will make occupatum device off.
Thinking about it the way you have it done makes sense since there is still one motion active the assumption is it is occupied until all are off.
One thing I can do is to force the insteon motion off right away, I'm not sure if the z-wave can be done the same way. That way I don't have to wait the 30s, I can bring it down to 15. 15s is actually reasonable as it gives the person time to leave the room before the sensors pick them up again. The only problem is that the insteon will not pickup any motion for 30s anyway. I might just get rid of my last insteon sensors.
I need to run out for a bit so will not be able to respond.
When I cancel timer for zone (off) I get the state of the occupatum device off as exppected, however when one of my motion sensors turns off subsequently the occupatum device becomes on again and then after timeout becomes off again.
Log of the sequence: