Discussion Forum to share and further the development of home control and automation, independent of platforms.

    SmartHome Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Unsolved
    (Last Updated: 24 April 2021)
    • openLuup: Version Log

      akbooer

      A long while ago (May, 2015) I wrote my 2000-th post on another forum: openLuup - running unmodified plugins on any machine. Here’s the gist of it:

      ...I want to work in a more open and stable [Vera] environment...

      ...All would be solved if Luup was open source and could be run on the plethora of cheap and reliable hardware available today. But it’s not. But we could get something like that effect if we engineered a sufficient subset of Luup to run on such a platform. Could it be done? What would we need?

      1. UI
      2. scheduler
      3. web server
      4. Luup compatible API
      5. Device and Implementation xml file reader
      6. Zwave bridge to Vera
      7. runs most plugins without modification

      What we wouldn’t need is UPnP.

      What have we (nearly) got already?

      We have, courtesy of @amg0, the most excellent AltUI: Alternate UI to UI7, and that, I think, is probably the hardest one to do in the above list. Items 2 - 5, and 7, I’ve prototyped, in pure Lua, and posted elsewhere: DataYours on Raspberry Pi, running selected plugins unmodified, including: DataYours, EventWatcher, Netatmo, RBLuaTest, altUI. See screenshot attached.

      Is it worth the effort? Probably not. Will I pursue this quest? Yes.

      openLuup was the result.

      DE2056BF-E548-4611-972B-40276F00BFEB.jpeg

      openLuup
    • openLuup and room names

      A

      Very minor issue: was messing about renaming a few rooms and ended up with a room being listed twice. One with the room's contents and the other with no room contents.

      It simply turns out one room name had a trailing space. It is possible in both AltUI and the openLuup console to create a room name with a trailing space. Once having done so chaos then ensues, as the rooms are not necessarily treated as different and become difficult to manipulate.

      Just need to trim white space off room names. Haven't tested if it's possible to add in leading spaces. That may also be possible.

      openLuup
    • Need to get rid of RulesEngine

      DesT

      Hey guys...

      Long time... 😉

      Since my first day with Vera, I'm using RulesEngine from @vosmont to handle complex rules that will do something based on multiple condition base on "true/false" and also based on time.

      Do you think I will be able to do that directly with LUA in openLuup ?

      For example..

      IF bedroom-motion1 is not detecting motion for 15 minutes
      AND
      IF bedroom-motion2 is not detecting motion for 15 minutes
      AND
      IF current-time is between 6am and 11pm
      AND
      IF binary-light1 is OFF
      AND
      IF binary-light2 is OFF
      THEN
      execute LUA code
      WAIT 2 minute
      execute LUA code

      BUT IF any "conditions" failed while in the "THEN" , It need to stop...

      I currently have around 60 rules like that 😞

      openLuup
    • ZWaveJS and MQTT

      A

      Re: openLuup: MQTT server

      @ronluna

      Hoping you could tell us a bit about your experiences with ZWaveJS and MQTT.

      ZWave JS UI in MQTT Explorer.png

      openLuup
    • Migrating Zwave & ZigBee stuff to MQTT - guidance needed.

      A

      Currently I have a Vera and Hue hub all reliably controlled by openLuup with AltUI, plus any number of plugins. Been working really well for a few years now. However would like to head for a more MQTT based set up. Eliminate the Hue hub and hopefully eliminate Vera by using ZWAVE JS UI. Noting that Zwavejs2mqtt has been renamed to Z-Wave JS UI. Probably also run the stuff using Docker. Just because. Everything would end up on the one computer for easier management. Erhhh that's the hope.

      Some of the new Zigbee Aqara stuff is very good and inexpensive plus it fits in with HomeKit. Also the Aqara battery powered stuff looks to have a good battery lifetime: ie suggested up to five years. The battery operated Hue buttons I have; have lasted for ages. Would like to use zigbee2mqtt with a SonOff dongle, which would allow access to the over two and half thousand devices zigbee2mqtt now supports:

      | Zigbee2MQTT

      AK has the MQTT stuff working in openLuup. Have played around with it and it works well, as one would expect. Love the UDP to MQTT code.

      Shellys are great and also very inexpensive and they spit out & accept MQTT but I would prefer to stay away from WiFi. Not meshed and higher power consumption. Horses for courses.

      Now here's the query:
      Got about forty or more ZWave twin light switches, plus a few other ZWave bits & pieces such as blind controllers. Then there are the Hue devices on top of that. That's a lot of virtual devices to set up in openLuup. What's an appropriate way to do this?

      It seems there is no "auto magic bridge set up". Do I need to use say @therealdb's Virtual Devices plugin that supports MQTT or is there some other approach?

      I have to confess I still don't understand the master child approach in that plugin. Seems one light switch would have all the other light switches hanging off it? Helps Vera but not a problem with openLuup - why is that? Suspect AK's good coding beats Vera's?

      GitHub - dbochicchio/vera-VirtualDevices: Virtual HTTP Devices plug-in for Vera and openLuup GitHub - dbochicchio/vera-VirtualDevices: Virtual HTTP Devices plug-in for Vera and openLuup

      Virtual HTTP Devices plug-in for Vera and openLuup - GitHub - dbochicchio/vera-VirtualDevices: Virtual HTTP Devices plug-in for Vera and openLuup

      Setting up manually say 100 virtual devices is a bit much to ask. I had a look at hacking the user_data.json file. Good approach till you see all the UIDs and the individually numbered ControlURL and EventURLs that need to be set up.

      I need some way of say of creating about 80 light switches in "No room" or in say the "ZWave upgrade" room. Or say some sort of code that could go through all my existing bridged ZWAVE devices in openLuup and create virtual devices for each one. I caould then use the openLuup console to name them and place them in their rooms:

      openLuup_IP_address:3480/console?page=devices_table

      At that point I could hack the user_data.json file to insert the MQTT topics fairly easily for each? Plus any other fine tuning needed.

      Then the old ZWave stuff could be swapped over to ZWAVE JS UI and all the virtual MQTT devices would be ready to go or am I dreaming? Then delete all the old Vera bridged stuff. I'm not too fussed about scene code and the like, as a I have all my code in one block, that is set up in the openLuup start up.

      It seems that with ZWay you can create all the ZWave device by doing some sort of interrogation of ZWay's API? Seems also to be the case with the Shelleys?

      So any ideas, suggestions or code snippets are welcome on how to move towards MQTT and in particular ZWAVE JS UI and zigbee2mqtt.

      I'm in no hurry as openLuup is performing nicely, with the old Vera handling all my ZWave devices.

      openLuup
    • DisplayLine1 & 2 - Ability to align text?

      parkerc

      Hi

      Just wondering if it’s possible when writing plugins to set if the text shown via DisplayLine1/2 can be left, right or centre aligned ?

      openLuup
    • AltUI access over VPN

      CatmanV2

      Bit of an odd one this:
      Bare metal install on Debian Bullseye (Intel NUC)

      I've noticed when travelling, I connect to my L2TP VPN and I cannot get AltUI to update. I just get 'Waiting Initial Data'

      Specifically this is in Chrome:
      Version 108.0.5359.94 (Official Build) (x86_64)
      In Chrome I can access and control everything via the Openluup console.
      In Chrome I can also access and control everything via the Z-Wave expert UI and Z-Wave UI

      In Safari I get a more complete view of AltUI but loads of errors along the lines of:
      the module or function ALTUI_PluginDisplays.drawBinaryLight does not exist, check your configuration

      Homewave on my iOS devices is fine across the same VPN config,
      I can ssh into all my servers

      Not a huge issue, just curious if anyone has any thoughts of what I might tweak to resolve it?

      (FWIW I also access my IMAP and SMTP servers across the same VPN with no issues, as well as remote desktop. Also MS Reactor on the same host as Openluup)

      TIA for any thoughts

      C

      openLuup
    • Problem with luup.call_delay nexted in luup.call_timer

      M

      Hi Ak,

      Not sure when it started as it took me a while to notice.

      I have a function on a luup.call_timer to turn on a switch and then use a luup.call_delay to turn it off a minute later. This is done by the same global function, but on the luup.call_delay i get a message in the log : "luup.call_delay:: unknown global function name: HouseDevice1_PumpCommand"

      This is in the init function:

      luup.call_timer("HouseDevice1_PumpCommand", 2, "2:15:00", hm_Heating.PumpHealthRunDay, hm_Heating.PumpCMD.HEALTH.."1", true)

      This is in the function to schedule to off command giving the global function name not found:

      luup.call_delay("HouseDevice1_PumpCommand", hm_Heating.PumpHealthOnDuration, hm_Heating.PumpCMD.HEALTH.."0")

      Is it because I use the "TRUE" parameter that is openLuup specific so the timer does not fire just once?

      Running v21.7.25, may be time to update?

      Cheers Rene

      openLuup
    • OpenLuup installation

      N

      Hi, I have been trying to install OpenLuup on MacOS but I am failing, so far.
      Is there a step-by-step instruction (for MacOS) to follow?

      After installing LuaRocks, luasec, luafilesystem and luasocket I then try to run lua5.1 openLuup_install.lua and then get the messages below.

      Any ideas and proposals are appreciated.

      Regards
      Jan

      openLuup_install 2019.02.15 @akbooer
      lua5.1: openLuup_install.lua:18: module ‘socket.http’ not found:
      no field package.preload[‘socket.http’]
      no file ‘./socket/http.lua’
      no file ‘/usr/local/share/lua/5.1/socket/http.lua’
      no file ‘/usr/local/share/lua/5.1/socket/http/init.lua’
      no file ‘/usr/local/lib/lua/5.1/socket/http.lua’
      no file ‘/usr/local/lib/lua/5.1/socket/http/init.lua’
      no file ‘./socket/http.so’
      no file ‘/usr/local/lib/lua/5.1/socket/http.so’
      no file ‘/usr/local/lib/lua/5.1/loadall.so’
      no file ‘./socket.so’
      no file ‘/usr/local/lib/lua/5.1/socket.so’
      no file ‘/usr/local/lib/lua/5.1/loadall.so’
      stack traceback:
      [C]: in function ‘require’
      openLuup_install.lua:18: in main chunk

      openLuup
    • Unexpected stop of openLuup

      Crille

      Every now and then my openLuup stops responding. This is the LuaUPnP.log when it happens:

      2021-08-20 14:59:39.827 :: openLuup LOG ROTATION :: (runtime 11.0 days) 2021-08-20 14:59:39.831 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6023b8088 2021-08-20 14:59:39.853 openLuup.server:: request completed (49215 bytes, 4 chunks, 22 ms) tcp{client}: 0x55b6023b8088 2021-08-20 14:59:39.854 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6023b8088 2021-08-20 14:59:40.826 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600f46ab8 2021-08-20 14:59:40.829 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600f46ab8 2021-08-20 14:59:40.846 openLuup.server:: request completed (49215 bytes, 4 chunks, 16 ms) tcp{client}: 0x55b600f46ab8 2021-08-20 14:59:40.847 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600f46ab8 2021-08-20 14:59:41.827 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600d1ad98 2021-08-20 14:59:41.829 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600d1ad98 2021-08-20 14:59:41.838 openLuup.server:: request completed (49215 bytes, 4 chunks, 8 ms) tcp{client}: 0x55b600d1ad98 2021-08-20 14:59:41.838 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600d1ad98 2021-08-20 14:59:42.827 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6016b9848 2021-08-20 14:59:42.829 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6016b9848 2021-08-20 14:59:42.847 openLuup.server:: request completed (49215 bytes, 4 chunks, 17 ms) tcp{client}: 0x55b6016b9848 2021-08-20 14:59:42.876 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6016b9848 2021-08-20 14:59:43.054 luup.watch_callback:: 30003.DS18B20.Temperature called [37]virtualSensorWatchCallback() function: 0x55b600c2fff0 2021-08-20 14:59:43.054 luup.variable_set:: 38.urn:toggledbits-com:serviceId:VirtualSensor1.PreviousRawValue was: 28.3 now: 28.5 #hooks:0 2021-08-20 14:59:43.054 luup.variable_set:: 38.urn:toggledbits-com:serviceId:VirtualSensor1.RawValue was: 28.5 now: 28.4 #hooks:0 2021-08-20 14:59:43.054 luup.variable_set:: 38.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 28.5 now: 28.4 #hooks:0 2021-08-20 14:59:43.054 luup.variable_set:: 38.urn:toggledbits-com:serviceId:VirtualSensor1.PreviousValue was: 28.3 now: 28.5 #hooks:0 2021-08-20 14:59:43.054 luup.variable_set:: 38.urn:toggledbits-com:serviceId:VirtualSensor1.LastUpdate was: 1629464323 now: 1629464383 #hooks:0 2021-08-20 14:59:43.265 openLuup.server:: request completed (3193 bytes, 1 chunks, 5550 ms) tcp{client}: 0x55b60162e488 2021-08-20 14:59:43.267 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b60162e488 2021-08-20 14:59:43.278 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6023c8458 2021-08-20 14:59:43.278 openLuup.server:: GET /data_request?id=status&DataVersion=516611499&Timeout=15&MinimumDelay=100&output_format=json&_r=1629464383277 HTTP/1.1 tcp{client}: 0x55b6023c8458 2021-08-20 14:59:43.381 openLuup.server:: request completed (1091 bytes, 1 chunks, 102 ms) tcp{client}: 0x55b6023c8458 2021-08-20 14:59:43.381 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6023c8458 2021-08-20 14:59:43.392 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6013d6cc8 2021-08-20 14:59:43.393 openLuup.server:: GET /data_request?id=status&DataVersion=516611500&Timeout=15&MinimumDelay=100&output_format=json&_r=1629464383391 HTTP/1.1 tcp{client}: 0x55b6013d6cc8 2021-08-20 14:59:43.496 openLuup.server:: request completed (3196 bytes, 1 chunks, 4981 ms) tcp{client}: 0x55b601a37db8 2021-08-20 14:59:43.826 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601d05a08 2021-08-20 14:59:43.828 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b601d05a08 2021-08-20 14:59:43.844 openLuup.server:: request completed (49215 bytes, 4 chunks, 15 ms) tcp{client}: 0x55b601d05a08 2021-08-20 14:59:43.844 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b601d05a08 2021-08-20 14:59:44.524 openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=516611500&Timeout=60&MinimumDelay=1500&_=1629292536029 HTTP/1.1 tcp{client}: 0x55b601a37db8 2021-08-20 14:59:44.828 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6023a7d18 2021-08-20 14:59:44.831 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6023a7d18 2021-08-20 14:59:44.844 openLuup.server:: request completed (49215 bytes, 4 chunks, 12 ms) tcp{client}: 0x55b6023a7d18 2021-08-20 14:59:44.844 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6023a7d18 2021-08-20 14:59:45.514 openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1629292536030 HTTP/1.1 tcp{client}: 0x55b601ab8228 2021-08-20 14:59:45.617 openLuup.server:: request completed (1 bytes, 1 chunks, 102 ms) tcp{client}: 0x55b601ab8228 2021-08-20 14:59:45.827 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600b8de38 2021-08-20 14:59:45.828 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600b8de38 2021-08-20 14:59:45.834 openLuup.server:: request completed (49215 bytes, 4 chunks, 5 ms) tcp{client}: 0x55b600b8de38 2021-08-20 14:59:45.836 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600b8de38 2021-08-20 14:59:46.828 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6018a53f8 2021-08-20 14:59:46.830 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6018a53f8 2021-08-20 14:59:46.841 openLuup.server:: request completed (49215 bytes, 4 chunks, 11 ms) tcp{client}: 0x55b6018a53f8 2021-08-20 14:59:46.842 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6018a53f8 2021-08-20 14:59:47.829 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600d2d938 2021-08-20 14:59:47.832 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600d2d938 2021-08-20 14:59:47.854 openLuup.server:: request completed (49215 bytes, 4 chunks, 21 ms) tcp{client}: 0x55b600d2d938 2021-08-20 14:59:47.855 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600d2d938 2021-08-20 14:59:47.962 luup.variable_set:: 10086.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 28.3 now: 28.5 #hooks:0 2021-08-20 14:59:48.370 openLuup.server:: request completed (1359 bytes, 1 chunks, 4977 ms) tcp{client}: 0x55b6013d6cc8 2021-08-20 14:59:48.372 openLuup.server:: request completed (1359 bytes, 1 chunks, 3847 ms) tcp{client}: 0x55b601a37db8 2021-08-20 14:59:48.373 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6013d6cc8 2021-08-20 14:59:48.384 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601e62df8 2021-08-20 14:59:48.385 openLuup.server:: GET /data_request?id=status&DataVersion=516611502&Timeout=15&MinimumDelay=100&output_format=json&_r=1629464388383 HTTP/1.1 tcp{client}: 0x55b601e62df8 2021-08-20 14:59:48.813 openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=516611502&Timeout=60&MinimumDelay=1500&_=1629292536031 HTTP/1.1 tcp{client}: 0x55b601a37db8 2021-08-20 14:59:48.829 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600c44bf8 2021-08-20 14:59:48.832 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600c44bf8 2021-08-20 14:59:48.854 openLuup.server:: request completed (49215 bytes, 4 chunks, 21 ms) tcp{client}: 0x55b600c44bf8 2021-08-20 14:59:48.856 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600c44bf8 2021-08-20 14:59:49.829 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600e1fea8 2021-08-20 14:59:49.830 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b600e1fea8 2021-08-20 14:59:49.835 openLuup.server:: request completed (49215 bytes, 4 chunks, 5 ms) tcp{client}: 0x55b600e1fea8 2021-08-20 14:59:49.835 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600e1fea8 2021-08-20 14:59:50.831 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601cfa118 2021-08-20 14:59:50.832 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b601cfa118 2021-08-20 14:59:50.837 openLuup.server:: request completed (49215 bytes, 4 chunks, 4 ms) tcp{client}: 0x55b601cfa118 2021-08-20 14:59:50.838 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b601cfa118 2021-08-20 14:59:51.833 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601462bb8 2021-08-20 14:59:51.835 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b601462bb8 2021-08-20 14:59:51.852 openLuup.server:: request completed (49215 bytes, 4 chunks, 17 ms) tcp{client}: 0x55b601462bb8 2021-08-20 14:59:51.854 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b601462bb8 2021-08-20 14:59:52.834 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6016b1c98 2021-08-20 14:59:52.836 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6016b1c98 2021-08-20 14:59:52.847 openLuup.server:: request completed (49215 bytes, 4 chunks, 11 ms) tcp{client}: 0x55b6016b1c98 2021-08-20 14:59:52.848 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6016b1c98 2021-08-20 14:59:53.193 luup.variable_set:: 10005.urn:micasaverde-com:serviceId:SceneController1.sl_SceneActivated was: 255 now: 255 #hooks:0 2021-08-20 14:59:53.193 luup.variable_set:: 10006.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.193 luup.variable_set:: 10094.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.193 luup.variable_set:: 10096.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 10 now: 10 #hooks:0 2021-08-20 14:59:53.193 luup.variable_set:: 10098.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 10 now: 10 #hooks:0 2021-08-20 14:59:53.193 luup.variable_set:: 10104.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 10 now: 10 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10106.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10109.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10112.urn:micasaverde-com:serviceId:DoorLock1.sl_UserCode was: UserID="4" UserName="Ella" now: UserID="4" UserName="Ella" #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10112.urn:micasaverde-com:serviceId:DoorLock1.sl_LockButton was: 1 now: 1 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10112.urn:micasaverde-com:serviceId:DoorLock1.sl_PinFailed was: 1 now: 1 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10112.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10131.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10132.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10133.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10165.urn:micasaverde-com:serviceId:HaDevice1.sl_Alarm was: SMOKE now: SMOKE #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10165.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 0 now: 0 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10188.urn:micasaverde-com:serviceId:HaDevice1.sl_TamperAlarm was: 1 now: 1 #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10188.urn:micasaverde-com:serviceId:HaDevice1.sl_Alarm was: TAMPER_ALARM now: TAMPER_ALARM #hooks:0 2021-08-20 14:59:53.194 luup.variable_set:: 10191.urn:micasaverde-com:serviceId:HaDevice1.sl_BatteryAlarm was: 10 now: 10 #hooks:0 2021-08-20 14:59:53.299 openLuup.server:: request completed (5449 bytes, 1 chunks, 4485 ms) tcp{client}: 0x55b601a37db8 2021-08-20 14:59:53.505 openLuup.server:: request completed (5449 bytes, 1 chunks, 5119 ms) tcp{client}: 0x55b601e62df8 2021-08-20 14:59:53.511 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b601e62df8 2021-08-20 14:59:53.513 openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=516611523&Timeout=60&MinimumDelay=1500&_=1629292536032 HTTP/1.1 tcp{client}: 0x55b601a37db8 2021-08-20 14:59:53.522 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600bc7068 2021-08-20 14:59:53.524 openLuup.server:: GET /data_request?id=status&DataVersion=516611523&Timeout=15&MinimumDelay=100&output_format=json&_r=1629464393521 HTTP/1.1 tcp{client}: 0x55b600bc7068 2021-08-20 14:59:53.834 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601b8cbe8 2021-08-20 14:59:53.835 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b601b8cbe8 2021-08-20 14:59:53.840 openLuup.server:: request completed (49215 bytes, 4 chunks, 5 ms) tcp{client}: 0x55b601b8cbe8 2021-08-20 14:59:53.841 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b601b8cbe8 2021-08-20 14:59:54.834 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6013dacd8 2021-08-20 14:59:54.836 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b6013dacd8 2021-08-20 14:59:54.849 openLuup.server:: request completed (49215 bytes, 4 chunks, 12 ms) tcp{client}: 0x55b6013dacd8 2021-08-20 14:59:54.850 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b6013dacd8 2021-08-20 14:59:55.835 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b602316198 2021-08-20 14:59:55.836 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b602316198 2021-08-20 14:59:55.841 openLuup.server:: request completed (49215 bytes, 4 chunks, 5 ms) tcp{client}: 0x55b602316198 2021-08-20 14:59:55.842 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b602316198 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601547598 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6016c7cf8 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b600b75158 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60187d188 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6011a5bf8 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60115ecd8 2021-08-20 15:00:10.955 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601018c18 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60175d068 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60224ced8 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b6017869d8 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601ab40e8 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601914178 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60100a228 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b60197a998 2021-08-20 15:00:10.956 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601103238 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600c62438 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601eaabf8 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6017c95b8 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600d6e508 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601dd2168 2021-08-20 15:00:10.956 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b60155eb68 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6016ddcd8 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b602384ca8 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b60230cc78 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6017e3338 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600965de8 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601e23608 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6018da2f8 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600c9aa08 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600bbf0f8 2021-08-20 15:00:10.957 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601334518 2021-08-20 15:00:10.958 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b60183b5f8 2021-08-20 15:00:10.958 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6015682a8 2021-08-20 15:00:10.958 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6018869e8 2021-08-20 15:00:10.958 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6008839c8 2021-08-20 15:00:10.958 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b60154ed58 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601a259e8 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b600f617c8 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6015884c8 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601c85fe8 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b602275ae8 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b60190ab88 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601692038 2021-08-20 15:00:10.959 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601fcea78 2021-08-20 15:00:10.960 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601ca7f28 2021-08-20 15:00:10.960 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b601fd37f8 2021-08-20 15:00:10.960 openLuup.io.server:: MQTT:1888 connection from 127.0.0.1 tcp{client}: 0x55b6020ec968 2021-08-20 15:00:10.961 openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1629292536033 HTTP/1.1 tcp{client}: 0x55b601ab8228 2021-08-20 15:00:10.967 luup_log:0: 32Mb, 3.3%cpu, 11.0days 2021-08-20 15:00:10.972 openLuup.server:: request completed (3361 bytes, 1 chunks, 17459 ms) tcp{client}: 0x55b601a37db8 2021-08-20 15:00:10.973 openLuup.server:: request completed (3361 bytes, 1 chunks, 17449 ms) tcp{client}: 0x55b600bc7068 2021-08-20 15:00:10.990 luup.variable_set:: 10116.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 21.8 now: 21.9 #hooks:0 2021-08-20 15:00:10.990 luup.variable_set:: 10129.urn:micasaverde-com:serviceId:HumiditySensor1.CurrentLevel was: 58.8 now: 58.7 #hooks:0 2021-08-20 15:00:10.991 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600ba45a8 2021-08-20 15:00:10.991 openLuup.mqtt:: closed tcp{client}: 0x55b600ba45a8 2021-08-20 15:00:10.992 openLuup.mqtt:: mqttthing_Klimat kllaren_838dee2e UNSUBSCRIBE from tele/Källartemp/SENSOR tcp{client}: 0x55b600ba45a8 2021-08-20 15:00:10.992 openLuup.mqtt:: ERROR publishing application message for mqtt:tele/Källartemp/SENSOR : closed 2021-08-20 15:00:10.992 openLuup.io.server:: HTTP:3480 connection from 127.0.0.1 tcp{client}: 0x55b601c8c288 2021-08-20 15:00:10.992 openLuup.io.server:: HTTP:3480 connection closed openLuup.server.receive closed tcp{client}: 0x55b600bc7068 2021-08-20 15:00:10.992 openLuup.server:: GET /data_request?id=sdata HTTP/1.1 tcp{client}: 0x55b601547598 2021-08-20 15:00:10.993 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600a62818 2021-08-20 15:00:10.993 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600a62818 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Uttag garaget_6f4265a1 UNSUBSCRIBE from openLuup/update/10149/SwitchPower1/Status tcp{client}: 0x55b600a62818 2021-08-20 15:00:10.994 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600ba8428 2021-08-20 15:00:10.994 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600ba8428 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Takflkt hallen_6da387bf UNSUBSCRIBE from tele/TakfläktHall/LWT tcp{client}: 0x55b600ba8428 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Takflkt hallen_6da387bf UNSUBSCRIBE from stat/TakfläktHall/POWER2 tcp{client}: 0x55b600ba8428 2021-08-20 15:00:10.994 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600e59b88 2021-08-20 15:00:10.994 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600e59b88 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Klimat sovrummet_0d664e41 UNSUBSCRIBE from openLuup/update/20010/HumiditySensor1/CurrentLevel tcp{client}: 0x55b600e59b88 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Klimat sovrummet_0d664e41 UNSUBSCRIBE from openLuup/update/20021/TemperatureSensor1/CurrentTemperature tcp{client}: 0x55b600e59b88 2021-08-20 15:00:10.994 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600bd02d8 2021-08-20 15:00:10.994 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600bd02d8 2021-08-20 15:00:10.994 openLuup.mqtt:: mqttthing_Entrdrr_6acda58a UNSUBSCRIBE from openLuup/update/10095/SecuritySensor1/Tripped tcp{client}: 0x55b600bd02d8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600bb6cf8 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600bb6cf8 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Temperatur poolen_a589d192 UNSUBSCRIBE from tele/Pooltemp/SENSOR tcp{client}: 0x55b600bb6cf8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b6009ff868 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b6009ff868 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Rrelsesensor hallen_cf7c8293 UNSUBSCRIBE from openLuup/update/20013/SecuritySensor1/Tripped tcp{client}: 0x55b6009ff868 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600a23e28 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600a23e28 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Luftfuktighet badrum_d79a0ffb UNSUBSCRIBE from openLuup/update/10190/HumiditySensor1/CurrentLevel tcp{client}: 0x55b600a23e28 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600bb33b8 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600bb33b8 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Ljussensor hallen_19569c17 UNSUBSCRIBE from openLuup/update/20006/LightSensor1/CurrentLevel tcp{client}: 0x55b600bb33b8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600a136b8 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600a136b8 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Ljussensor trningsrum_ebf319c5 UNSUBSCRIBE from openLuup/update/20004/LightSensor1/CurrentLevel tcp{client}: 0x55b600a136b8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600babaa8 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600babaa8 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Solceller watt_e351a23b UNSUBSCRIBE from openLuup/update/10163/LightSensor1/CurrentLevel tcp{client}: 0x55b600babaa8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b6004a9de8 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b6004a9de8 2021-08-20 15:00:10.995 openLuup.mqtt:: mqttthing_Luftfuktighet dusch_91df9a58 UNSUBSCRIBE from openLuup/update/20008/HumiditySensor1/CurrentLevel tcp{client}: 0x55b6004a9de8 2021-08-20 15:00:10.995 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600b84628 2021-08-20 15:00:10.995 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600b84628 2021-08-20 15:00:10.996 openLuup.mqtt:: mqttthing_Altandrr kk_db6d3edd UNSUBSCRIBE from openLuup/update/10097/SecuritySensor1/Tripped tcp{client}: 0x55b600b84628 2021-08-20 15:00:10.996 openLuup.io.server:: MQTT:1888 connection closed tcp{client}: 0x55b600be6548 2021-08-20 15:00:10.996 openLuup.mqtt:: RECEIVE ERROR: closed tcp{client}: 0x55b600be6548 2021-08-20 15:00:10.996 openLuup.mqtt:: mqttthing_Test datarum_adbe85e6 UNSUBSCRIBE from openLuup/update/20007/Dimming1/LoadLevelTarget tcp{client}: 0x55b600be6548 2021-08-20 15:00:10.996 openLuup.mqtt:: mqttthing_Test datarum_adbe85e6 UNSUBSCRIBE from openLuup/update/20007/SwitchPower1/Status tcp{client}: 0x55b600be6548

      And then in syslog:

      Aug 20 15:00:11 username systemd[1]: openluup.service: Control process exited, code=exited status=7 Aug 20 15:00:11 username systemd[1]: openluup.service: Failed with result 'exit-code'.
      openLuup
    • OpenLuup - problem with solar AZ and ALT variables?

      A

      Wanted to check if was day or night and figured I would use:

      local altitude = luup.variable_get(SID.SOLAR, 'ALT', ID.OPEN_LUUP)

      If altitude is positive it's day, else it's night. However when I read these variables they are incorrect for my locale. The actual values for sunset and midday are correct but do not occur at sunset or midday. I have checked the clock that openLuup uses and it's correct.

      Now the time for midday is one hour out and the time for sunset is 13 hours out.

      I checked this by getting the UNIX epoch for my location for both sunset and midday and then adding the hours of offset and then called:

      local ID = { OPEN_LUUP = 2 } local SID = { OPEN_LUUP = "openLuup", SOLAR = "solar" } --local localTime = my_epoch_for_midday + (3600*1) local localTime = my_epoch_for_sunset + (3600*13) local coords = {Epoch = localTime, '', Latitude = '', Longitude = ''} luup.call_action(SID.SOLAR, "GetSolarCoords", coords, ID.OPEN_LUUP) local altitude = luup.variable_get(SID.SOLAR, 'ALT', ID.OPEN_LUUP) local azimuth = luup.variable_get(SID.SOLAR, 'AZ', ID.OPEN_LUUP) print('New altitude: '..altitude) print('New azimuth: '..azimuth)

      and I get the right answers.

      Not sure what I'm doing wrong. Or perhaps there is some code mix up with UTC versus local time. I checked the documentation but no mention of the solar variables.

      If I look at the chart it looks like the whole thing is correct but shifted by my timezone. However I wouldn't expect the timezone to come into play in these calculations.

      Feature request: would like to see an openLuup variable that is true for day and false for night. eg IsDay

      openLuup
    • openLuup: MQTT server

      akbooer

      Feedback / issues with openLuup's built-in MQTT server

      openLuup
    • OpenLuup : Basic UI

      parkerc

      Creating a separate thread for anyone who is interested in using the basic (vera) smartphone UI with openLuup

      B834C005-6193-4954-95B0-6D020EAEEFDD.jpeg

      The actual L_sPhoneUI.lua file needed comes from the ‘ Smartphone Web Interface ’ that’s installed via the mios App Store.

      Once you’ve got the file and have uploaded it to openLuup, add the following to your Lua Startup

      dofile ("L_sPhoneUI.lua")

      FYI - all associated js, css and graphic files seem to be hosted at https://download1.mios.com/L_sPhoneUI_layout so not sure how long they will remain available there, but theoretically alternative hosting could be done..

      openLuup
    • Lua using do - end file

      parkerc

      Hi,

      I’ve got the L_sPhoneUI.lua file, which is the very basic Vera smartphone UI, and it’s just a do - end code construct. How do I make that work under OpenLuup?

      do .. then loads of code here.. end

      I’ve tried putting into the normal xml/json plugin space but it does seem to get picked up, as none of the handlers are registered?

      openLuup
    • luup.variable_watch

      B

      Hi AK,

      I can't find any info on how a variable watch actually ends.

      I have the following variable watch on an alarm panel plugin UPnP variable. The code is part of some extended startup lua:

      luup.variable_watch("waitForZoneToClose","urn:micasaverde-com:serviceId:EVL3VistaAlarmPanel1", "FaultedZoneNames", 7)

      In the same startup lua, the global function "waitForZoneToClose" is called when the "FaultedZoneNames" variable changes, but this same function is also called at the start of a routine that determines what zones are actually faulted on the alarm panel.

      openZoneCount= waitForZoneToClose(7, "urn:micasaverde-com:serviceId:EVL3VistaAlarmPanel1", "FaultedZoneNames" , "","")

      So although the luup watch variables are included in the function params, they are not used within the function:

      function waitForZoneToClose(dev_id, service, variable, old_val, new_val) openZoneCount = getOpenZones() --retrieves open zone names on panel, and zones to bypass per mode setting if openZoneCount > 0 then -- there are open zones buildReservedZonesTable() -- run routine to pop bypass and vent zones from the zonesToClose stack removeReservedZones() openZoneCount = tablelength(tZonesToClose) -- run the count again to see if any zone was popped off the stack during removeReservedZones end return openZoneCount end

      Because I run the function recursively ie. when the variable that holds the open zones changes, I rerun the function that detects open zones, and if any relevant zones are still open, the code for the same watch is ran again, to detect if any zones have changed status, this before trying to auto arm the panel. So there might be a situation where two or more zones need to be closed before the panel will arm, and it takes real time to physically close each zone, one by one, and as each closes, the callback would trigger again.

      Hope that makes sense.

      I wasn't clear if a variable watch ends when the watched variable changes and the code then proceeds. Or do you have to end the watch via code somehow? I was concerned about a possible condition where watch upon watch would be added to memory until a luup reload would clear the watches, or do the watches end and self-cleanup when the callback function is called.

      openLuup
    • openLuup : Kiosk (Touchscreen) Idea ?

      parkerc

      Hi,

      I have an old raspberry pi and 7" touchscreen gathering dust, and have started to explore how I could potentially use the openLuup feature to ‘specify my own’ index.html?

      The openLuup manual suggests it’s straightforward to set up, the challenge is going to be around how best to create a single html for just one of my plugins so i can use it in a kiosk type mode..

      As you can probably tell, html and web development are alien to me 🙂 - but I assume I can do something basic, like create buttons that just call luup.call_action - e.g. here’s one from a plugin I created.

      Luup

      luup.call_action("urn:nodecentral-net:serviceId:Matrix1","SYCall",{ action ="I3" },1083)

      Html

      <form action="https://google.com"> <input type="submit" value="Go to Google" /> </form>

      Not sure how that luup.call_action translate to a url, but I guess it’s something like this..

      http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=1083&serviceId=urn:nodecentral-net:serviceId:SYMatrix1&SYCall={action=I3}

      Has anyone done anything like this already, and has any examples of their own html content they can share ?

      Is there maybe something out there that can translates any Vera static .json file into something presentable on a .html page. ? I had a quick look through @amg0 AltUi content on GitHub for inspiration but that is a way more comprehensive interface, compared to the single screen look I’m going for..

      Any suggestion/advice (examples ideally) would be much appreciated..

      openLuup
    • Luup reload required after server reboot

      A

      I noticed this morning something that have seen in the past but forgotten about.

      When I restart the OpenLuup server (in my case an Ubuntu PC) the Vera and Z-way bridges do not get in contact with the corresponding servers, i.e. are shown in red in AltUI. The solution for me is to make a "Relaod Luup engine" and then they are ok. I do not know if it is a general issue or only for my setup.

      To be honest it is not much of a problem since OpenLuup is so stable. If and when you restart the server the hazzle of reloading is not that big. In fact I had forgotten about it since it was so long ago I had to restart anything...

      The one use case I can think of is that the server gets restarted due to a power outage or something and if you are not at home the system does not fully recover without manual interaction. I my case I have the server on an UPS, but still a thought.

      Is this a known issue and is it something that can be addressed somehow? As I said low priority, at least for me. 🙂

      openLuup
    • luaJIT

      rafale77

      @akbooer,

      Have you ever considered running openLuup under LuaJIT instead of Lua5.1 interpreter?

      The LuaJIT Project

      For kicks, I switched my installation to the latest LuaJIT2.1 beta3 dating from 2017 and being a lua5.1 interpreter it is a drop in replacement. I had to move the lfs library from one folder to another likely because of an include path difference but I am seeing a further speed/efficiency improvement vs. lua5.1.
      My CPU load has dropped another 25% to now hover around 2.2% down from 2.8%. I have yet to make sure that everything else works but so far everything appears to be the same.
      The luajit site claims up to 5x speed increase through the interpreter and 120x improvement through the compiler vs the standard lua5.1.

      Screen Shot 2020-07-05 at 23.10.02.png

      My initial interest was from being able to access some ffi libraries to handle video streams...

      PS: Wow it is pretty impressive under load... browsing through ALTUI which used to cause spikes of CPU utilization from 2.8% to 4.8% now only go from 2.3% to 2.6%. It almost looks like noise. I am running it on a pretty fast x64 thread so it may not be that significant but this could make a big difference on ARM.

      Screen Shot 2020-07-05 at 23.11.47.png

      openLuup
    • Altui file not found errors

      B

      Here is a snippet of the log:

      2021-08-22 16:57:28.106 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/jquery-ui.css 2021-08-22 16:57:28.107 openLuup.server:: request completed (150 bytes, 0 chunks, 1 ms) tcp{client}: 0x564e387b57a8 2021-08-22 16:57:28.114 openLuup.server:: GET /etc/cmh-ludl/localcdn/font-awesome.min.css HTTP/1.1 tcp{client}: 0x564e38b3af28 2021-08-22 16:57:28.116 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/font-awesome.min.css 2021-08-22 16:57:28.116 openLuup.server:: request completed (157 bytes, 0 chunks, 1 ms) tcp{client}: 0x564e38b3af28 2021-08-22 16:57:28.117 openLuup.io.server:: HTTP:3480 connection from 10.17.1.100 tcp{client}: 0x564e385a7098 2021-08-22 16:57:28.123 openLuup.server:: GET /etc/cmh-ludl/localcdn/bootstrap.min.css HTTP/1.1 tcp{client}: 0x564e385a7098 2021-08-22 16:57:28.123 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/bootstrap.min.css 2021-08-22 16:57:28.124 openLuup.server:: request completed (154 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e385a7098 2021-08-22 16:57:28.124 openLuup.server:: GET /etc/cmh-ludl/localcdn/jquery.bootgrid.min.css HTTP/1.1 tcp{client}: 0x564e387b57a8 2021-08-22 16:57:28.125 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/jquery.bootgrid.min.css 2021-08-22 16:57:28.126 openLuup.server:: request completed (160 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e387b57a8 2021-08-22 16:57:28.127 openLuup.io.server:: HTTP:3480 connection from 10.17.1.100 tcp{client}: 0x564e38ea35a8 2021-08-22 16:57:28.127 openLuup.io.server:: HTTP:3480 connection from 10.17.1.100 tcp{client}: 0x564e3882e378 2021-08-22 16:57:28.133 openLuup.server:: GET /etc/cmh-ludl/localcdn/joint.css HTTP/1.1 tcp{client}: 0x564e3882e378 2021-08-22 16:57:28.134 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/joint.css 2021-08-22 16:57:28.135 openLuup.server:: request completed (146 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e3882e378 2021-08-22 16:57:28.136 openLuup.io.server:: HTTP:3480 connection from 10.17.1.100 tcp{client}: 0x564e36e44d08 2021-08-22 16:57:28.136 openLuup.server:: GET /etc/cmh-ludl/localcdn/spectrum.min.css HTTP/1.1 tcp{client}: 0x564e38ea35a8 2021-08-22 16:57:28.137 openLuup.servlet:: file not found:etc/cmh-ludl/localcdn/spectrum.min.css 2021-08-22 16:57:28.137 openLuup.server:: request completed (153 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e38ea35a8 2021-08-22 16:57:28.141 openLuup.server:: GET /etc/cmh-ludl/localcdn/jquery.min.js HTTP/1.1 tcp{client}: 0x564e36e44d08

      And here is a screen shot showing the files exist:

      Screenshot 2021-08-22 170642.png

      Altui will not load. Using the current openLuup dev version 2021.08.16 which was updated today. There is a forward slash in front of etc for the get but not for the file not found error.

      openLuup
    • luup.watch callback

      B

      Hoping someone can point me in the right direction. Per the code below, I am trying to run a function conditionally ("modeTableAction") when a watch callback triggers. In this case, the watch is on a reactor group. What I don't understand and cannot find any info on, is how to pass parameters to the function/callback. The lua file "myStartupLua" is called from openluup startup with a global require statement and this allows me to call the functions in the file from Reactor activities.

      Do I need to embed a function (that contains the parameters) within the callback function so that the callback then calls the embedded function and its parameters?

      module("myStartUpLua", package.seeall) function _G.turnOffModes(myMode) -- reactor 'and' group that checks for motion relay on and 'mode off' virtual switch is on. local porchSensorStatus = luup.variable_get("urn:toggledbits-com:serviceId:ReactorGroup", "GroupStatus_grp1a1dd8um", 160) -- modes and their device numbers local modeTable = { ['Office'] = '203', ['Garage'] = '204', ['Off'] = '223', ['Outdoors'] = '202', ['Guest'] = '190', ['Bedtime'] = '209', ['Morning'] = '217', ['Standard'] = '215', ['Party'] = '199', ['Manual'] = '206' } function modeTableAction( t, myMode ) for k, v in pairs( t ) do local lightDeviceID = v if ( k == myMode ) then local resultCode, resultString, job, returnArguments = luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue="1" },lightDeviceID) luup.log('Turn on ' .. k .. ' ' .. lightDeviceID ,50) else local resultCode, resultString, job, returnArguments = luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue="0" },lightDeviceID) luup.log('Turn off ' .. k .. ' ' .. lightDeviceID ,50) end end end local function watchPorchRelay () if porchSensorStatus == 1 then -- motion relay on and 'mode off' virtual switch is on -- watch and wait for the vStatus to go to 0 luup.variable_watch("modeTableAction","urn:toggledbits-com:serviceId:ReactorGroup", "GroupStatus_grp1a1dd8um", 160) else -- proceed directly with turning off virtual switches. modeTableAction (modeTable, myMode) end end watchPorchRelay() end
      openLuup
    For those who registered but didn't received the confirmation email, please send an email to support@smarthome.community with the email you used

    Openluup control of Alexa

    openLuup
    3
    23
    158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CatmanV2
      CatmanV2 last edited by

      Very happy getting Alexa to control Openluup devices. I'm wondering if there's any way to get Openluup to control Alexa only devices (such as wifi enabled light bulbs?

      TIA

      C

      The Ex-Vera abuser know as CatmanV2.....

      1 Reply Last reply Reply Quote 0
      • therealdb
        therealdb last edited by

        Yep, write two routines, then use my Virtual Devices Plugin to execute the lua code to call them. Use unique and non-friendly names. Something like xyz_light2_on

        --
        On a mission to automate everything.

        My MS Reactor contrib
        My Luup Plug-ins

        CatmanV2 1 Reply Last reply Reply Quote 1
        • CatmanV2
          CatmanV2 @therealdb last edited by

          @therealdb said in Openluup control of Alexa:

          Yep, write two routines, then use my Virtual Devices Plugin to execute the lua code to call them. Use unique and non-friendly names. Something like xyz_light2_on

          Thanks. Just skimmed the readme. Not sure how I get this to call Alexa routines? I could just use the Alexa remote control script as well though (which is what I thought of in the shower!)

          Cheers

          C

          The Ex-Vera abuser know as CatmanV2.....

          1 Reply Last reply Reply Quote 0
          • CatmanV2
            CatmanV2 last edited by

            Hmm, just tried calling a routine (in this case xyzlight) from the Vera Alexa plugin from Reactor.

            Although the routine runs fine from the Alexa app nothing happens when I try 'Run routine' from the Reactor.

            Question 1 would be 'What should I use for the Device?'

            Or is this just not going to work?

            TIA

            C

            The Ex-Vera abuser know as CatmanV2.....

            1 Reply Last reply Reply Quote 0
            • therealdb
              therealdb last edited by

              I’ve not used reactor, so I’m not sure. As I said, you can create a virtual device and run lua. Just use lua:// and the insert the lua code to run the routine 😉

              --
              On a mission to automate everything.

              My MS Reactor contrib
              My Luup Plug-ins

              CatmanV2 1 Reply Last reply Reply Quote 0
              • CatmanV2
                CatmanV2 @therealdb last edited by

                @therealdb said in Openluup control of Alexa:

                I’ve not used reactor, so I’m not sure. As I said, you can create a virtual device and run lua. Just use lua:// and the insert the lua code to run the routine 😉

                Thanks, but this is where I'm a bit stuck. I can't see anything in the doc to create a virtual device to map on an Alexa controlled device. Or should I be looking at a virtual http type device direct to the wifi bulb? That being the case I guess I'm going to need to know what the API commands are (which I've not seen being)
                Or am I on totally the wrong track?

                Cheers

                C

                The Ex-Vera abuser know as CatmanV2.....

                1 Reply Last reply Reply Quote 0
                • therealdb
                  therealdb last edited by

                  Let's say you have two routines and VeraAlexa already installed. Install Virtual Devices from GitHub (or via AltAppStore) as well. Create a device for Virtual Device Plug-in, then go to the device you created, and insert into variables:

                  • SetPowerURL: lua://luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "RunRoutine", {RoutineName="xzy_LightOn", GroupZones="Bedroom"}, 666)

                  Repeat for SetPowerOffURL, but use your lightOff routine name. Change 666 to your VeraAlexa device's ID. Try to turn on, it should call Alexa to do it, same thing for turning off.

                  --
                  On a mission to automate everything.

                  My MS Reactor contrib
                  My Luup Plug-ins

                  1 Reply Last reply Reply Quote 1
                  • CatmanV2
                    CatmanV2 last edited by CatmanV2

                    Thanks!

                    You are a gent sir. This is what I have in my SetPowerURL variable:

                    lua://luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "RunRoutine"{RoutineName="xzylight", GroupZones="Office"},22)
                    

                    The routine name is correct and works when accessed from the Alexa App
                    The device in GroupZones works if I send speech to it
                    The VeraAlexa device number is correct.

                    Log entry seems sparse, even in debug:

                    2021-04-22 08:54:40.023   luup.call_action:: 59.urn:upnp-org:serviceId:SwitchPower1.SetTarget 
                    2021-04-22 08:54:40.024   luup_log:59: VirtualDevices[3.0-beta2@59](actionPower@92):actionPower(59,"1")
                    2021-04-22 08:54:40.024   luup_log:59: VirtualDevices[3.0-beta2@59](actionPowerInternal@45):actionPowerInternal(59,true,true)
                    2021-04-22 08:54:40.024   luup_log:59: VirtualDevices[3.0-beta2@59](setVar@104):setVar("urn:upnp-org:serviceId:SwitchPower1","Target","1",59) old value "0"
                    2021-04-22 08:54:40.025   luup.variable_set:: 59.urn:upnp-org:serviceId:SwitchPower1.Target was: 0 now: 1 #hooks:0
                    2021-04-22 08:54:40.025   luup_log:59: VirtualDevices[3.0-beta2@59](sendDeviceCommand@279):sendDeviceCommand("SetPowerURL","on",59)
                    2021-04-22 08:54:40.025   luup_log:59: VirtualDevices[3.0-beta2@59]:sendDeviceCommand: RunLua: "luup.call_action(\"urn:bochicchio-com:serviceId:VeraAlexa1\", \"RunRoutine\", {RoutineName=\"xzylight\", GroupZones=\"Office\"},22)"
                    2021-04-22 08:54:40.025   luup.call_action:: 1.urn:micasaverde-com:serviceId:HomeAutomationGateway1.RunLua 
                    2021-04-22 08:54:40.025   luup_log:59: VirtualDevices[3.0-beta2@59](setVar@104):setVar("urn:upnp-org:serviceId:SwitchPower1","Status","1",59) old value "0"
                    2021-04-22 08:54:40.025   luup.variable_set:: 59.urn:upnp-org:serviceId:SwitchPower1.Status was: 0 now: 1 #hooks:0
                    2021-04-22 08:54:40.026   luup_log:59: VirtualDevices[3.0-beta2@59](onSuccess@77):Auto off in 0 secs
                    

                    What have I done wrong?

                    TIA

                    C

                    The Ex-Vera abuser know as CatmanV2.....

                    therealdb 1 Reply Last reply Reply Quote 1
                    • therealdb
                      therealdb @CatmanV2 last edited by

                      @catmanv2 maybe this is the same problem as @LibraSun already reported. I’ll investigate more. Could you please post variables minus username/password? Thanks!

                      --
                      On a mission to automate everything.

                      My MS Reactor contrib
                      My Luup Plug-ins

                      1 Reply Last reply Reply Quote 1
                      • CatmanV2
                        CatmanV2 last edited by

                        Of course:

                        Variable		Value
                        AlexaHost	
                        layla.amazon.co.uk
                        AmazonHost	
                        amazon.co.uk
                        AnnouncementVolume	
                        50
                        CommFailure	
                        0
                        CommFailureTime	
                        0
                        Configured	
                        1
                        CurrentVersion	
                        0.2.13
                        DebugMode	
                        0
                        DefaultBreak	
                        3
                        DefaultEcho	
                        Office
                        DefaultVolume	
                        40
                        Language	
                        en-GB
                        LatestResponse	
                        sending cmd:speak:<s>There is movement at the front door</s><break time="0s" /> to dev:Office type:A32DOYMUN6DTXA serial:G090U50991550NLS customerid:A1CVTZEBJIUFJI
                        OneTimePassCode	
                        Password	
                        ****
                        UseAnnoucements	
                        1
                        Username	
                        *****
                        

                        C

                        The Ex-Vera abuser know as CatmanV2.....

                        therealdb 1 Reply Last reply Reply Quote 1
                        • therealdb
                          therealdb @CatmanV2 last edited by

                          @CatmanV2 @LibraSun can you please send me more logs (see Patrick's guidance). Privately is OK, if you prefer. Remember to set DebugMode to 1 for Vera Alexa's device. It's almost week-end, so I'll have some spare time. Thanks!

                          --
                          On a mission to automate everything.

                          My MS Reactor contrib
                          My Luup Plug-ins

                          CatmanV2 1 Reply Last reply Reply Quote 0
                          • CatmanV2
                            CatmanV2 @therealdb last edited by

                            @therealdb said in Openluup control of Alexa:

                            @CatmanV2 @LibraSun can you please send me more logs (see Patrick's guidance). Privately is OK, if you prefer. Remember to set DebugMode to 1 for Vera Alexa's device. It's almost week-end, so I'll have some spare time. Thanks!

                            For sure! But given that I have no idea what (other than what posted) is relevant how long a chunk do you want?

                            C

                            The Ex-Vera abuser know as CatmanV2.....

                            1 Reply Last reply Reply Quote 0
                            • CatmanV2
                              CatmanV2 last edited by akbooer

                              Hmm, PM limit is 1000 characters

                              2021-04-23 17:52:38.268   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailure was: 0 now: 0 #hooks:0
                              2021-04-23 17:52:38.268   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailureTime was: 0 now: 0 #hooks:0
                              2021-04-23 17:52:38.269   luup_log:52: SiteSensor: Scheduling next activity in 60 seconds
                              2021-04-23 17:52:38.778   openLuup.server:: request completed (10747 bytes, 1 chunks, 7579 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:38.784   openLuup.server:: request completed (10747 bytes, 1 chunks, 7026 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:39.287   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175518&Timeout=60&MinimumDelay=1500&_=1618778104503 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              
                              2021-04-23 17:52:39.984   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175518&Timeout=60&MinimumDelay=1500&_=1619187656551 HTTP/1.1 tcp{client}: 0x564e8c234198
                              
                              
                              
                              
                              
                              2021-04-23 17:52:42.859   openLuup.server:: GET /data_request?id=action&output_format=json&DeviceNum=61&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1 HTTP/1.1 tcp{client}: 0x564e8c87b0f8
                              2021-04-23 17:52:42.860   luup.call_action:: 61.urn:upnp-org:serviceId:SwitchPower1.SetTarget 
                              2021-04-23 17:52:42.860   luup.variable_set:: 61.urn:upnp-org:serviceId:SwitchPower1.Target was: 0 now: 1 #hooks:0
                              2021-04-23 17:52:42.861   luup_log:61: VirtualDevices[3.0-beta2@61]:sendDeviceCommand: RunLua: "luup.call_action(\"urn:bochicchio-com:serviceId:VeraAlexa1\", \"RunRoutine\", {RoutineName=\"xzylight\", GroupZones=\"Office\"},22)"
                              2021-04-23 17:52:42.861   luup.call_action:: 1.urn:micasaverde-com:serviceId:HomeAutomationGateway1.RunLua 
                              2021-04-23 17:52:42.861   luup.variable_set:: 61.urn:upnp-org:serviceId:SwitchPower1.Status was: 0 now: 1 #hooks:0
                              2021-04-23 17:52:42.861   openLuup.server:: request completed (35 bytes, 1 chunks, 2 ms) tcp{client}: 0x564e8c87b0f8
                              2021-04-23 17:52:43.067   openLuup.server:: request completed (6489 bytes, 1 chunks, 3779 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:43.078   openLuup.server:: GET /cmh/skins/default/img/devices/device_states/binary_light_on.png HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:43.079   openLuup.server:: request completed (708 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:43.180   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175520&Timeout=60&MinimumDelay=1500&_=1618778104504 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:43.228   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656552 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:52:43.334   openLuup.server:: request completed (6489 bytes, 1 chunks, 3349 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:43.335   openLuup.server:: request completed (1 bytes, 1 chunks, 106 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:52:43.714   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175520&Timeout=60&MinimumDelay=1500&_=1619187656553 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:45.721   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 22 now: 23 #hooks:0
                              2021-04-23 17:52:45.930   openLuup.server:: request completed (7817 bytes, 1 chunks, 2215 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:46.036   openLuup.server:: request completed (7817 bytes, 1 chunks, 2855 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:46.163   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175521&Timeout=60&MinimumDelay=1500&_=1618778104505 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:46.913   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175521&Timeout=60&MinimumDelay=1500&_=1619187656554 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:48.927   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 23 now: 22 #hooks:0
                              2021-04-23 17:52:49.135   openLuup.server:: request completed (7817 bytes, 1 chunks, 2221 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:49.442   openLuup.server:: request completed (7817 bytes, 1 chunks, 3278 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:49.786   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175522&Timeout=60&MinimumDelay=1500&_=1619187656555 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:50.160   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175522&Timeout=60&MinimumDelay=1500&_=1618778104506 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:53.217   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 22 now: 23 #hooks:0
                              2021-04-23 17:52:53.422   openLuup.server:: request completed (7817 bytes, 1 chunks, 3261 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:53.629   openLuup.server:: request completed (7817 bytes, 1 chunks, 3841 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:52:53.634   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656556 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:52:53.736   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:52:53.978   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175523&Timeout=60&MinimumDelay=1500&_=1618778104507 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:52:54.991   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175523&Timeout=60&MinimumDelay=1500&_=1619187656557 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:52:59.789   openLuup.server:: GET /cmh/skins/default/img/devices/device_states/switch_on.png HTTP/1.1 tcp{client}: 0x564e8c87b0f8
                              2021-04-23 17:52:59.790   openLuup.server:: request completed (1223 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e8c87b0f8
                              2021-04-23 17:52:59.791   openLuup.server:: GET /cmh/skins/default/img/devices/device_states/switch_off.png HTTP/1.1 tcp{client}: 0x564e8cd027f8
                              2021-04-23 17:52:59.792   openLuup.server:: request completed (1191 bytes, 0 chunks, 0 ms) tcp{client}: 0x564e8cd027f8
                              2021-04-23 17:53:04.775   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656558 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:04.877   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:05.036   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 23 now: 22 #hooks:0
                              2021-04-23 17:53:05.143   openLuup.server:: request completed (7817 bytes, 1 chunks, 10151 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:05.249   openLuup.server:: request completed (7817 bytes, 1 chunks, 11270 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:05.782   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175524&Timeout=60&MinimumDelay=1500&_=1619187656559 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:06.573   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175524&Timeout=60&MinimumDelay=1500&_=1618778104508 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:09.329   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 22 now: 23 #hooks:0
                              2021-04-23 17:53:09.638   openLuup.server:: request completed (7817 bytes, 1 chunks, 3854 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:09.844   openLuup.server:: request completed (7817 bytes, 1 chunks, 3270 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:10.183   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175525&Timeout=60&MinimumDelay=1500&_=1618778104509 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:10.982   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175525&Timeout=60&MinimumDelay=1500&_=1619187656560 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:13.659   luup.variable_set:: 20380.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 23 now: 22 #hooks:0
                              2021-04-23 17:53:13.766   openLuup.server:: request completed (7817 bytes, 1 chunks, 2782 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:14.073   openLuup.server:: request completed (7817 bytes, 1 chunks, 3888 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:14.978   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175526&Timeout=60&MinimumDelay=1500&_=1619187656561 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:14.979   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656562 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:15.081   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:15.548   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175526&Timeout=60&MinimumDelay=1500&_=1618778104510 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:26.088   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656563 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:26.190   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:29.500   luup.variable_set:: 25005.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature was: 27.4 now: 26.6 #hooks:2
                              2021-04-23 17:53:29.501   luup.watch_callback:: 25005.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature called [20]DataWatcherCallback() function: 0x564e8c4004e0
                              2021-04-23 17:53:29.501   luup.watch_callback:: 25005.urn:upnp-org:serviceId:TemperatureSensor1.CurrentTemperature called [11]reactorWatch() function: 0x564e8ba75720
                              2021-04-23 17:53:29.508   luup.variable_set:: 23.urn:toggledbits-com:serviceId:ReactorSensor.cstate was: {"condso4rr22":{"evaledge":{"f":1616784363},"stateedge":{"f":1616784363},"id":"condso4rr22","evalstamp":1616784363,... now: {"condso4rr22":{"evaledge":{"f":1616784363},"stateedge":{"f":1616784363},"id":"condso4rr22","evalstamp":1616784363,... #hooks:0
                              2021-04-23 17:53:29.510   luup.variable_set:: 23.urn:toggledbits-com:serviceId:ReactorSensor.Message was:  now:  #hooks:0
                              2021-04-23 17:53:29.927   openLuup.server:: request completed (74198 bytes, 5 chunks, 14948 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:29.933   openLuup.server:: request completed (74198 bytes, 5 chunks, 14384 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:30.179   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175529&Timeout=60&MinimumDelay=1500&_=1618778104511 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:30.903   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175529&Timeout=60&MinimumDelay=1500&_=1619187656564 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:38.278   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastRun was: 1619196758 now: 1619196818 #hooks:0
                              2021-04-23 17:53:38.278   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastQuery was: 1619196758 now: 1619196818 #hooks:0
                              2021-04-23 17:53:38.279   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastEval was: 1619196758 now: 1619196818 #hooks:0
                              2021-04-23 17:53:38.279   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.Message was: Valid response; matched! now: Performing query... #hooks:0
                              2021-04-23 17:53:38.280   luup_log:52: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }
                              2021-04-23 17:53:38.280   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LogCapture was: 17:52:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }|17:52:38: SiteSensor: Request succeeded, "wit... now: 17:53:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  } #hooks:0
                              2021-04-23 17:53:38.298   luup_log:52: SiteSensor: Request succeeded, "with" match: "Matched"
                              2021-04-23 17:53:38.298   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LogCapture was: 17:53:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  } now: 17:53:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }|17:53:38: SiteSensor: Request succeeded, "wit... #hooks:0
                              2021-04-23 17:53:38.299   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.Message was: Performing query... now: Valid response; matched! #hooks:0
                              2021-04-23 17:53:38.299   luup.set_failure:: status = 0
                              2021-04-23 17:53:38.300   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailure was: 0 now: 0 #hooks:0
                              2021-04-23 17:53:38.300   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailureTime was: 0 now: 0 #hooks:0
                              2021-04-23 17:53:38.301   luup_log:52: SiteSensor: Scheduling next activity in 60 seconds
                              2021-04-23 17:53:38.407   openLuup.server:: request completed (10747 bytes, 1 chunks, 7504 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:38.413   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656565 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:38.515   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:38.617   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175538&Timeout=60&MinimumDelay=1500&_=1619187656566 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:38.825   openLuup.server:: request completed (10747 bytes, 1 chunks, 8644 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:39.243   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175538&Timeout=60&MinimumDelay=1500&_=1618778104512 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:53:49.600   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656567 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:49.702   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:53:59.552   luup.variable_set:: 23.urn:toggledbits-com:serviceId:ReactorSensor.cstate was: {"condso4rr22":{"evaledge":{"f":1616784363},"stateedge":{"f":1616784363},"id":"condso4rr22","evalstamp":1616784363,... now: {"condso4rr22":{"statestamp":1616784363,"stateedge":{"f":1616784363},"id":"condso4rr22","evalstamp":1616784363,"las... #hooks:0
                              2021-04-23 17:53:59.553   luup.variable_set:: 23.urn:toggledbits-com:serviceId:ReactorSensor.Message was:  now:  #hooks:0
                              2021-04-23 17:53:59.870   openLuup.server:: request completed (73276 bytes, 5 chunks, 21252 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:53:59.983   openLuup.server:: request completed (73276 bytes, 5 chunks, 20739 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:00.195   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175540&Timeout=60&MinimumDelay=1500&_=1618778104513 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:00.910   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656568 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:00.912   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175540&Timeout=60&MinimumDelay=1500&_=1619187656569 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:01.014   openLuup.server:: request completed (1 bytes, 1 chunks, 102 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:02.941   luup_log:0: 13Mb, 2.1%cpu, 1.3days
                              2021-04-23 17:54:03.046   openLuup.server:: request completed (4875 bytes, 1 chunks, 2850 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:03.151   openLuup.server:: request completed (4875 bytes, 1 chunks, 2238 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:03.658   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175547&Timeout=60&MinimumDelay=1500&_=1619187656570 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:04.463   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175547&Timeout=60&MinimumDelay=1500&_=1618778104514 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:14.604   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656571 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:14.706   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:29.889   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656572 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:29.992   openLuup.server:: request completed (1 bytes, 1 chunks, 102 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:31.696   openLuup.io.server:: HTTP:3480 connection closed EXPIRED tcp{client}: 0x564e8c87b0f8
                              2021-04-23 17:54:33.054   luup_log:26: IPhoneLocator: Entering loop:26:1
                              2021-04-23 17:54:34.257   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.PrevUpdate was: 1619195975.93 now: 1619196282.895 #hooks:0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:micasaverde-com:serviceId:HaDevice1.LastUpdate was: 1619196282.895 now: 1619196597.36 #hooks:0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.PrevLat was: 51.762584709398 now: 51.762616462252 #hooks:0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.PrevLong was: 0.13431196000302 now: 0.13432520872469 #hooks:0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.CurLat was: 51.762616462252 now: 51.762606422089 #hooks:0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.CurLong was: 0.13432520872469 now: 0.13428539975898 #hooks:0
                              2021-04-23 17:54:34.258   luup_log:26: IPhoneLocator: ETA set to =>0
                              2021-04-23 17:54:34.258   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.LocationExtraInfo was: GPS:9.9140666521856:false now: GPS:8.4249524283522:false #hooks:0
                              2021-04-23 17:54:34.259   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.MsgText was: Poll: 2021-04-23 17:49 / 300 s now: Poll: 2021-04-23 17:54 #hooks:0
                              2021-04-23 17:54:34.259   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.MsgText2 was: -0.00 Km @ 0.00 Km/h on 2021-04-23 17:44 now: -0.00 Km @ 0.00 Km/h on 2021-04-23 17:49 #hooks:0
                              2021-04-23 17:54:34.259   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.MapUrl was: https://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pushpin=51.762616462252,0.13432520872469;;H&mapLayer=TrafficF... now: https://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pushpin=51.762606422089,0.13428539975898;;H&mapLayer=TrafficF... #hooks:0
                              2021-04-23 17:54:34.259   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.ICloudDevices was: iPhone,Chris’s MacBook Air (2),New Mail Server,iPad (7) now: iPhone,Chris’s MacBook Air (2),New Mail Server,iPad (7) #hooks:0
                              2021-04-23 17:54:34.259   luup_log:26: IPhoneLocator: getPeriodForDevice(26) - Distance:-0 Auto:1 Base:300==>300
                              2021-04-23 17:54:34.259   luup.variable_set:: 26.urn:upnp-org:serviceId:IPhoneLocator1.MsgText was: Poll: 2021-04-23 17:54 now: Poll: 2021-04-23 17:54 / 300 s #hooks:0
                              2021-04-23 17:54:34.260   luup.call_timer:: interval: time=301, days={}
                              2021-04-23 17:54:34.309   openLuup.io.server:: HTTP:3480 connection closed EXPIRED tcp{client}: 0x564e8cd027f8
                              2021-04-23 17:54:34.313   openLuup.server:: request completed (10211 bytes, 1 chunks, 30654 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:34.315   openLuup.server:: request completed (10211 bytes, 1 chunks, 29850 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:34.655   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175559&Timeout=60&MinimumDelay=1500&_=1619187656573 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:35.560   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175559&Timeout=60&MinimumDelay=1500&_=1618778104515 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:38.381   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastRun was: 1619196818 now: 1619196878 #hooks:0
                              2021-04-23 17:54:38.381   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastQuery was: 1619196818 now: 1619196878 #hooks:0
                              2021-04-23 17:54:38.382   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LastEval was: 1619196818 now: 1619196878 #hooks:0
                              2021-04-23 17:54:38.382   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.Message was: Valid response; matched! now: Performing query... #hooks:0
                              2021-04-23 17:54:38.383   luup_log:52: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }
                              2021-04-23 17:54:38.383   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LogCapture was: 17:53:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }|17:53:38: SiteSensor: Request succeeded, "wit... now: 17:54:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  } #hooks:0
                              2021-04-23 17:54:38.400   luup_log:52: SiteSensor: Request succeeded, "with" match: "Matched"
                              2021-04-23 17:54:38.400   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.LogCapture was: 17:54:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  } now: 17:54:38: SiteSensor: HTTP "GET" "http://192.168.70.52", headers={  }|17:54:38: SiteSensor: Request succeeded, "wit... #hooks:0
                              2021-04-23 17:54:38.401   luup.variable_set:: 52.urn:toggledbits-com:serviceId:SiteSensor1.Message was: Performing query... now: Valid response; matched! #hooks:0
                              2021-04-23 17:54:38.401   luup.set_failure:: status = 0
                              2021-04-23 17:54:38.401   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailure was: 0 now: 0 #hooks:0
                              2021-04-23 17:54:38.402   luup.variable_set:: 52.urn:micasaverde-com:serviceId:HaDevice1.CommFailureTime was: 0 now: 0 #hooks:0
                              2021-04-23 17:54:38.402   luup_log:52: SiteSensor: Scheduling next activity in 60 seconds
                              2021-04-23 17:54:38.858   openLuup.server:: request completed (10747 bytes, 1 chunks, 3297 ms) tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:38.964   openLuup.server:: request completed (10747 bytes, 1 chunks, 4308 ms) tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:39.232   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175568&Timeout=60&MinimumDelay=1500&_=1618778104516 HTTP/1.1 tcp{client}: 0x564e8bf913d8
                              2021-04-23 17:54:39.895   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=82175568&Timeout=60&MinimumDelay=1500&_=1619187656574 HTTP/1.1 tcp{client}: 0x564e8c234198
                              2021-04-23 17:54:40.607   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656575 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:40.709   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:52.893   openLuup.server:: GET /data_request?id=variableget&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&Variable=Mode&_=1619187656576 HTTP/1.1 tcp{client}: 0x564e8c6b7358
                              2021-04-23 17:54:52.995   openLuup.server:: request completed (1 bytes, 1 chunks, 101 ms) tcp{client}: 0x564e8c6b7358
                              

                              That's two minutes, let me know if you need more 🙂

                              C

                              The Ex-Vera abuser know as CatmanV2.....

                              therealdb 1 Reply Last reply Reply Quote 0
                              • therealdb
                                therealdb @CatmanV2 last edited by

                                @catmanv2 I just need a couple of logs around the invocation of run routine. Thanks!

                                --
                                On a mission to automate everything.

                                My MS Reactor contrib
                                My Luup Plug-ins

                                CatmanV2 1 Reply Last reply Reply Quote 0
                                • CatmanV2
                                  CatmanV2 @therealdb last edited by

                                  @therealdb said in Openluup control of Alexa:

                                  @catmanv2 I just need a couple of logs around the invocation of run routine. Thanks!

                                  OK, I'm being dumb. Is that not what I just posted?
                                  17:52:42.860

                                  Device 61 is the virtual device...

                                  C

                                  The Ex-Vera abuser know as CatmanV2.....

                                  therealdb 1 Reply Last reply Reply Quote 0
                                  • therealdb
                                    therealdb @CatmanV2 last edited by

                                    @catmanv2 you posted device #61 (Virtual Device), but I definitely need device #22 (VeraAlexa) to have DebugMode to 1 and its logs. Thanks!

                                    --
                                    On a mission to automate everything.

                                    My MS Reactor contrib
                                    My Luup Plug-ins

                                    CatmanV2 1 Reply Last reply Reply Quote 1
                                    • CatmanV2
                                      CatmanV2 @therealdb last edited by CatmanV2

                                      @therealdb Cheers!

                                      OK Debug is on on device 22, and has been for some time 🙂

                                      Is there another log file for VeraAlexa? That's my LuaUPnP.log . Raw and un-adulterated. Simply copied from the terminal from

                                      #tail -F LuaUPnP.log
                                      

                                      C

                                      The Ex-Vera abuser know as CatmanV2.....

                                      therealdb 1 Reply Last reply Reply Quote 0
                                      • therealdb
                                        therealdb @CatmanV2 last edited by

                                        @catmanv2 nope, no other log files. So, it seems that RunLua is not executing correctly. I'll take a look at this, to start. What's your version of openLuup?

                                        --
                                        On a mission to automate everything.

                                        My MS Reactor contrib
                                        My Luup Plug-ins

                                        CatmanV2 1 Reply Last reply Reply Quote 0
                                        • CatmanV2
                                          CatmanV2 @therealdb last edited by CatmanV2

                                          @therealdb said in Openluup control of Alexa:

                                          @catmanv2 nope, no other log files. So, it seems that RunLua is not executing correctly. I'll take a look at this, to start. What's your version of openLuup?

                                          According to the panel:

                                          20.6.20
                                          

                                          I can't help but notice that the password stored in the VeraAlexa variables is not my password any longer.....

                                          Could this have a bearing? Seems to make no difference to TTS.....

                                          And updated, no difference

                                          C

                                          The Ex-Vera abuser know as CatmanV2.....

                                          therealdb akbooer 2 Replies Last reply Reply Quote 0
                                          • therealdb
                                            therealdb @CatmanV2 last edited by

                                            @catmanv2 I don't think it will make any difference. I'll try to replicate your setup later today or tomorrow. We'll definitely fix it 😉

                                            --
                                            On a mission to automate everything.

                                            My MS Reactor contrib
                                            My Luup Plug-ins

                                            CatmanV2 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Welcome. If you’d like to participate in the discussion, rather than just read, then you can join the forum. As a member, you can interact with others here to share your experience and ask the questions you need answered.

                                            Powered by NodeBB | Contributors
                                            Hosted freely by PointPub Media Communications Inc. | Contact us