(Last Updated: June 14, 2020)

Reactor Oddity



  • Morning. As posted elsewhere, I've killed all my scenes and moved to Reactor.
    One thing that is not quite working is my morning alarm. The idea (and the scene) was that the alarm clock device changes state, then triggers reactor to os.execute a script which curls to my volumio player. No biggy been working for years. Reactor seems unhappy and damned if I can see why:

    Specific screen shot:

    Screenshot 2020-06-12 at 06.47.01.png

    Shows that the sensor has been false since 0530 June 11, but the log shows:

    06	06/12/20 6:00:00.110	Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1591849810 now: 1591938000 #hooks: 0 upnp: 0 skip: 0 v:0xd04870/NONE duplicate:0 <0x74c87520>
    06	06/12/20 6:00:00.121	Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 1 #hooks: 1 upnp: 0 skip: 1 v:0xd055a8/NONE duplicate:0 <0x74c87520>
    08	06/12/20 6:00:00.363	JobHandler_LuaUPnP::HandleActionRequest device: 141 service: urn:upnp-org:serviceId:VClock1 action: GetAlarmTime <0x75287520>
    06	06/12/20 6:01:32.490	Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: ArmedTripped was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x12d0c38/DL_ARMEDTRIPPED duplicate:0 <0x76f73520>
    06	06/12/20 6:01:32.491	Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1591938000 now: 1591938092 #hooks: 0 upnp: 0 skip: 0 v:0x12d0a80/NONE duplicate:0 <0x76f73520>
    06	06/12/20 6:01:32.492	Device_Variable::m_szValue_set device: 141 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 0 #hooks: 0 upnp: 0 skip: 1 v:0x12d0950/NONE duplicate:0 <0x76f73520>
    

    That it tripped (as expected) at 0600 June 12th.

    Any thoughts as to what I'm missing? I've tried with ArmedTripped as well, and that also didn't fire.

    Logic summary

    *************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
       Version: 3.6 config 20070 cdata 20045 ui 20130 pluginDevice 109 LuaXP 1.0.2enh
        System: Vera version 1.7.4833 (7.30) on Sercomm G450 ID 36 (Vera Plus); loadtime 1591938067/1591938091; systemReady 1591938096; ALTUI v2.49
           Env: Lua 5.1; JSON dkjson 1.2; UnsafeLua=1/true
    Local time: 2020-06-12T06:43:40+0100; DST=1; Harlow, England United Kingdom; formats %Y-%m-%d %H:%M:%S
    House mode: plugin 1; system 1; tracking on
      Sun data: { "source": "int", "civdawn": 1591930374, "nautdawn": 1591925888, "sunset": 1591993087, "nautdusk": 1592000446, "stamp": 2020164, "latitude": 51.76253, "astrodusk": null, "longitude": 0.134391, "civdusk": 1591995960, "astrodawn": null, "sunrise": 1591933248 }
      Geofence: not running
            RS: 1591734364,1591735539,1591737519,1591738125,1591766191,1591770523,1591770640,1591786032,1591786144,1591938091
            NS: 0:X,1589293080:U,1589395800:D,1589395860:U,1590934920:D,1590935220:U
    ************************************************************************************************************************************
    Bedroom Keypad (#132)
        Version 19082.114 06/11/20 06:05:02
        Message/status: Not tripped
        Condition group "Master Bedroom Keypad" (AND)  false as of 03-29.02:00:01 <root>
          &-F-group "Single press on button one (DAY)" (AND)  false as of 04-19.07:43:04 <grpgsop1aj>
          |     &-?-comment "Sets the house up for morning when the sun is up. 13 minute delay for showering" <condlcz902i>
          |     &-F-group "Has Alexa triggered the shower" (OR)  false as of 06-09.11:47:45 <grpso06xoi>
          |     |     |-F-service Shower_Trigger (257) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [0 at 06-09.11:47:45; F/F as of 06-09.11:47:45/06-09.11:47:45] <condso07vu3>
          |     |     |-F-group "Or has button one been pressed" (AND)  false as of 06-09.11:47:45 <grpso07bdg>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 1 [9 => 13 at 06-09.12:59:21; F/F as of 04-19.07:43:04/04-19.07:43:04] <condgsopmmy>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update ; output follow, delay reset for 30s [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:51] <condgsopzzi>
          |     &-T-service Day or Night (26) urn:rts-services-com:serviceId:DayTime/Status = 1 [0 => 1 at 04:55:29; T/T as of 04:55:29/04:55:29] <condgsoqhi9>
          &-F-group "Single press on button one (NIGHT)" (AND)  false as of 06-10.21:24:50 <grpgniuphh>
          |     &-?-comment "Sets the house up for the morning when the sun has not risen. 13 minute delay for showering" <condlcz9wih>
          |     &-F-group "Has Alexa triggered the shower" (OR)  false as of 06-09.11:47:45 <grpso0a7si>
          |     |     |-F-service Shower_Trigger (257) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [0 at 06-09.11:47:45; F/F as of 06-09.11:47:45/06-09.11:47:45] <condso0b46s>
          |     |     |-F-group "Or has button one been pressed" (AND)  false as of 06-09.11:47:45 <grpso0af3p>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 1 [9 => 13 at 06-09.12:59:21; F/F as of 04-19.07:43:04/04-19.07:43:04] <condgniuzpf>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update ; output follow, delay reset for 30s [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:51] <condgnivjlq>
          |     &-F-service Day or Night (26) urn:rts-services-com:serviceId:DayTime/Status = 0 [0 => 1 at 04:55:29; F/F as of 04:55:29/04:55:29] <condgniw190>
          &-F-group "Single press on button two or Alexa: Time to get up (DAY)" (AND)  false as of 06:28:24 <grpgr2s3wv>
          |     &-?-comment "Sets the house up for the morning when the sun has risen" <condqj3av4l>
          |     &-F-group "grpqj3anz5" (OR)  false as of 06:28:24 <grpqj3anz5>
          |     |     |-F-service Morning_Trigger (244) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [1 => 0 at 06:28:24; F/F as of 06:28:24/06:28:24] <condqj3ceq3>
          |     |     |-F-group "grpqj3h1hl" (AND)  false as of 04-16.15:58:09 <grpqj3h1hl>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 5 [9 => 13 at 06-09.12:59:21; F/F as of 04-18.08:23:33/04-18.08:23:33] <condgr2s5sn>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update  [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:21] <condgr2s6us>
          |     &-T-service Day or Night (26) urn:rts-services-com:serviceId:DayTime/Status = 1 [0 => 1 at 04:55:29; T/T as of 04:55:29/04:55:29] <condgr2sais>
          &-F-group "Single press on button two or Alexa: Time to get up (NIGHT)" (AND)  false as of 03-29.02:00:01 <grpgr2u86a>
          |     &-?-comment "Sets the house up for the morning when the sun has not risen" <condqk6823b>
          |     &-F-group "grpqj3o1cv" (OR)  false as of 06:28:24 <grpqj3o1cv>
          |     |     |-F-service Morning_Trigger (244) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [1 => 0 at 06:28:24; F/F as of 06:28:24/06:28:24] <condqj3oo8j>
          |     |     |-F-group "grpqj3o71s" (AND)  false as of 04-16.16:03:39 <grpqj3o71s>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 5 [9 => 13 at 06-09.12:59:21; F/F as of 04-18.08:23:33/04-18.08:23:33] <condgr2u9lp>
          |     |     |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update  [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:21] <condgr2ubyr>
          |     &-F-service Day or Night (26) urn:rts-services-com:serviceId:DayTime/Status = 0 [0 => 1 at 04:55:29; F/F as of 04:55:29/04:55:29] <condgr2ucpa>
          &-F-group "Single press on button three" (AND)  false as of 06-09.12:59:16 <grpsnwx0ou>
          |     &-?-comment "Starts the Volumio in the master bedroom" <condsnwxjp9>
          |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 9 [9 => 13 at 06-09.12:59:21; F/F as of 06-09.12:59:21/06-09.12:59:21] <condsnwy7uc>
          |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update  [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:21] <condsnwyyoc>
          &-F-group "Single press on button 4" (AND)  false as of 06-09.12:59:21 <grpsnwxb2q>
          |     &-?-comment "Stops the Volumio in the master bedroom" <condsnwzhlj>
          |     &-T-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 13 [9 => 13 at 06-09.12:59:21; T/T as of 06-09.12:59:21/06-09.12:59:21] <condsnwzx12>
          |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update  [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:21] <condsnx0hfc>
          &-F-group "Single press on button eight" (AND)  false as of 03-29.02:00:01 <grplcyu4s7>
          |     &-?-comment "This will turn the house off" <condlcyu60p>
          |     &-?-comment "Note the House virtual switch runs the Good Night scene in the Master Bedroom" <condlcz2fmh>
          |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 29 [9 => 13 at 06-09.12:59:21; F/F as of 03-29.02:00:01/03-29.02:00:01] <condlcyvekq>
          |     &-F-service Master_Bedr_ZRC-90 (7) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene update  [1591786135 => 1591938068 at 06:01:32; F/F as of 06-09.12:59:21/06-09.12:59:21] <condlcyx74m>
          &-F-group "Alarm Clock" (AND)  false as of 06-11.05:30:10 <grpsnxo66j>
          |     &-?-comment "Not part of the keypad, but removing the Alarm Clock scene" <condsnxofxi>
          |     &-F-service Alarm_Clock (141) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped = 1 [1 => 0 at 06-11.05:30:10; F/F as of 06-11.05:30:10/06-11.05:30:10] <condsnxox6c>
        Activity grpsnwx0ou.true
            Run Lua:
                 1: os.execute ("/BedroomPlay")
        Activity grpsnwxb2q.true
            Run Lua:
                 1: os.execute("/BedroomStop")
        Activity grpgr2u86a.true
            Device Kettle_Plug (153) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Kitchen_Lights (15) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Standard_Lamp (57) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Table Lamp (37) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Security (235) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
            Device Morning_Trigger (244) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Activity grpsnxo66j.true
            Run Lua:
                 1: os.execute ("/BedroomWakeup >/dev/null 2>&1 <&- &")
        Activity grpgsop1aj.true
            Run Lua:
                 1: os.execute ("/BathroomPlay")
            Delay 720 inline
            Device Kettle_Plug (153) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Security (235) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Activity grplcyu4s7.true
            Device House (152) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Activity grpgr2s3wv.true
            Device Kettle_Plug (153) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Security (235) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
            Device Morning_Trigger (244) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Activity grpgniuphh.true
            Delay 720 inline
            Run Lua:
                 1: os.execute ("/BathroomPlay")
            Device Kettle_Plug (153) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Kitchen_Lights (15) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Standard_Lamp (57) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Table Lamp (37) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
            Device Security (235) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Events
            2020-06-12 06:01:31: Reactor startup (Luup reload)
            2020-06-12 06:01:31: Starting (Luup Startup/Reload)
            2020-06-12 06:01:32: Sensor update starting
            2020-06-12 06:01:32: Sensor update completed; 0.170s
            2020-06-12 06:28:10: Device Morning_Trigger (#244) urn:upnp-org:serviceId:SwitchPower1/Status changed from "0" to "1"
            2020-06-12 06:28:10: Sensor update starting
            2020-06-12 06:28:10: Condition condqj3ceq3 test state changed from false to true
            2020-06-12 06:28:10: Condition condqj3ceq3 evaluation state changed from false to true
            2020-06-12 06:28:10: Group grpqj3anz5 test state changed from false to true
            2020-06-12 06:28:10: Group grpqj3anz5 evaluation state changed from false to true
            2020-06-12 06:28:10: Group Single press on button two or Alexa: Time to get up (DAY) test state changed from false to true
            2020-06-12 06:28:10: Group Single press on button two or Alexa: Time to get up (DAY) evaluation state changed from false to true
            2020-06-12 06:28:10: Condition condqj3oo8j test state changed from false to true
            2020-06-12 06:28:10: Condition condqj3oo8j evaluation state changed from false to true
            2020-06-12 06:28:10: Group grpqj3o1cv test state changed from false to true
            2020-06-12 06:28:10: Group grpqj3o1cv evaluation state changed from false to true
            2020-06-12 06:28:10: Preparing Single press on button two or Alexa: Time to get up (DAY).true (grpgr2s3wv.true) activity
            2020-06-12 06:28:10: Launching scene/activity grpgr2s3wv.true
            2020-06-12 06:28:10: Starting "grpgr2s3wv.true" group 1
            2020-06-12 06:28:24: Device Morning_Trigger (#244) urn:upnp-org:serviceId:SwitchPower1/Status changed from "1" to "0"
            2020-06-12 06:28:24: Activity "grpgr2s3wv.true" finished
            2020-06-12 06:28:24: Stopping activity "grpgr2s3wv.true"
            2020-06-12 06:28:24: Sensor update completed; 13.702s
            2020-06-12 06:28:24: Sensor update starting
            2020-06-12 06:28:24: Condition condqj3ceq3 test state changed from true to false
            2020-06-12 06:28:24: Condition condqj3ceq3 evaluation state changed from true to false
            2020-06-12 06:28:24: Group grpqj3anz5 test state changed from true to false
            2020-06-12 06:28:24: Group grpqj3anz5 evaluation state changed from true to false
            2020-06-12 06:28:24: Group Single press on button two or Alexa: Time to get up (DAY) test state changed from true to false
            2020-06-12 06:28:24: Group Single press on button two or Alexa: Time to get up (DAY) evaluation state changed from true to false
            2020-06-12 06:28:24: Condition condqj3oo8j test state changed from true to false
            2020-06-12 06:28:24: Condition condqj3oo8j evaluation state changed from true to false
            2020-06-12 06:28:24: Group grpqj3o1cv test state changed from true to false
            2020-06-12 06:28:24: Group grpqj3o1cv evaluation state changed from true to false
            2020-06-12 06:28:24: Sensor update completed; 0.054s
        Devices
            ZWave (1) urn:schemas-micasaverde-com:device:ZWaveNetwork:1 (19/0); parent 0; plugin -; mfg  model ; dev D_ZWaveNetwork.xml impl 
            Switchboard Plugin (117) urn:schemas-toggledbits-com:device:Switchboard:1 (1/-1); parent 0; plugin 9194; mfg  model ; dev D_Switchboard1.xml impl I_Switchboard1.xml
            Table Lamp (37) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -; mfg  model ; dev D_BinaryLight1.xml impl 
            Master_Bedr_ZRC-90 (7) urn:schemas-micasaverde-com:device:SceneController:1 (14/0); parent 1; plugin -; mfg Remotec model ZRC-90; dev D_SceneController1.xml impl 
            Standard_Lamp (57) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 1; plugin -; mfg Everspring model ; dev D_BinaryLight1.xml impl 
            House (152) urn:schemas-upnp-org:device:BinaryLight:1 (3/3); parent 117; plugin -; mfg rigpapa model Switchboard Virtual Binary Switch; dev D_BinaryLight1.xml impl 
            Alarm_Clock (141) urn:schemas-upnp-org:device:VClock:1 (0/-1); parent 0; plugin 2838; mfg  model ; dev D_VClock.xml impl I_VClock.xml
            Kettle_Plug (153) urn:schemas-upnp-org:device:BinaryLight:1 (3/3); parent 1; plugin -; mfg  model ; dev D_BinaryLight1.xml impl 
            Day or Night (26) urn:schemas-rts-services-com:device:DayTime:1 (0/-1); parent 0; plugin 3166; mfg  model ; dev D_DayTime.xml impl I_DayTime.xml
            Security (235) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 117; plugin -; mfg rigpapa model Switchboard Virtual Binary Switch; dev D_BinaryLight1.xml impl 
            Kitchen_Lights (15) urn:schemas-upnp-org:device:DimmableLight:1 (2/3); parent 1; plugin -; mfg Fibaro model FGD-212; dev D_DimmableLight1.xml impl 
            Shower_Trigger (257) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 117; plugin -; mfg rigpapa model Switchboard Virtual Binary Switch; dev D_BinaryLight1.xml impl 
            Morning_Trigger (244) urn:schemas-upnp-org:device:BinaryLight:1 (3/0); parent 117; plugin -; mfg rigpapa model Switchboard Virtual Binary Switch; dev D_BinaryLight1.xml impl 
        Watches
            Device #244 Morning_Trigger service urn:upnp-org:serviceId:SwitchPower1 variable Status
            Device #141 Alarm_Clock service urn:micasaverde-com:serviceId:SecuritySensor1 variable Tripped
            Device #7 Master_Bedr_ZRC-90 service urn:micasaverde-com:serviceId:SceneController1 variable sl_CentralScene
            Device #26 Day or Night service urn:rts-services-com:serviceId:DayTime variable Status
            Device #257 Shower_Trigger service urn:upnp-org:serviceId:SwitchPower1 variable Status
            Device #132 Bedroom Keypad service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
            Device #132 Bedroom Keypad service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
            Device #132 Bedroom Keypad service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
        Special Configuration
            UseReactorScenes = 1
            Retrigger = 0
            FailOnTrouble = 0
            ContinuousTimer = 0
    

    Cheers

    C



  • Hmm, just tested this and it worked perfectly. I think this was a contemporaneous Luup reload possibly, or possibly not, caused by logs rotating

    I shall watch with interest

    C



  • I think you are onto something but the log should show that luup has reloaded. Did it not?



  • It did, and it appears to be logging out of order, which is pretty much the only way I caught it...

    ESC[7;36m2020-06-12 06:01:07 - LuaUPnP Terminated with Exit Code: 137ESC[1;00m
    03      06/12/20 6:01:07.909    LuaUPNP: starting bLogUPnP 0 <0x77a04320>
    02      06/12/20 6:01:07.918    ESC[33;1mJobHandler_LuaUPnP::Run: pid 12479 didn't exitESC[0m <0x77a04320>
    02      06/12/20 6:01:08.153    ESC[33;1mUserData::TempLogFileSystemFailure start 1ESC[0m <0x77a04320>
    02      06/12/20 6:01:08.293    ESC[33;1mUserData::TempLogFileSystemFailure 8700 res:1
    -rw-r--r--    1 root     root            33 Nov 28  2019 /etc/cmh/HW_Key
    -rw-r--r--    1 root     root            31 Apr 14  2017 /etc/cmh/HW_Key2
    -rw-r--r--    1 root     root             9 Nov 28  2019 /etc/cmh/PK_AccessPoint
    -rw-r--r--    1 root     root             7 Apr 20  2019 /etc/cmh/PK_Account
    -rw-r--r--    1 root     root           452 Jun 12 06:00 /etc/cmh/alerts.json
    -rw-r--r--    1 root     root             0 Dec 20  2017 /etc/cmh/cameras
    -rw-r--r--    1 root     root           457 Nov 28  2019 /etc/cmh/cmh.conf
    -rw-r--r--    1 root     root             0 Nov 28  2019 /etc/cmh/devices
    -rw-r--r--    1 root     root         16383 Jul 31  2018 /etc/cmh/dongle.4.5.dump.0
    -rw-r--r--    1 root     root         16383 Jun  1  2018 /etc/cmh/dongle.4.5.dump.1
    -rw-r--r--    1 root     root         16383 Apr  7  2018 /etc/cmh/dongle.4.5.dump.2
    -rw-r--r--    1 root     root         16383 Mar  4  2018 /etc/cmh/dongle.4.5.dump.3
    -rw-r--r--    1 root     root         16383 Feb  1  2018 /etc/cmh/dongle.4.5.dump.4
    -rw-r--r--    1 root     root         16383 Jan 30  2018 /etc/cmh/dongle.4.5.dump.5
    -rw-r--r--    1 root     root         16383 Jun 12 02:00 /etc/cmh/dongle.6.1.dump.0
    -rw-r--r--    1 root     root         16383 Jun 11 02:00 /etc/cmh/dongle.6.1.dump.1
    -rw-r--r--    1 root     root         16383 Jun 10 07:35 /etc/cmh/dongle.6.1.dump.2
    -rw-r--r--    1 root     root         16383 Jun 10 03:00 /etc/cmh/dongle.6.1.dump.3
    -rw-r--r--    1 root     root         16383 Jun 10 02:00 /etc/cmh/dongle.6.1.dump.4
    -rw-r--r--    1 root     root         16383 Jun  9 02:00 /etc/cmh/dongle.6.1.dump.5
    -rw-r--r--    1 root     root            41 Dec  3  2018 /etc/cmh/ergy_key
    -rw-r--r--    1 root     root             0 Nov 28  2019 /etc/cmh/first_boot
    -rw-r--r--    1 root     root             1 Nov 28  2019 /etc/cmh/ip_mode
    -rw-r--r--    1 root     root            48 Apr 14  2017 /etc/cmh/keys
    -rw-r--r--    1 root     root             3 Jan  1  2000 /etc/cmh/language
    -rw-r--r--    1 root     root             2 Nov 28  2019 /etc/cmh/language_id
    -rw-r--r--    1 root     root            10 Jun 11 09:46 /etc/cmh/last_backup
    -rw-r--r--    1 root     root            10 Mar 22 01:01 /etc/cmh/last_reboot
    -rw-r--r--    1 root     root            11 Jun 11 12:58 /etc/cmh/last_report
    -rw-r--r--    1 root     root            71 Jun  9 20:46 /etc/cmh/lighttpd_failures
    -rw-r--r--    1 root     root            10 Feb 23  2019 /etc/cmh/lock_log_levels
    -rw-r--r--    1 root     root         36316 Nov 28  2019 /etc/cmh/network_pnp.lua
    -rw-r--r--    1 root     root            12 Jan  1  2000 /etc/cmh/platform
    -rw-r--r--    1 root     root           458 Nov 28  2019 /etc/cmh/ra_key
    -rw-r--r--    1 root     root             0 Nov 28  2019 /etc/cmh/rebrand
    -rw-r--r--    1 root     root            10 Apr 24 14:03 /etc/cmh/reupgraded.firmware
    -rw-r--r--    1 root     root             0 Nov 28  2019 /etc/cmh/scenarios
    -rw-r--r--    1 root     root          2043 Dec 13 17:01 /etc/cmh/servers.conf
    -rw-r--r--    1 root     root          2007 Nov 28  2019 /etc/cmh/servers.conf.catman
    -rw-r--r--    1 root     root          1520 Nov 28  2019 /etc/cmh/servers.conf.default
    -rw-r--r--    1 root     root          1520 Apr 19  2019 /etc/cmh/servers.conf.default.orig
    -rw-r--r--    1 root     root          2014 Feb 28  2019 /etc/cmh/servers.conf.orig
    -rw-r--r--    1 root     root            20 Dec 13 17:01 /etc/cmh/servers.conf.timestamp
    -rw-r--r--    1 root     root           181 Nov 28  2019 /etc/cmh/servers_whitelist
    -rw-r--r--    1 root     root          1604 Jun 11 12:58 /etc/cmh/services.conf
    -rw-r--r--    1 root     root            20 Apr 14  2017 /etc/cmh/sync_kit
    -rw-r--r--    1 root     root            20 Apr 14  2017 /etc/cmh/sync_rediscover
    -rw-r--r--    1 root     root             2 Jan  1  2000 /etc/cmh/ui
    -rw-r--r--    1 root     root             2 Nov 19  2019 /etc/cmh/ui_man
    -rw-r--r--    1 root     root             5 Nov 28  2019 /etc/cmh/ui_skin
    -rw-r--r--    1 root     root           504 Nov 28  2019 /etc/cmh/user_data.json.luup.lzo
    -rw-r--r--    1 root     root        138744 Jun 12 06:01 /etc/cmh/user_data.json.lzo
    -rw-r--r--    1 root     root        138736 Jun 12 06:01 /etc/cmh/user_data.json.lzo.1
    -rw-r--r--    1 root     root        138389 Jun 12 05:58 /etc/cmh/user_data.json.lzo.2
    -rw-r--r--    1 root     root        138393 Jun 12 05:52 /etc/cmh/user_data.json.lzo.3
    -rw-r--r--    1 root     root        138371 Jun 12 05:46 /etc/cmh/user_data.json.lzo.4
    -rw-r--r--    1 root     root        138373 Jun 12 05:40 /etc/cmh/user_data.json.lzo.5
    -rw-r--r--    1 root     root         44240 Jan 15  2019 /etc/cmh/user_data.json.lzo.bak
    -rw-r--r--    1 root     root         29078 Apr 21  2017 /etc/cmh/user_data.json.lzo.modified
    -rw-r--r--    1 root     root         29049 Apr 21  2017 /etc/cmh/user_data.json.lzo.orig
    -rw-r--r--    1 root     root         28512 Apr 21  2017 /etc/cmh/user_data.json.lzo.working
    -rw-r--r--    1 root     root            53 Apr 20  2019 /etc/cmh/users.conf
    -rw-r--r--    1 root     root            20 Apr 20  2019 /etc/cmh/users.conf.timestamp
    -rw-r--r--    1 root     root             3 Nov 28  2019 /etc/cmh/vera_model
    -rw-r--r--    1 root     root             9 Jan  1  2000 /etc/cmh/version
    -rw-r--r--    1 root     root             9 May 21 16:15 /etc/cmh/version.latest
    -rw-r--r--    1 root     root             5 Nov 28  2019 /etc/cmh/version.short
    -rw-r--r--    1 root     root             9 Jun 10 21:16 /etc/cmh/version_latest
    -rw-r--r--    1 root     root             5 Apr 14  2017 /etc/cmh/zigbee_version
    -rw-r--r--    1 root     root             8 Jun 12 05:58 /etc/cmh/zwave_house_id
    -rw-r--r--    1 root     root             3 Apr 20  2019 /etc/cmh/zwave_locale
    -rw-r--r--    1 root     root            53 Jun 10 11:48 /etc/cmh/zwave_version
    
    /etc/cmh/orig:
    -rw-r--r--    1 root     root             0 Nov 28  2019 devices
    -rw-r--r--    1 root     root             0 Nov 28  2019 first_boot
    -rw-r--r--    1 root     root             0 Nov 28  2019 fresh_install
    -rw-r--r--    1 root     root             0 Nov 28  2019 scenarios
    -rw-r--r--    1 root     root           558 Nov 28  2019 user_data.json.lzo
    
    /etc/cmh/persist:
    
    /etc/cmh/wan_failover:
    -rw-r--r--    1 root     root            31 Nov 28  2019 check_internet.hosts
    df -h
    Filesystem                Size      Used Available Use% Mounted on
    rootfs                   54.4G    152.8M     51.5G   0% /
    /dev/root                10.0M     10.0M         0 100% /rom
    tmpfs                   124.8M      1.6M    123.1M   1% /tmp
    /dev/sda2                54.4G    152.8M     51.5G   0% /
    tmpfs                   512.0K         0    512.0K   0% /dev
    /dev/sda1               487.8M     21.7M    436.5M   5% /tmp/log/cmh
    /dev/mtdblock10          50.0M      1.5M     48.5M   3% /storage
    /dev/mtdblock10          50.0M      1.5M     48.5M   3% /etc/cmh-firmware
    /dev/mtdblock10          50.0M      1.5M     48.5M   3% /etc/cmh-backup
    /dev/mtdblock9            9.8M      9.8M         0 100% /mios
    logread
    Fri Jun 12 05:56:01 2020 cron.info crond[2731]: crond: USER root pid 13594 cmd /usr/bin/Rotate_Logs.sh
    Fri Jun 12 05:57:01 2020 cron.info crond[2731]: crond: USER root pid 13781 cmd /usr/bin/Rotate_Logs.sh
    Fri Jun 12 05:58:01 2020 cron.info crond[2731]: crond: USER root pid 13993 cmd /usr/bin/Rotate_Logs.sh
    Fri Jun 12 05:59:01 2020 cron.info crond[2731]: crond: USER root pid 14191 cmd /usr/bin/Rotate_Logs.sh
    Fri Jun 12 06:00:01 2020 cron.info crond[2731]: crond: USER root pid 14410 cmd /usr/bin/Rotate_Logs.sh
    

    You can see from the last 5 lines

    C



  • Hmm, Alarm clock went off this morning. Luup restarted. I suspect there's a nastiness in the way my script responds to Reactor. I shall break it up and do it all in Reactor 🙂

    C



  • No Luup reload this morning. Random alarm late last night but that's totally different!

    Reactor FTW! 😉

    C


Log in to reply