Time condition showing as false, when should be true

Hi,

For a short while, we’ve had a problem with a condition turning false, and turning off some audio equipment. Could you help?

Thanks
Tony

=====

*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
   Version: 3.5hotfix-20103 config 20017 cdata 20045 ui 20045 pluginDevice 216 LuaXP 1.0.1
    System: Vera version 1.7.4970 (7.31) on Sercomm G450 ID 36 (Vera Plus); loadtime 1589058609; systemReady 1589058658; ALTUI v2.49; Lua 5.1; JSON dkjson 1.2; UnsafeLua=1
Local time: 2020-05-09T22:26:10+0100; DST=1; Askern, England United Kingdom; formats %Y-%m-%d %H:%M:%S
House mode: plugin 1; system 1; tracking on
  Sun data: { "source": "int", "civdawn": 1588994989, "nautdawn": 1588991411, "sunset": 1589053716, "nautdusk": 1589059889, "stamp": 2020130, "latitude": 53.6387, "astrodusk": 1589065700, "longitude": -1.0976, "civdusk": 1589056311, "astrodawn": 1588985600, "sunrise": 1588997584 }
  Geofence: not running
************************************************************************************************************************************
Lounge Entertainment (#233)
    Version 19082.17 03/18/20 20:28:36
    Message/status: Not tripped
    Condition group "Reactor Sensor 11" (AND)  false as of 22:11:04 <root>
      &-?-comment "Turn on amplifier evening" <cond0>
      &-F-group "Tv or movie" (OR)  false as of 22:11:04 <grpkbc97a0>
      |     |-F-group "sky" (AND)  false as of 22:11:04 <grpkbc98k0>
      |     |     &-T-service Harmony Control (199) urn:rboer-com:serviceId:Harmony1/CurrentActivityID = 37834123 [37834123 at 22:11:04; T/T as of 22:11:04/22:11:04] <condkbc2v4u>
      |     |     &-F-grpstate (self) (-1) Tv time (grpkbcbxrg) istrue [false at 22:11:04; F/F as of 22:11:04/22:11:04] <condp2sa7er>
      |     |-F-group "Movies" (AND)  false as of 22:11:04 <grpkbca8tz>
      |     |     &-F-service Harmony Control (199) urn:rboer-com:serviceId:Harmony1/CurrentActivityID = 37834019 [37834123 at 22:11:04; F/F as of 22:11:04/22:11:04] <condkbcaavh>
      |     |     &-F-grpstate (self) (-1) Tv time (grpkbcbxrg) istrue [false at 22:11:04; F/F as of 22:11:04/22:11:04] <condp2sagv3>
      &-T-group "Tv time" (AND)  TRUE as of 22:11:04 <grpkbcbxrg>
      |     &-T-trange bet ,,,20,0,,,,1,0 [1589058664 at 22:11:04; T/T as of 22:11:04/22:11:04] <condkbcc0us>
      &-F-group "Game Time" (OR)  false as of 22:11:04 <grpo24zi41>
      |     |-F-service Harmony Control (199) urn:rboer-com:serviceId:Harmony1/CurrentActivityID = 43410931 [37834123 at 22:11:04; F/F as of 22:11:04/22:11:04] <condo24zokg>
      |     |-F-service Harmony Control (199) urn:rboer-com:serviceId:Harmony1/CurrentActivityID = 43411131 [37834123 at 22:11:04; F/F as of 22:11:04/22:11:04] <condo4f4txn>
    Activity grpkbc97a0.false
        Device Subwoofer (36) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Delay 600 inline
        Device Hue Lounge Light (349) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity grpkbc97a0.true
        Device Subwoofer (36) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
    Activity grpo24zi41.false
        Device Games Machines (320) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
    Activity grpo24zi41.true
        Device Games Machines (320) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
    Events
        2020-05-09 22:10:53: Reactor startup (Luup reload)
        2020-05-09 22:10:54: Starting (Luup Startup/Reload)
        2020-05-09 22:11:03: Restart action invoked; clearing state and restarting ReactorSensor
        2020-05-09 22:11:03: Restarting
        2020-05-09 22:11:04: Condition condkbc2v4u test state changed from (nil) to true
        2020-05-09 22:11:04: Condition condkbc2v4u evaluation state changed from (nil) to true
        2020-05-09 22:11:04: Condition condp2sa7er test state changed from (nil) to false
        2020-05-09 22:11:04: Condition condp2sa7er evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Group sky test state changed from (nil) to false
        2020-05-09 22:11:04: Group sky evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Condition condkbcaavh test state changed from (nil) to false
        2020-05-09 22:11:04: Condition condkbcaavh evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Condition condp2sagv3 test state changed from (nil) to false
        2020-05-09 22:11:04: Condition condp2sagv3 evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Group Movies test state changed from (nil) to false
        2020-05-09 22:11:04: Group Movies evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Group Tv or movie test state changed from (nil) to false
        2020-05-09 22:11:04: Group Tv or movie evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Condition condkbcc0us test state changed from (nil) to true
        2020-05-09 22:11:04: Condition condkbcc0us evaluation state changed from (nil) to true
        2020-05-09 22:11:04: Group Tv time test state changed from (nil) to true
        2020-05-09 22:11:04: Group Tv time evaluation state changed from (nil) to true
        2020-05-09 22:11:04: Condition condo24zokg test state changed from (nil) to false
        2020-05-09 22:11:04: Condition condo24zokg evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Condition condo4f4txn test state changed from (nil) to false
        2020-05-09 22:11:04: Condition condo4f4txn evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Group Game Time test state changed from (nil) to false
        2020-05-09 22:11:04: Group Game Time evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Group Reactor Sensor 11 test state changed from (nil) to false
        2020-05-09 22:11:04: Group Reactor Sensor 11 evaluation state changed from (nil) to false
        2020-05-09 22:11:04: Launching Tv or movie.false activity
        2020-05-09 22:11:04: Launching scene/activity grpkbc97a0.false
        2020-05-09 22:11:04: Starting "grpkbc97a0.false" group 1
        2020-05-09 22:11:04: Delaying scene grpkbc97a0.false group 2 actions until 22:21:04
        2020-05-09 22:11:04: Launching Game Time.false activity
        2020-05-09 22:11:04: Launching scene/activity grpo24zi41.false
        2020-05-09 22:11:04: Starting "grpo24zi41.false" group 1
        2020-05-09 22:11:04: Activity "grpo24zi41.false" finished
        2020-05-09 22:11:04: Changing RS tripped state to false
        2020-05-09 22:21:04: Starting "grpkbc97a0.false" group 2
        2020-05-09 22:21:04: Activity "grpkbc97a0.false" finished
    Devices
        ZWave (1) urn:schemas-micasaverde-com:device:ZWaveNetwork:1 (19/0); parent 0; plugin -; mfg  model ; dev D_ZWaveNetwork.xml impl 
        Games Machines (320) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -; mfg  model ; dev D_BinaryLight1.xml impl 
        Hue Lounge Light (349) urn:schemas-upnp-org:device:DimmableRGBLight:1 (2/-1); parent 347; plugin -; mfg Signify Netherlands B.V. model LCT001; dev D_DimmableRGBALTHue1.xml impl 
        Subwoofer (36) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -; mfg  model ; dev D_BinaryLight1.xml impl 
        Philips hue (347) urn:schemas-upnp-org:device:althue:1 (26/-1); parent 0; plugin 9066; mfg Philips hue model BSB002; dev D_ALTHUE.xml impl I_ALTHUE.xml
        Harmony Control (199) urn:schemas-rboer-com:device:Harmony199:1 (3/0); parent 0; plugin 8066; mfg  model ; dev D_Harmony199.xml impl I_Harmony.xml
    Watches
        Device #233 Lounge Entertainment service urn:toggledbits-com:serviceId:ReactorGroup variable GroupStatus_grpkbcbxrg
        Device #233 Lounge Entertainment service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
        Device #199 Harmony Control service urn:rboer-com:serviceId:Harmony1 variable CurrentActivityID
        Device #233 Lounge Entertainment service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
        Device #233 Lounge Entertainment service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
    Special Configuration
        Retrigger = 0
        ContinuousTimer = 0

Can you be a little more specific? Everything in the logic summary says Reactor is doing exactly what it’s been configured to do. If there’s a problem here, I don’t see it.

Also, if you’re having a problem, DON’T restart the ReactorSensor or reload Luup (not sure if the reload there was you or spontaneous). Capture the Logic Summary FIRST. Restarting the ReactorSensor erases the history and all previously stored state data, so if something wasn’t as it should be, there’s no chance of seeing it now.

Hi Patrick,

Please review the group tv-time. The group is showing as true, however in the conditions the group state is showing as false. I’ve not made any changes to affect this. Also I’ve not reloaded luup or reactorsensor, so not sure how that’s been happening.

Hope that helps,
Tony

Evaluations are top-down. You are using the group state before the group state is being evaluated. It’s like using a variable before it’s defined. Move the “TV time” group above “TV or Movie” and it should be right as rain.