I have two lights on separate loads which I’d like to turn on independantly, but if one gets turned off, they both go off.
I’ve been successful with the following code, but it only works when I turn off “Under Cabinet Two”, but does not work if I turn off “Under Cabinet”. As far as I can tell, the setup is identical for both so cannot understand why its not working…thoughts?
Edit:
Troubleshot this a little and its order of operations. I swapped the positions of conditions for cabinet 1 and 2 in reactor and now the other light is having the same effect. Work around?..was trying to build this without any time constraints.
*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
Version: 3.4 config 19226 cdata 19082 ui 19237 pluginDevice 8
System: Vera version 1.7.4832 on Sercomm NA301; loadtime 1579669659; systemReady 1579669674; Lua 5.1; JSON dkjson 1.2
Local time: 2020-01-22T00:34:53-0500; DST=0; Oakville, Ontario Canada
House mode: plugin 1; system 1; tracking on
Sun data: { "stamp": 2020022, "civdawn": 1579695191, "nautdawn": 1579693095, "sunset": 1579731336, "nautdusk": 1579735307, "latitude": 43.4501, "astrodusk": 1579737345, "longitude": -79.6829, "civdusk": 1579733211, "astrodawn": 1579691057, "sunrise": 1579697066 }
Geofence: not running
====================================================================================================================================
Under Cabinet Link (#70)
Version 19082.13 01/22/20 00:34:26
Message/status: Not tripped
Condition group "Under Cabinet Link - NULL" (AND) false as of 00:12:21 <root>
&-F-group "Cabinet 2 OFF" (AND) after condn521jss false as of 00:34:41 <grpn521dcl>
| &-T-service Under Cabinet Two (69) urn:upnp-org:serviceId:SwitchPower1/Status = 0 [1 => 0 at 00:34:41; T/T as of 00:34:41/00:34:41] <condn521f97>
| &-F-service Under Cabinet (67) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [1 => 0 at 00:34:41; F/F as of 00:34:41/00:34:41] <condn521g7d>
&-F-group "Cabinet 1 OFF" (AND) after condn521g7d false as of 00:33:56 <grpn521hd8>
| &-T-service Under Cabinet (67) urn:upnp-org:serviceId:SwitchPower1/Status = 0 [1 => 0 at 00:34:41; T/T as of 00:34:41/00:34:41] <condn521ikd>
| &-F-service Under Cabinet Two (69) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [1 => 0 at 00:34:41; F/F as of 00:34:41/00:34:41] <condn521jss>
Activity grpn521hd8.true
Device Under Cabinet Two (69) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
Activity grpn521dcl.true
Device Under Cabinet (67) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
Events
01/22/20 00:33:56 endscene: scene=grpn521hd8.true, sceneName=grpn521hd8.true
01/22/20 00:33:56 devicewatch: device=69, old="1", name=Under Cabinet Two, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="0"
01/22/20 00:33:56 condchange: newState=true, cond=condn521f97, oldState=false
01/22/20 00:33:56 evalchange: newState=true, cond=condn521f97, oldState=false
01/22/20 00:33:56 condchange: newState=false, cond=condn521jss, oldState=true
01/22/20 00:33:56 evalchange: newState=false, cond=condn521jss, oldState=true
01/22/20 00:33:56 condchange: newState=false, cond=grpn521hd8, oldState=true
01/22/20 00:33:56 evalchange: newState=false, cond=grpn521hd8, oldState=true
01/22/20 00:34:26 configchange:
01/22/20 00:34:33 devicewatch: device=67, old="0", name=Under Cabinet, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="1"
01/22/20 00:34:33 condchange: newState=true, cond=condn521g7d, oldState=false
01/22/20 00:34:33 evalchange: newState=true, cond=condn521g7d, oldState=false
01/22/20 00:34:33 condchange: newState=true, cond=grpn521dcl, oldState=false
01/22/20 00:34:33 condchange: newState=false, cond=condn521ikd, oldState=true
01/22/20 00:34:33 evalchange: newState=false, cond=condn521ikd, oldState=true
01/22/20 00:34:34 devicewatch: device=69, old="0", name=Under Cabinet Two, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="1"
01/22/20 00:34:34 condchange: newState=false, cond=condn521f97, oldState=true
01/22/20 00:34:34 evalchange: newState=false, cond=condn521f97, oldState=true
01/22/20 00:34:34 condchange: newState=false, cond=grpn521dcl, oldState=true
01/22/20 00:34:34 condchange: newState=true, cond=condn521jss, oldState=false
01/22/20 00:34:34 evalchange: newState=true, cond=condn521jss, oldState=false
01/22/20 00:34:37 devicewatch: device=67, old="1", name=Under Cabinet, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="0"
01/22/20 00:34:37 condchange: newState=false, cond=condn521g7d, oldState=true
01/22/20 00:34:37 evalchange: newState=false, cond=condn521g7d, oldState=true
01/22/20 00:34:37 condchange: newState=true, cond=condn521ikd, oldState=false
01/22/20 00:34:37 evalchange: newState=true, cond=condn521ikd, oldState=false
01/22/20 00:34:37 condchange: newState=true, cond=grpn521hd8, oldState=false
01/22/20 00:34:40 devicewatch: device=67, old="0", name=Under Cabinet, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="1"
01/22/20 00:34:40 condchange: newState=true, cond=condn521g7d, oldState=false
01/22/20 00:34:40 evalchange: newState=true, cond=condn521g7d, oldState=false
01/22/20 00:34:40 condchange: newState=false, cond=condn521ikd, oldState=true
01/22/20 00:34:40 evalchange: newState=false, cond=condn521ikd, oldState=true
01/22/20 00:34:40 condchange: newState=false, cond=grpn521hd8, oldState=true
01/22/20 00:34:41 devicewatch: device=69, old="1", name=Under Cabinet Two, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="0"
01/22/20 00:34:41 condchange: newState=true, cond=condn521f97, oldState=false
01/22/20 00:34:41 evalchange: newState=true, cond=condn521f97, oldState=false
01/22/20 00:34:41 condchange: newState=true, cond=grpn521dcl, oldState=false
01/22/20 00:34:41 evalchange: newState=true, cond=grpn521dcl, oldState=false
01/22/20 00:34:41 condchange: newState=false, cond=condn521jss, oldState=true
01/22/20 00:34:41 evalchange: newState=false, cond=condn521jss, oldState=true
01/22/20 00:34:41 startscene: scene=grpn521dcl.true, sceneName=grpn521dcl.true
01/22/20 00:34:41 runscene: scene=grpn521dcl.true, sceneName=grpn521dcl.true, group=1, notice=Starting scene group 1
01/22/20 00:34:41 endscene: scene=grpn521dcl.true, sceneName=grpn521dcl.true
01/22/20 00:34:41 devicewatch: device=67, old="1", name=Under Cabinet, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="0"
01/22/20 00:34:41 condchange: newState=false, cond=condn521g7d, oldState=true
01/22/20 00:34:41 evalchange: newState=false, cond=condn521g7d, oldState=true
01/22/20 00:34:41 condchange: newState=false, cond=grpn521dcl, oldState=true
01/22/20 00:34:41 evalchange: newState=false, cond=grpn521dcl, oldState=true
01/22/20 00:34:41 condchange: newState=true, cond=condn521ikd, oldState=false
01/22/20 00:34:41 evalchange: newState=true, cond=condn521ikd, oldState=false
Devices
ZWave (1) urn:schemas-micasaverde-com:device:ZWaveNetwork:1 (19/0); parent 0; plugin -
Under Cabinet (67) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -
Under Cabinet Two (69) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -