We have moved at community.getvera.com

Author Topic: Watched Variables  (Read 9904 times)

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Watched Variables
« on: November 23, 2015, 11:50:34 am »
I'm interested in knowing where the Watch List is maintained (handled by AltUI I believe). For instance, can this list be managed outside of the scenes themselves. I see log entries (JSON) of the watch but I seem to be having difficulties getting a watch to trigger.

For instance, I've noticed some issues whereby a watch was assigned to one scene and I've seen it show up in other scenes. Also seems that when I create new scenes, well - a watch is always assigned by default within that scene (a constant remnant of sort from another scene). I have no idea how this is happening. I define the watch, add necessary actions/Lua etc. I then Save the scene and reload the Luup engine. So, I'm just trying to gather additional information which will help me/others troubleshoot.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #1 on: November 23, 2015, 04:22:36 pm »
They're stored in the VariablesToWatch variable in the AltUI plugin, l believe.  I wouldn't mess with them if I were you.  It is actually quite a complex mechanism handled by that plugin.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #2 on: November 23, 2015, 04:34:56 pm »
That's unfortunate, I was hoping for a simpler method. I'll see what I can gather and post on the UI forum. Thanks for the heads up (don't touch, really - don't touch).

They're stored in the VariablesToWatch variable in the AltUI plugin, l believe.  I wouldn't mess with them if I were you.  It is actually quite a complex mechanism handled by that plugin.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #3 on: November 23, 2015, 04:37:34 pm »
You really need to try and isolate this behaviour.  Are we talking an openLuup problem, or an AltUI one.  Have you seen this happen on a real Vera?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #4 on: November 23, 2015, 05:07:28 pm »
Everything happens on openLuup now, Vera has been stripped of those responsibilities. I'll see what I can gather and I'll post in this thread.

You really need to try and isolate this behaviour.  Are we talking an openLuup problem, or an AltUI one.  Have you seen this happen on a real Vera?
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #5 on: November 23, 2015, 09:33:55 pm »
OK, I'm not sure how to troubleshoot this so I'll start here. When creating a new scene, for whatever reason, I start out with a Watched Variable.

A little history of when this started. This weekend I added two identical Leviton switches onto Vera (10[508] and 10[509]). On openLuup/AltUI, I added two scenes - 'Hallway' [10508] and 'Den' [10509]. The triggers for each were (new ~= old). This worked in the 'Hallway' but didn't work in the 'Den'. I then noticed that 'Den' had 'Hallways' watched variable and it's own (how ?). I eventually ended up removing the watched variable from both. Now whenever I create a new scene, there it is... The watched variable that was created for 'Den'.

None of my existing scenes exhibited any issues (thankfully).. New scenes, well - I just have to re
move the trigger each time and the scene saves just fine.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #6 on: November 24, 2015, 03:34:50 am »
Quote
On openLuup/AltUI, I added two scenes - 'Hallway' [10508] and 'Den' [10509].

How did you do that?  Local scenes should have low numbers.  Are you sure you're using the latest VeraBridge from Release 6?  This would be the behaviour of an earlier version. I would check that first.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #7 on: November 24, 2015, 08:41:53 am »
Sorry, not scenes - rather bridged devices within openLuup. The scenes in question are 8 (Hallway) and 9 (Den).

Quote
On openLuup/AltUI, I added two scenes - 'Hallway' [10508] and 'Den' [10509].

How did you do that?  Local scenes should have low numbers.  Are you sure you're using the latest VeraBridge from Release 6?  This would be the behaviour of an earlier version. I would check that first.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #8 on: November 24, 2015, 10:23:49 am »
Looks like perhaps the latest UI update corrected things. I added my watched variables back to both scenes and they work perfectly. I then created a new scene and it was clean - no remnants whatsoever. So things look good..

Edit: Looking through the release notes, I don't see anything related to watched variables. Here is the debug from the UI with things working correctly.

