Help with Proper Logic to Turn on Lights When Coming Home


====================================================================================================================================
Welcome Home (#574)
    Version 19082.46 06/23/19 12:06:41
    Message/status: Not tripped
    Condition group "Mode to Home, @Night TV OFF" (AND) false as of 06-21.21:43:00 <root>
      &-F-housemode in ,1 [2 => 1 at 11:12:42; T/F as of 11:12:42/06-21.21:43:00] <condemeco6y>
      &-F-sun bet civdusk+0,civdawn+0 [1561313562 => 1561316803 at 12:06:43; F/F as of 00:00:00/06-21.21:43:00] <condemew1sc>
      &-F-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 after condemeco6y [32003180 => -1 at 06-22.00:52:31; T/F as of 06-22.00:52:31/06-21.21:43:00] <condemewkmv>
    Activity root.false
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/23/19 02:00:24 start: 
        06/23/19 06:00:10 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/23/19 06:00:11 condchange: newState=true, cond=condemeco6y, oldState=false
        06/23/19 09:02:09 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/23/19 09:02:10 condchange: newState=false, cond=condemeco6y, oldState=true
        06/23/19 10:25:41 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/23/19 10:25:42 condchange: newState=true, cond=condemeco6y, oldState=false
        06/23/19 10:26:38 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/23/19 10:26:39 condchange: newState=false, cond=condemeco6y, oldState=true
        06/23/19 11:12:41 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/23/19 11:12:42 condchange: newState=true, cond=condemeco6y, oldState=false
        06/23/19 12:06:42 configchange: 
```

The sequence restriction should go on the sunrise/sunset condition.


====================================================================================================================================
Welcome Home (#574) tripped
    Version 19082.48 06/24/19 05:16:50
    Message/status: Tripped
    Condition group "Mode to Home, @Night TV OFF" (AND) TRUE as of 22:07:00 <root>
      &-T-housemode in ,1 [3 => 1 at 22:07:00; T/T as of 22:07:00/22:07:00] <condemeco6y>
      &-T-sun bet civdusk+0,civdawn+0 [1561316803 => 1561352820 at 22:07:00; T/T as of 22:07:00/22:07:00] <condemew1sc>
      &-T-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 [32003180 => -1 at 22:07:00; T/T as of 22:07:00/22:07:00] <condemewkmv>
    Activity root.false
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/24/19 02:00:27 start: 
        06/24/19 03:10:00 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/24/19 03:10:10 condchange: newState=true, cond=condemeco6y, oldState=false
        06/24/19 05:16:51 configchange: 
        06/24/19 05:16:52 evalchange: newState=true, cond=condemeco6y, oldState=false
        06/24/19 05:16:52 evalchange: newState=true, cond=condemew1sc, oldState=false
        06/24/19 05:16:52 evalchange: newState=true, cond=condemewkmv, oldState=false
        06/24/19 05:16:52 condchange: newState=true, cond=root, oldState=false
        06/24/19 05:16:52 evalchange: newState=true, cond=root, oldState=false
        06/24/19 05:16:52 sensorstate: state=true
        06/24/19 05:16:52 startscene: scene=root.true, sceneName=root.true
        06/24/19 05:16:52 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/24/19 05:16:52 endscene: scene=root.true, sceneName=root.true
```

The sequence restriction is now not there at all (apparently).

Edit: that may be a problem with the logic summary. Just confirm itā€™s set in the UI and you should be good to go.

It seems to trip if Home mode is active not just when it changes to Home modeā€¦ maybe just the first time on reload?


====================================================================================================================================
Welcome Home (#574)
    Version 19082.48 06/24/19 05:16:50
    Message/status: Not tripped
    Condition group "Mode to Home, @Night TV OFF" (AND) false as of 05:23:19 <root>
      &-T-housemode in ,1 [3 => 1 at 22:07:00; T/T as of 22:07:00/22:07:00] <condemeco6y>
      &-F-sun bet civdusk+0,civdawn+0 [1561378999 => 1561382700 at 06:25:00; F/F as of 05:23:19/05:23:19] <condemew1sc>
      &-T-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 [32003180 => -1 at 22:07:00; T/T as of 22:07:00/22:07:00] <condemewkmv>
    Activity root.false
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/24/19 06:24:59 start: 
```

Yes it can take a cycle for the sequence to be established.

1 Like

Also keep in mind that ā€œhouse mode changes from any to Homeā€ is the same as saying ā€œhouse mode is homeā€. The change in state occurs at the time the House mode changes, but the condition remains true as long as the House mode stays in the terminal state (Home, in this case).

1 Like

Argā€¦ Now if Vera is in Home Mode and it is after dusk and I then turn off the TV, the lights come onā€¦ I need to work on my conditions!

I would regroup and redefine what problem you are trying to solve. There have been so many changes and so much diving into minutia that the sightline to the goal may need review and focus. Think about what conditions you need to address the goal in terms of explaining it in English, as if you were instructing a child on how to be the automation, then put various scenarios through your description. When you get to something that meets the objective, then and only then try to translate that into Reactor logic.

1 Like

Good afternoon guys
Your discussion reminded me of the need to correct my logic. I composed it when the reactor just appeared. It is worth optimizing, but! She worked flawlessly throughout the past winter and spring. Now it does not work, we have a very long day))

Yesā€¦ I will devise a flow chart and post it but it this

Condition: Between Dusk to Dawn is True and has been true, not to trip any action.
Condition: TV in Family Room Off is True and has been true, not to trip any action.
Condition: House Mode Changes from Any Mode to Home Mode, only on a change, not if it already exists, this is the only thing to trip an action.

Activity / Action: Family Room Light and Dimmer Light turn On. Else, nothing happens at all.

Maybe I need to put the conditions in the order above for this to work properly? Currently I have the House Mode Change Condition listed first.

TIA

It seems the logic is

If NOT {{TV is off} OR {Time is Between Dusk and Dawn}} And {House Mode changes from Any to Home} then Turn on Lights, Else Do nothing.

Still testingā€¦

====================================================================================================================================
Welcome Home (#574)
    Version 19082.66 06/25/19 12:39:16
    Message/status: Not tripped
    Test time set: 2019-06-25 21:49
    Condition group "Mode to Home, @Night TV OFF" (AND) false as of 21:49:00 <root>
      &-T-housemode in ,1 [2 => 1 at 21:49:00; T/T as of 21:49:00/21:49:00] <condesewo4s>
      &-F-group "grpesf3v27" (NOT OR) false as of 21:49:00 <grpesf3v27>
      |     |-T-sun bet civdusk+0,civdawn+0 [1561524540 at 21:49:00; T/T as of 21:49:00/21:49:00] <condesf41ip>
      |     |-T-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/CurrentActivityID = -1 [32003180 => -1 at 21:49:00; T/T as of 21:49:00/21:49:00] <condesf4auh>
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/25/19 12:38:07 action: action=Reset
        06/25/19 12:38:07 sensorstate: state=false
        06/25/19 12:38:15 action: action=Restart
        06/25/19 12:38:15 start: 
        06/25/19 12:38:16 sensorstate: state=true
        06/25/19 12:38:16 startscene: scene=root.true, sceneName=root.true
        06/25/19 12:38:16 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/25/19 12:38:16 endscene: scene=root.true, sceneName=root.true
        06/25/19 12:38:38 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/CurrentActivityID, new="32003180"
        06/25/19 12:38:38 devicewatch: device=351, old="0", name=Harmony Control, var=urn:upnp-org:serviceId:SwitchPower1/Target, new="1"
        06/25/19 12:38:38 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/25/19 12:38:39 condchange: newState=false, cond=condesf4auh, oldState=true
        06/25/19 12:38:39 evalchange: newState=false, cond=condesf4auh, oldState=true
        06/25/19 12:38:39 condchange: newState=false, cond=grpesf3v27, oldState=true
        06/25/19 12:38:39 evalchange: newState=false, cond=grpesf3v27, oldState=true
        06/25/19 12:38:39 condchange: newState=false, cond=root, oldState=true
        06/25/19 12:38:39 evalchange: newState=false, cond=root, oldState=true
        06/25/19 12:38:39 sensorstate: state=false
        06/25/19 12:38:47 action: action=Restart
        06/25/19 12:38:47 start: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:17 configchange: 
        06/25/19 12:39:32 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/CurrentActivityID, new="-1"
        06/25/19 12:39:32 devicewatch: device=351, old="1", name=Harmony Control, var=urn:upnp-org:serviceId:SwitchPower1/Target, new="0"
        06/25/19 12:39:32 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/25/19 12:39:33 condchange: newState=true, cond=condesf4auh, oldState=false
        06/25/19 12:39:33 evalchange: newState=true, cond=condesf4auh, oldState=false
        06/25/19 12:40:34 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/25/19 12:40:35 condchange: newState=false, cond=condesewo4s, oldState=true
        06/25/19 12:40:35 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/25/19 12:41:15 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/CurrentActivityID, new="32003180"
        06/25/19 12:41:15 devicewatch: device=351, old="0", name=Harmony Control, var=urn:upnp-org:serviceId:SwitchPower1/Target, new="1"
        06/25/19 12:41:15 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/25/19 12:41:16 condchange: newState=false, cond=condesf4auh, oldState=true
        06/25/19 12:41:16 evalchange: newState=false, cond=condesf4auh, oldState=true
        06/25/19 12:41:32 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/25/19 12:41:33 condchange: newState=true, cond=condesewo4s, oldState=false
        06/25/19 12:41:33 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/25/19 12:41:50 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/CurrentActivityID, new="-1"
        06/25/19 12:41:50 devicewatch: device=351, old="1", name=Harmony Control, var=urn:upnp-org:serviceId:SwitchPower1/Target, new="0"
        06/25/19 12:41:50 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/25/19 12:41:51 condchange: newState=true, cond=condesf4auh, oldState=false
        06/25/19 12:41:51 evalchange: newState=true, cond=condesf4auh, oldState=false
```

Currently I have Scenes that when certain PIN Codes are entered on the locks, the House Mode Plugin changes the House Mode to Home.

Iā€™d like to move this to the Welcome Home Reactor but am not sure what variable to use for sl_User_Code. Is it the PIN or is it one or both of the following: UserID=ā€œ#ā€ UserName=ā€œNameā€ as indicated in the ā€œCurrent value:ā€ Output for the condition? Can I send a device report and find out?

Thanks.

That doesnā€™t quite do it either. Maybe I need to have separate reactors to test conditions then have a main reactor to turn on the lights?

You need to remember that the way you are phrasing ā€œand house mode changes from any to homeā€ implies a time sequence that the condition itself does not implement on its own. As youā€™ve written it, the House mode condition literally means ā€œhouse mode is homeā€. If there is a sequence restriction in your logic, you need to express it in the options.

So, is your logic really ā€œIf NOT {{TV is off} OR {Time is Between Dusk and Dawn}} And then some time later {House Mode changes from Any to Home} then Turn on Lights, Else Do nothing.ā€? If so, your house mode condition needs an after/sequence option set, with the NOT-OR group being the predecessor selected.

I guess Iā€™m having difficulty with my ā€œLogicā€ and NOT OR isnā€™t the way to go, Truth Tables always help.

Since the logic works it is the case that if Vera is in Home Mode AND the TV gets turned off AND it is between dusk and dawn; or if Vera is in Home Mode AND the TV is off AND it becomes between dusk and dawn, then the lights will turn on.

How to work around this, IE have it ONLY triggered on the CHANGE in state of House Mode from any to HOME? Can Expressions be used here?

====================================================================================================================================
Welcome Home (#574)
    Version 19082.84 06/26/19 07:50:37
    Message/status: Not tripped
    Test time set: 2019-06-25 21:58
    Condition group "Mode to Home, @Night TV OFF" (AND) false as of 21:58:00 <root>
      &-F-housemode in ,1 [1 => 2 at 21:58:00; F/F as of 21:58:00/21:58:00] <condesewo4s>
      &-F-sun bet civdusk+0,civdawn+0 [1561525080 at 21:58:00; T/F as of 21:58:00/21:58:00] <condetd8e76>
      &-F-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 after condesewo4s [32003180 => -1 at 21:58:00; T/F as of 21:58:00/21:58:00] <condetd8z3x>
    Activity grpetdaz2k.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/26/19 07:09:23 evalchange: newState=false, cond=condetd8e76, oldState=true
        06/26/19 07:09:23 evalchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 07:09:42 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 07:09:43 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 07:09:43 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 07:09:43 evalchange: newState=true, cond=condetd8e76, oldState=false
        06/26/19 07:09:43 evalchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 07:11:12 configchange: 
        06/26/19 07:11:13 condchange: newState=true, cond=root, oldState=false
        06/26/19 07:11:13 evalchange: newState=true, cond=root, oldState=false
        06/26/19 07:11:13 devicewatch: device=574, old="0", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="1"
        06/26/19 07:11:13 sensorstate: state=true
        06/26/19 07:11:13 startscene: scene=root.true, sceneName=root.true
        06/26/19 07:11:13 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 07:11:13 endscene: scene=root.true, sceneName=root.true
        06/26/19 07:11:49 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 07:11:50 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 07:11:50 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 07:11:50 evalchange: newState=false, cond=condetd8e76, oldState=true
        06/26/19 07:11:50 evalchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 07:11:50 condchange: newState=false, cond=root, oldState=true
        06/26/19 07:11:50 evalchange: newState=false, cond=root, oldState=true
        06/26/19 07:11:50 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 07:11:50 sensorstate: state=false
        06/26/19 07:12:18 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/26/19 07:12:19 condchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 07:12:36 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 07:12:37 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 07:12:37 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 07:12:37 evalchange: newState=true, cond=condetd8e76, oldState=false
        06/26/19 07:13:07 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/26/19 07:13:08 condchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 07:13:08 evalchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 07:13:08 condchange: newState=true, cond=root, oldState=false
        06/26/19 07:13:08 evalchange: newState=true, cond=root, oldState=false
        06/26/19 07:13:08 devicewatch: device=574, old="0", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="1"
        06/26/19 07:13:08 sensorstate: state=true
        06/26/19 07:13:08 startscene: scene=root.true, sceneName=root.true
        06/26/19 07:13:08 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 07:13:08 endscene: scene=root.true, sceneName=root.true
        06/26/19 07:13:54 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 07:13:55 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 07:13:55 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 07:13:55 evalchange: newState=false, cond=condetd8e76, oldState=true
        06/26/19 07:13:55 evalchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 07:13:55 condchange: newState=false, cond=root, oldState=true
        06/26/19 07:13:55 evalchange: newState=false, cond=root, oldState=true
        06/26/19 07:13:55 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 07:13:55 sensorstate: state=false
        06/26/19 07:50:37 configchange: 
```

I believe I have it!


====================================================================================================================================
Welcome Home (#574)
    Version 19082.87 06/26/19 08:12:09
    Message/status: Not tripped
    Test time set: 2019-06-25 21:58
    Condition group "Mode to Home, @Night TV OFF" (AND) false as of 21:58:00 <root>
      &-T-sun bet civdusk+0,civdawn+0 [1561525080 at 21:58:00; T/T as of 21:58:00/21:58:00] <condetd8e76>
      &-T-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 (match case) [32003180 => -1 at 21:58:00; T/T as of 21:58:00/21:58:00] <condetd8z3x>
      &-F-housemode in ,1 [1 => 2 at 21:58:00; F/F as of 21:58:00/21:58:00] <condesewo4s>
      &-F-housemode in ,1 [1 => 2 at 21:58:00; F/F as of 21:58:00/21:58:00] <condetkygr8>
    Activity grpetdaz2k.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/26/19 08:30:31 action: action=Reset
        06/26/19 08:30:31 sensorstate: state=false
        06/26/19 08:31:08 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/26/19 08:31:25 action: action=Restart
        06/26/19 08:31:25 disabled at startup: 
        06/26/19 08:36:42 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/26/19 08:36:55 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:36:58 action: action=SetEnabled, state=1
        06/26/19 08:37:00 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:37:00 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:37:00 condchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:37:00 evalchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:37:00 condchange: newState=false, cond=root, oldState=true
        06/26/19 08:37:00 evalchange: newState=false, cond=root, oldState=true
        06/26/19 08:37:00 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 08:37:16 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/26/19 08:37:17 condchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 08:37:17 evalchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 08:37:40 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:37:41 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:37:41 condchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:37:41 evalchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:37:54 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:37:55 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:37:55 condchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:37:55 evalchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:37:59 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/26/19 08:38:00 condchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 08:38:00 evalchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 08:38:14 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:38:15 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:38:15 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:38:15 condchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:38:15 evalchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:38:15 condchange: newState=true, cond=root, oldState=false
        06/26/19 08:38:15 evalchange: newState=true, cond=root, oldState=false
        06/26/19 08:38:15 devicewatch: device=574, old="0", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="1"
        06/26/19 08:38:15 sensorstate: state=true
        06/26/19 08:38:15 startscene: scene=root.true, sceneName=root.true
        06/26/19 08:38:15 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 08:38:15 endscene: scene=root.true, sceneName=root.true
        06/26/19 08:38:37 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:38:38 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:38:38 condchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:38:38 condchange: newState=false, cond=root, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=root, oldState=true
        06/26/19 08:38:38 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 08:38:38 sensorstate: state=false
```

I spoke too soon. Even with this if Vera is in Home Mode and the TV is on and then I turn the TV Off the lights will come on.

====================================================================================================================================
Welcome Home (#574) tripped
    Version 19082.87 06/26/19 08:12:09
    Message/status: Tripped
    Test time set: 2019-06-25 21:58
    Condition group "Mode to Home, @Night TV OFF" (AND) TRUE as of 21:58:00 <root>
      &-T-sun bet civdusk+0,civdawn+0 [1561525080 at 21:58:00; T/T as of 21:58:00/21:58:00] <condetd8e76>
      &-T-service Harmony Control (351) urn:rboer-com:serviceId:Harmony1/StartingActivityID = -1 (match case) [32003180 => -1 at 21:58:00; T/T as of 21:58:00/21:58:00] <condetd8z3x>
      &-T-housemode in ,1 [2 => 1 at 21:58:00; T/T as of 21:58:00/21:58:00] <condesewo4s>
      &-T-housemode in ,1 [2 => 1 at 21:58:00; T/T as of 21:58:00/21:58:00] <condetkygr8>
    Activity grpetdaz2k.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity root.true
        Device 199 (Fam Room Light & Fan) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
        Device 26 (Tripod Dimmer) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="50" )
    Events
        06/26/19 08:38:15 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 08:38:15 endscene: scene=root.true, sceneName=root.true
        06/26/19 08:38:37 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:38:38 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:38:38 condchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:38:38 condchange: newState=false, cond=root, oldState=true
        06/26/19 08:38:38 evalchange: newState=false, cond=root, oldState=true
        06/26/19 08:38:38 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 08:38:38 sensorstate: state=false
        06/26/19 08:41:59 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:42:00 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:42:00 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:42:00 condchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:42:00 evalchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:42:00 condchange: newState=true, cond=root, oldState=false
        06/26/19 08:42:00 evalchange: newState=true, cond=root, oldState=false
        06/26/19 08:42:00 devicewatch: device=574, old="0", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="1"
        06/26/19 08:42:00 sensorstate: state=true
        06/26/19 08:42:00 startscene: scene=root.true, sceneName=root.true
        06/26/19 08:42:00 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 08:42:00 endscene: scene=root.true, sceneName=root.true
        06/26/19 08:42:21 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:42:22 condchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:42:22 evalchange: newState=false, cond=condesewo4s, oldState=true
        06/26/19 08:42:22 condchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:42:22 evalchange: newState=false, cond=condetkygr8, oldState=true
        06/26/19 08:42:22 condchange: newState=false, cond=root, oldState=true
        06/26/19 08:42:22 evalchange: newState=false, cond=root, oldState=true
        06/26/19 08:42:22 devicewatch: device=574, old="1", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="0"
        06/26/19 08:42:22 sensorstate: state=false
        06/26/19 08:42:23 devicewatch: device=351, old="-1", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="32003180"
        06/26/19 08:42:24 condchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 08:42:24 evalchange: newState=false, cond=condetd8z3x, oldState=true
        06/26/19 08:42:46 devicewatch: name=Reactor Plugin, var=HouseMode, device=558
        06/26/19 08:42:47 condchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:42:47 condchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:42:47 evalchange: newState=true, cond=condetkygr8, oldState=false
        06/26/19 08:43:07 devicewatch: device=351, old="32003180", name=Harmony Control, var=urn:rboer-com:serviceId:Harmony1/StartingActivityID, new="-1"
        06/26/19 08:43:08 condchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 08:43:08 evalchange: newState=true, cond=condetd8z3x, oldState=false
        06/26/19 08:43:08 evalchange: newState=true, cond=condesewo4s, oldState=false
        06/26/19 08:43:08 condchange: newState=true, cond=root, oldState=false
        06/26/19 08:43:08 evalchange: newState=true, cond=root, oldState=false
        06/26/19 08:43:08 devicewatch: device=574, old="0", name=Welcome Home, var=urn:toggledbits-com:serviceId:ReactorGroup/GroupStatus_root, new="1"
        06/26/19 08:43:09 sensorstate: state=true
        06/26/19 08:43:09 startscene: scene=root.true, sceneName=root.true
        06/26/19 08:43:09 runscene: scene=root.true, sceneName=root.true, group=1, notice=Starting scene group 1
        06/26/19 08:43:09 endscene: scene=root.true, sceneName=root.true
```

OK. I just arrived home after 11+ days away. Donā€™t do anything more at this point. Let me set this up as closely as I can in my development environment and see what I can shake out. Your latest attempt looks like it should place nice, and my earlier direction should also have worked. Let me investigate both now that I have access to both code and hardware.

1 Like

Thanks Patrick!

What I think it needs is to have the change from any to Home act as a relay with a momentary switch. Does that make sense? Is it possible?

BTW, right now I have several scenes that when a PIN code is entered into a lock it will switch to home mode using the house modes plugin. This is what Iā€™m using to trigger this new reactor I am trying to set up. I would like to just have all these lock triggers built into this reactor. This was merely Phase 1 to get the logic worked out of turning on the lights only at night and only if the TV is off.

I get what youā€™re saying, but that wonā€™t really change the way this works, and in fact, might make it a lot harder. When you need operations to be sequenced, the hold of the state is actually vitally important. Butā€¦ your last even log shows a potential problem with the sequencing not being honored, and Iā€™ve already fixed a sequencing issue for 3.3, and I now suspect what you are getting may be related, but I want to put it through my own environment before I send you off making more changes. Iā€™ve been traveling and was sick while on the road as well, so I canā€™t say youā€™ve had the best version of me looking at this, and at the same time, youā€™ve been making a lot of big changes while Iā€™m trying to focus in on a stable environment with just little, incremental changes, and thatā€™s made it harder for me to track the issue all around. But I donā€™t want to put you through any more gyrations until I wrap my (clear) head around it and do this in my own controlled environment. Then we can worry about yours.

1 Like