-
Hi! I want to install a smart lock on my front door, but I don't know which one to choose. There are many different models available on the market. Do you have a reliable model to recommend?
-
Hi
I’m looking to rework some code I found online so I can use it on Vera, and while I’ve managed to translate / convert a number of things, I’ve got stuck on a few things it does, around encryption/decryption etc.
All the original Lua code is here - > (https://forum.logicmachine.net/showthread.php?tid=232&pid=16580#pid16580 )
Plus there looks to be a python version too here - > (https://github.com/florianholzapfel/panasonic-viera/issues/9#issuecomment-476919658)
Here’s an extract of the code where AES 128 CBC is required?
function encrypt_soap_payload(data, key, hmac_key, iv) payload = '000000000000' n = #data payload = payload .. string.char(bit.band(bit.rshift(n, 24), 0xFF)) payload = payload .. string.char(bit.band(bit.rshift(n, 16), 0xFF)) payload = payload .. string.char(bit.band(bit.rshift(n, 8), 0xFF)) payload = payload .. string.char(bit.band(n, 0xFF)) payload = payload .. data aes_cbc, err = aes:new(key, nil, aes.cipher(128, 'cbc'), { iv = iv }, nil, 1) ciphertext = aes_cbc:encrypt(payload) sig = encdec.hmacsha256(ciphertext, hmac_key, true) encrypted_payload = encdec.base64enc(ciphertext .. sig) return encrypted_payload end function decrypt_soap_payload(data, key, hmac_key, iv) aes_cbc, err = aes:new(key, nil, aes.cipher(128, 'cbc'), { iv = iv }, nil, 0) decrypted = aes_cbc:decrypt(encdec.base64dec(data)) decrypted = string.gsub(string.sub(lmcore.strtohex(decrypted), 33), '%x%x', function(value) return string.char(tonumber(value, 16)) end) return decrypted endI can get to the point where I can create the parameters for the payload encrypt request (example below), it’s just the encryption/decryption I cant do..
data="1234" key="\\S„ßÍ}/Ìa5!" hmac_key="¹jz¹2¸F\r}òcžÎ„ 臧.ª˜¹=¤µæŸ" iv=" {¬£áæ‚2žâ3ÐÞË€ú "I’ve found this aes.lua (https://github.com/openresty/lua-resty-string/blob/master/lib/resty/aes.lua ) module online, but that requires loads of others modules too, most notably ffi.lua. Which I’d ideally like to avoid.
I also came across this aes128.lua (https://github.com/somesocks/lua-lockbox/blob/master/lockbox/cipher/aes128.lua ) but i’m not sure how that handles all the other parameters e.g specify the cbc aspect etc.
Finally there’s this aes256ecb.lua script (https://github.com/idiomic/Lua_AES/blob/master/AES.lua) , could that be converted to aes 128 cbc and then used in the above?
Any help/advice on this would be appreciated..
-
I just upgraded the firmware for the inverter for my solar panels and that made it possible to enable Modbus TCP.
At a glance that would be perfect for live production data fed into my home automation environment but my lack of knowledge about the protocol and how to put the data where I want it failed me.What I have:
MSR
openLuup
Vera Secure
Ezlo Plus
Mosquitto
Homebridge
Windows Server
Ubuntu Server
Quite decent PowerShell skills
Enough Lua knowledge to write my own functions and handlers
The inverters Modbus interface definitionsWhat I want to achive:
Something that can be run by systemd och anything else monitoring the status and keeping the Modbus connection alive.
Publish readings over MQTT or whatever fits my setup, the goal is to feed the data into openLuup in someway so Historian can log the data for Grafana and display current production to HomeKit (as a mqttthing light sensor, since there is no other accessory suitable at the moment).Anyone implemented Modbus TCP in similar projects or have any guidance on how to reach my goal?
Open for alternative solutions as well, all suggestions are appreciated!
-
Hi to all,
I am user of vera controller. I have a dahua door intercom with relay. Relay activates with username and password authentication. I can activate the relay http://admin:a1234567@192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=RemoteAs you can see intercom username admin and password is a1234567 I build a scene with luup code luup.inet.wget( "http://admin:a1234567@192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote" ) But can not activate relay. Is there any idea?
-
Hi to all, I have a bricked vera secure that is replaced with new one. Old vera secure serial numbers are deleted from vera servers so I cannot use it. Vera secure's are orginally Sercomm's NA502 model devices. Recently I install openwrt to the old vera secure unit without problem. Is there any way to use it any automation system with internal z-wave. I install domoticz but I cannot setup internal z-wave unit, it only accept usb zwave radios. Is there any ideas?
-
I ordered a Fibaro Dimmer 2 and Bypass device for my upstairs landing / hallway lights.
I have 2 light switches one at the bottom of the stairs and another one upstairs on the landing.
But I am struggling to make sense of my current wiring, more details / photos on the Vera forum.
Jan 27 Anyone good at electrical wiring for light switches? Anyone good at electrical wiring for light switches?Hi I ordered a Fibaro Dimmer 2 and Bypass device for my upstairs landing / hallway lights. I have 2 light switches one at the bottom of the stairs and another one upstairs on the landing. I have no neutral wires in the house behind the light switches. These are photos of the light switch...
Thanks
-
Hello,
Looking to all the dev's and tinkerers on this community for ideas on how to implement a solution to my problem. Kind of a long intro, sorry.Problem statement:
I have a geothermal heat pump that has a loop that is slightly undersized. During the cold weather months in the Pacific Northwest (one or two months of the year), the loop can get below 32 degrees. If it goes on for a few days, it can generate significant frost heaving in my yard and under the flagstone deck, Actually fixing the issue is cost prohibitive.Current mitigation:
I have DS18B20 tied into Home Assistant and monitoring the temp of the fluid coming out of the loop and if it drops below 35 degrees, MSR triggers a Fibaro Implant to add a resister into the external temp circuit and fool the Venstar to think the outside temp is below 32 degrees and issue a Heat Pump lockout and switch to AUX heat. While this is working fine and the AUX heat is only coming on once or twice a day, I would like to simplify the setup so it runs on something other than HA and MSR. I think they are overkill for my issue. Also want this to be independent of anything else in the house so it can stay behind if I am not around to maintain.I only have two inputs and one output:
Inputs: Loop temp, Furnace running
Outputs: Switch relay to drop resistance to external thermostat connection on thermostat.
Logic is super simple:
If temp is below 36 degrees and furnace is running, turn on relay
If furnace stops, turn off relay.
I am sure even I can figure that out on Python.Trying to determine the best platform for a set it and forget it black box that works with as close to zero maintenance as possible.
Options I have thought of are:
Pi zero with a GPIO controlled relay ESPHome (Not very knowledgeable about that platform, but willing to explore) Arduino Anything anyone else suggestsAny ideas are appreciated.
-
Greetings,
I’m researching a migration from Vera+ to Hubitat C7 and want to know if anyone has successfully connected the Hubitat to the “HA Bridge” for local Alexia calls.
The HA Bridge does not callout Hubitat natively from what I see.Thanks for your assistance.
-
Hi all
Having some time off i’ve been able to invest a chunk in creating some plug-ins for Vera/OpenLuup, and will do what I can to post them in GitHub and add links on the Vera Community and here, for anyone who is interested.
But, being knew to any of this, I wanted to ask for any guidance on how and when I should share stuff ? How best do I share it ? Am I liable for anything I share? Is GitHub the best place ? What licenses should I associate with them ?
The latter is a strange one, as I don’t see how I can have any claim over the content/code itself, as I’ve learnt and leveraged so much from others..
To get the ball rolling I posted this on the ezlo/Vera site..
Jan 4 Luup Plugin - Energenie PMS LAN Switch Luup Plugin - Energenie PMS LAN SwitchHi To ensure I give back to this community, which has been educating me in all things Lua and Luup over the years (12+) I wanted to share some of the plugins I’ve built recently to see if any are of use/interest to others. The first one is for the Energenie PMS LAN Switch where I have built two...
-
Hey guys,
I just registered here in the forum and honestly… I’m new to the whole topic. I‘m a web developer, so I‘ve quite a bit experience with java, js, sql and so on. But that may not help a lot in this new field.
I‘m looking forward to develop my own smart home device and I‘m looking for starting point. In General the specs are like:
The device should work with WiFi, I want to integrate it into my network I want to write an own app to control it, it may find the device in my network I want the device to be offline usable, if possible (without internet connection) I want the device to broadcast information in my network like „water is empty“, so I can use push messaging in the App it should be ready to as well work with Alexa or Apple Home Kit or Google Assistant as I Plan to develop a skill for them.Can someone provide me with some information I could start with? Like - are there microcontrollers I could go with or is it to complex and I need a raspy? Which frameworks / languages / libs could I use? I know how to do the things on the app side but not on the device side.
-
Vainly trying to get to the bottom of the 10 - 15 second delay for TTS with the Alexa plugin (still) anyone have a list of the possible Alexa hosts? Just wonder if the one I have (layla.amazon.co.uk) could just be slow.
Any thoughts?
C
-
-
Hello. First, excuse my english, please. I bought a Vera Edge looking for some way to make a digital ambient thermostat that I could manage remotely without a phone home from the device side. I am very disappointed with that device because all the "official" help of the brand goes in the way of to sign in an account and work with their cloud. I have some computer, network and linux knowledge but all my tests with the hub and a Qubino Flush 1D Relay has been unsuccessful. I connected both and I got to make some basic functions but I see myself very far to get my target. This is my last try to get something before I log in an account in getvera.com and look if I can make some progress in my project following that way.
Can somebody tell me some place where I can learn the basic concepts of this system? Guides, books, videos... Whatever it can help me in my project.
Thank you.
-
Node-Red on my Linux Debian box seems to be having issues now. It keeps saying repeatedly "Lost connection to server, reconnecting..." in the web browser.
I recently updated nodejs for MSR, I wonder if that might be related:
"Bump recommended nodejs version to 16.13.0; versions 14 and 15 will continue to be supported through March 31, 2022"
Nodejs version = v16.13.1
I have tried updating Node-Red that is now version v2.1.4
I also updated npm to version v8.2.0
I am not sure how or where to look at the log file for node red?
This is the contents of the nodered.service file in this directory:
# systemd service file to start Node-RED [Unit] Description=Node-RED graphical event wiring tool Wants=network.target Documentation=http://nodered.org/docs/hardware/raspberrypi.html [Service] Type=simple # Run as normal pi user - change to the user name you wish to run Node-RED as User=stuart Group=stuart WorkingDirectory=/home/stuart Environment="NODE_OPTIONS=--max_old_space_size=1024" # uncomment and edit next line if you need an http proxy #Environment="HTTP_PROXY=my.httpproxy.server.address" # uncomment the next line for a more verbose log output #Environment="NODE_RED_OPTIONS=-v" # uncomment next line if you need to wait for time sync before starting #ExecStartPre=/bin/bash -c '/bin/journalctl -b -u systemd-timesyncd | /bin/grep -q "systemd-timesyncd.* Synchronized to time server"' ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS #ExecStart=/usr/bin/env node $NODE_OPTIONS red.js $NODE_RED_OPTIONS # Use SIGINT to stop KillSignal=SIGINT # Auto restart on crash Restart=on-failure RestartSec=20 # Tag things in the log SyslogIdentifier=Node-RED #StandardOutput=syslog [Install] WantedBy=multi-user.target
/etc/systemd/system/multi-user.target.wantsThanks
-
Hi @ll, last days I migrated my last zwave device from Vera to zwave js in homeassistant. Out of 150 devices 1 did not go well initially but reinterviewing did it directly. Most work was to find the ex and inclusion procedure, 3 times, click, clack, whatever. I must admit that Vera is Lighting fast!!!!! With only 3 devices left, those were my under the floor switches I had to do last.
Now I am totally gone from Vera, altui, luup, etc. There's nothing more left for me on this forum. And since it was one of my "routine sites" reading I will save a few minutes a day skipping it.
I thank you all for all the kind help, warm words and laughter about the ezlo flop :-).
I hooe you all will be safe and healthy and whish you all the best!
I will stay on the homeassistant forum.
Goodbye!
-
Morning all. Hope all are well. Been a bit of a trying time here, but nothing we can't deal with....
.....apart from this!My coffee grinder went punk yesterday (wasn't even being used) and took out the main breakers. Once it was isolated I got everything back on line, except on TKB smart plug which was in the same double socket as the grinder.
OpenLuup claims it's failed. Z-wave server can't see it but it responds to the button pushes physically as I'd expect. (i.e. the socket turns on and off, and the LED flashes to indicate it's in inclusion / exclusion mode)
My plan is to see if I can exclude it then re-include it in z-wave server. If that doesn't work then I'll bin it, but if it does work can I then re-number it to match the original device ID and not have to trawl through my reactors? Any chance?
TIAC
-
Some of you may know that I took at shot at building an alternate geofencing solution for Vera. The core of it was system agnostic, using the OwnTracks application and AWS lambdas to track devices and keep a central data, then disseminate that to the Vera via a websocket-based plugin. It worked with other apps as well, including Tasker and GPSLogger, but of the dozen people that were testing it, most used OwnTracks.
A lot was learned in the process, not the least of which is that the success of any such solution is highly dependent on the phone and its settings. Phone manufacturers love to set things up for the longest battery life, of course, but that's usually very anti-geofencing behavior. In the case of at least one brand, it was unusable and the settings could not be modified. It was also cost-prohibitive to maintain on Amazon, as AWS grabs a dime here and a dollar there and before you know it, it added $100/month to my AWS bill, which my wife deducted from my Scotch budget. Unacceptable.
But it's quite reasonable to use OwnTracks to a local endpoint, and I could pretty easily replicate the functionality as a local application, or maybe even as an additional endpoint built into MSR's API (still separate port and process, but in the package).
So the question really is... would you do it, or would you be too concerned about the security risks associated (e.g., dynamic DNS and NAT mapping in the firewall necessary for the phone to contact the service when not on LAN)?
-
Hello!
I want to trigger an event (like switching on a smart Zigbee power plug) when a regular light switch (that switches regular non-smart LED light bulbs) is flipped. Is there something I can put behind a light switch to achieve this? Or something to splice in between the switch and the light bulbs? A good option would also be Hue compatible.
Thank you!
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:
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