Code: [Select]
2015-11-24 08:25:10.356   luup_log:3: ALTUI: debug: fixVariableWatches(3)
2015-11-24 08:25:10.356   luup_log:3: ALTUI: debug: fixVariableWatches(3)
2015-11-24 08:25:10.356   luup.variable_set:3: 3.urn:upnp-org:serviceId:altui1.VariablesToSend was: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#undefined#undefined#undefined#undefined#undefined;urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#undefined#undefined#undefined#undefined#undefined;urn:upnp-org:serviceId:VContainer1#Variable1#0-36#undefined#undefined#undefined#undefined#undefined;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#undefined#undefined#undefined#undefined#undefined now: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#undefined#undefined#undefined#undefined#undefined;urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#undefined#undefined#undefined#undefined#undefined;urn:upnp-org:serviceId:VContainer1#Variable1#0-36#undefined#undefined#undefined#undefined#undefined;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#undefined#undefined#undefined#undefined#undefined #hooks:0
2015-11-24 08:25:10.357   luup.variable_set:3: 3.urn:upnp-org:serviceId:altui1.RemoteVariablesToWatch was:  now:  #hooks:0
2015-11-24 08:25:10.357   luup.variable_set:3: 3.urn:upnp-org:serviceId:altui1.VariablesToWatch was: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#6#(new=="1");urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#7#new == "1";urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-39#10#(new == '1')#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="289" y="16"><value name="Condition"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="text"><field name="TEXT">1</field></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#9#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="263" y="18"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml> now: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#6#(new=="1");urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#7#new == "1";urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-39#10#(new == '1')#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="289" y="16"><value name="Condition"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="text"><field name="TEXT">1</field></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#9#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="263" y="18"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml> #hooks:0
2015-11-24 08:25:10.358   luup_log:3: ALTUI: debug: initVariableWatches(3)
2015-11-24 08:25:10.358   luup_log:3: ALTUI: debug: _addWatch(urn:micasaverde-com:serviceId:SecuritySensor1,Tripped,0-10505,6,(new=="1"),,,,,,)
2015-11-24 08:25:10.358   luup.variable_watch:3: callback=variableWatchCallback, watching=10505.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped
2015-11-24 08:25:10.358   luup_log:3: ALTUI: debug: registeredWatches: {"0-10505":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new==\"1\")":[{"SceneID":6}]}}}}}
2015-11-24 08:25:10.358   luup_log:3: ALTUI: debug: _addWatch(urn:micasaverde-com:serviceId:SecuritySensor1,Tripped,0-10301,7,new == "1",,,,,,)
2015-11-24 08:25:10.359   luup.variable_watch:3: callback=variableWatchCallback, watching=10301.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped
2015-11-24 08:25:10.359   luup_log:3: ALTUI: debug: registeredWatches: {"0-10505":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new==\"1\")":[{"SceneID":6}]}}}},"0-10301":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"new == \"1\"":[{"SceneID":7}]}}}}}
2015-11-24 08:25:10.359   luup_log:3: ALTUI: debug: _addWatch(urn:micasaverde-com:serviceId:SecuritySensor1,Tripped,0-39,10,(new == '1'),,,,,,)
2015-11-24 08:25:10.359   luup.variable_watch:3: callback=variableWatchCallback, watching=39.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped
2015-11-24 08:25:10.360   luup_log:3: ALTUI: debug: registeredWatches: {"0-10301":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"new == \"1\"":[{"SceneID":7}]}}}},"0-39":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new == '1')":[{"SceneID":10}]}}}},"0-10505":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new==\"1\")":[{"SceneID":6}]}}}}}
2015-11-24 08:25:10.360   luup_log:3: ALTUI: debug: _addWatch(urn:upnp-org:serviceId:SwitchPower1,Status,0-10509,9,(new ~= old),,,,,,)
2015-11-24 08:25:10.360   luup.variable_watch:3: callback=variableWatchCallback, watching=10509.urn:upnp-org:serviceId:SwitchPower1.Status
2015-11-24 08:25:10.361   luup_log:3: ALTUI: debug: registeredWatches: {"0-10301":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"new == \"1\"":[{"SceneID":7}]}}}},"0-10509":{"urn:upnp-org:serviceId:SwitchPower1":{"Status":{"Expressions":{"(new ~= old)":[{"SceneID":9}]}}}},"0-39":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new == '1')":[{"SceneID":10}]}}}},"0-10505":{"urn:micasaverde-com:serviceId:SecuritySensor1":{"Tripped":{"Expressions":{"(new==\"1\")":[{"SceneID":6}]}}}}}
« Last Edit: November 24, 2015, 11:21:23 am by CudaNet »
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #9 on: November 24, 2015, 05:53:43 pm »
Looking through the release notes, I don't see anything related to watched variables.

It's here http://forum.micasaverde.com/index.php/topic,33308.msg248521.html#msg248521
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #10 on: December 01, 2015, 05:13:44 pm »
@Akbooer,

I haven't really researched this heavily (been out of town for the holidays) but thought I'd share an observation. I'm seeing a delay of a few seconds (5-6 at most) between the time I engage my Leviton (instant status) switch and my Hue bulbs illuminating. I realize of lot of things are happening behind the scenes here (Vera <> openLuup, watched variable firing the scene etc.). I was thinking about a couple of tests I could perform so I could trap some log data, but again - was kind of wondering if this type of behavior is to be expected given all the players involved.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #11 on: December 01, 2015, 05:28:39 pm »
Welcome back.  I hope you had a good break.

Yes, in fact that delay doesn't surprise me.  The response would be much quicker the other way around.  It should be virtually instant if triggered from openLuup, even if the device was on Vera.

The delay is due to the polling of Vera's status from openLuup.  I need to make a change to the bridge to use asynchronous I/O and then it will be as fast both ways.  I originally wrote the bridge to be able to run on a real Vera, but I have evolved away from that as I demanded more and more functionality from it.  You couldn't possibly play the games it does with device numbering on a real Vera.

I thought a period of stability would not be a bad thing.  I have had my latest system up and running for 15 days continuously, and really wanted to break the one month barrier (something that simply can't be done on a Vera.)  It's using between 8 and 12 Mbytes and consuming about 4% of the CPU on an Arduino Yun.

3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #12 on: December 01, 2015, 05:49:35 pm »
OH it was great getting away from work, traffic - all that pains us daily.  I meant to stop in here and wish everyone a happy holidays but I had to make a mad dash to break away. I'm hoping everyone had a safe enjoyable holiday.

Quote
Welcome back.  I hope you had a good break.

That's really good to here and I've observed nothing but immediacy when requests initiate from openLuup. 2 thumbs up !

Quote
Yes, in fact that delay doesn't surprise me.  The response would be much quicker the other way around.  It should be virtually instant if triggered from openLuup, even if the device was on Vera. The delay is due to the polling of Vera's status from openLuup.

Yes, I recall reading that I could run the Bridge on my Vera but never heard mention of it again by anyone. Glad I asked  ;)

Quote
I need to make a change to the bridge to use asynchronous I/O and then it will be as fast both ways.  I originally wrote the bridge to be able to run on a real Vera, but I have evolved away from that as I demanded more and more functionality from it.  You couldn't possibly play the games it does with device numbering on a real Vera.
Quote

Good plan... Interestingly enough, my numbers don't look all that different from yours and this is on my Jetway server. I'm seeing almost identical numbers on memory and the CPU is >1%. I will admit though, I took the latest update from amg0 this morning but this in no way required a system reboot.

Quote
I thought a period of stability would not be a bad thing.  I have had my latest system up and running for 15 days continuously, and really wanted to break the one month barrier (something that simply can't be done on a Vera.)  It's using between 8 and 12 Mbytes and consuming about 4% of the CPU on an Arduino Yun.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: Watched Variables
« Reply #13 on: December 06, 2015, 05:58:21 pm »
Having some issues deleting a set of watched variables within a scene.  Scene '12' was a test whereby I'm working with my Schlage lock to identify a PIN user. I tried a couple of methods just to see which worked best but now I simply cannot delete them at all. The process is as follows: I remove all 3 WV's, hit submit, wait - then reload engine and their back. I can remove the Lua code, actions, everything but the watched variables for this scene (12). I do see two errors generated by openLuup - hope this helps. If not, let me know what I can provide.

AltUI v0.101.981
openLuup v6.

Code: [Select]
2015-12-06 16:47:34.630   luup_log:0: ALTUI: ALTUI_Handler: parameters is: {"scene":"12","service":"urn:micasaverde-com:serviceId:DoorLock1","data":"undefined","expression":"(UserName == UserName)","channelid":"undefined","provider":"undefined","graphicurl":"undefined","readkey":"undefined","command":"delWatch","variable":"sl_UserCode","_":"1449441401209","device":"0-10237"}
2015-12-06 16:47:34.631   luup_log:0: ALTUI: ALTUI_Handler: outputformat is: null
2015-12-06 16:47:34.631   luup.variable_set:0: 3.urn:upnp-org:serviceId:altui1.VariablesToWatch was: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#7#new == "1";urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-39#10#(new == '1')#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="289" y="16"><value name="Condition"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="text"><field name="TEXT">1</field></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#9#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="263" y="18"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10508#8#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="227" y="25"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#6#(new=="1");urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName == UserName);urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName ~= UserName);urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10511#13#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="279" y="25"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10512#10110#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="233" y="3"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10512#14#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="236" y="14"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName ~= nil) now: urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10301#7#new == "1";urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-39#10#(new == '1')#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="289" y="16"><value name="Condition"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="text"><field name="TEXT">1</field></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10509#9#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="263" y="18"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10508#8#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="227" y="25"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10505#6#(new=="1");urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName == UserName);urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName ~= UserName);urn:micasaverde-com:serviceId:SecuritySensor1#Tripped#0-10511#13#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="279" y="25"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10512#10110#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="233" y="3"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:upnp-org:serviceId:SwitchPower1#Status#0-10512#14#(new ~= old)#<xml xmlns="http://www.w3.org/1999/xhtml"><block type="when" x="236" y="14"><value name="Condition"><block type="logic_compare"><field name="OP">NEQ</field><value name="A"><block type="new_value"></block></value><value name="B"><block type="old_value"></block></value></block></value></block></xml>;urn:micasaverde-com:serviceId:DoorLock1#sl_UserCode#0-10237#12#(UserName ~= nil) #hooks:0
2015-12-06 16:47:34.633   openLuup.context_switch::  ERROR: ./openLuup/server.lua:178: attempt to get length of local 'x' (a number value)
2015-12-06 16:47:34.633   openLuup.scheduler:: job aborted : ./openLuup/server.lua:178: attempt to get length of local 'x' (a number value)
openLuup, AltUI, Zway and HomeWave, enough said...

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Watched Variables
« Reply #14 on: December 06, 2015, 06:38:03 pm »
Something is trying to send a number, instead of a string, as the response to an HTTP request.  From the information given, I can't tell what.  It could be AltUI, but equally well may not be. I have not seen this before.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.