This page last changed on Feb 04, 2014 by skogen75.

Gentlemen,

I have been working on retrieving the state value from my VeraLite xml file to populate some sensors in OR. The device I am working with is a Squeezebox using a plug-in for the VeraLite. I am able to get some sensors to retrieve the value from the xml file, but others are not working and return "N/A". See the excerpt of the xml file below...

I am able to get the status updated for the variable "Status", but not for variable "CurrentTitle", "CurrentArtist", "Volume".

I did make the status attribute entry in OR all lowercase -> "Status" became "status", "CurrentTitle" became "currenttitle" for instance.

I do not see any errors in the boot log, but I do see the following warning in one of the logs...

I wonder if it has to do with the different "service" lines:

service="urn:upnp-org:serviceId:SwitchPower1" Getting value from this works
service="urn:upnp-org:serviceId:AVTransport" Does not work

Any thoughts or help would be appreciated

I am using...
preview designer
snapshot 6-17-2013 on Win7
iOS UI


photo.PNG (image/png)
photo1.PNG (image/png)

Anyone have any ideas on what to try to get this working?

I have tried to retrieve data from several other devices (dimmers) and the only thing I can get is the "status" variable. I have sliders and switches working with these dimmers (using other commands), but I cannot return any values except "status" using GENERIC_STATUS command.

Thanks for any help.

Erik

Posted by skogen75 at Feb 12, 2014 18:06

Still unable to return the value of any variable besides "status". Can anyone shed some light on how to accomplish this? Is there a more recent version of the controller?

Has anyone been able to return the value of a variable from the vera xml file?

Thanks.

Posted by skogen75 at Feb 18, 2014 03:56

Hi Erik,

I don't know Vera so can't directly help but I do recall there been a discussion around the generic status command on the comments section of the OR Vera how to page: OpenRemote 2.0 How To - Micasaverde Vera

Did you already check through that discussion, and was there anything helpful there?

Posted by juha at Feb 19, 2014 08:51

Hi Juha,

Thanks for your reply. Yes, I have read the discussion a few times and it seems several folks have had some problems getting the GENERIC_STATUS command to return the desired value from the Vera XML file. At least two users from the discussion have it working to some extent.

It's strange that I can get some variables to return data but not others.

I'll continue to work this issue and report back, but may need some help in figuring out where to look specifically.

First, I may check that my Vera XML is indeed an a valid format.
Next, I will check that I can parse data from the file.
After that, I may try to implement a HTTP command to retrieve data using OR.
If that checks out, it must be something in the Vera protocol?

Posted by skogen75 at Feb 19, 2014 17:27

Hello again.

I have explored my Vera XML file and it is valid XML. I have also tested an XPATH expression to retrieve various values without trouble. I include the entire XML file below.

<?xml version="1.0"?>
<root LoadTime="1392692974" DataVersion="692975216" UserData_DataVersion="692974016" TimeStamp="1392867547" ZWaveStatus="1" LocalTime="2014-02-19 20:39:07 N">
<startup>
<tasks></tasks>
</startup>
<devices>
<device id="1" status="-1">
<states>
<state id="107" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="Use45" value="1"></state>
<state id="108" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="UseMR" value="1"></state>
<state id="109" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="LimitNeighbors" value="0"></state>
<state id="110" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="LastUpdate" value="1392692975"></state>
<state id="111" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="NetStatusID" value="1"></state>
<state id="112" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="NetStatusText" value="OK"></state>
<state id="113" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="LockComPort" value="1"></state>
<state id="114" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="ComPort" value="/dev/ttyS0"></state>
<state id="115" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="PollingEnabled" value="1"></state>
<state id="116" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="PollDelayInitial" value="20"></state>
<state id="117" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="PollDelayDeadTime" value="10"></state>
<state id="118" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="PollMinDelay" value="30"></state>
<state id="119" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="PollFrequency" value="60"></state>
<state id="120" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="VersionInfo" value="3.20 L:1"></state>
<state id="121" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="HomeID" value="House: 17aba3f Node 1 Suc 0"></state>
<state id="122" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="Role" value="Master SIS:NO PRI:YES"></state>
<state id="123" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="LastDongleBackup" value="1391218868"></state>
<state id="124" service="urn:micasaverde-com:serviceId:ZWaveNetwork1" variable="LastError" value="Node 3 failed"></state>
<state id="125" service="urn:micasaverde-com:serviceId:HaDevice1" variable="AutoConfigure" value="1"></state>
<state id="126" service="urn:micasaverde-com:serviceId:HaDevice1" variable="LastTimeOffset" value="-7"></state>
<state id="127" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="0"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
<device id="2" status="-1">
<states>
<state id="233" service="urn:micasaverde-com:serviceId:SceneController1" variable="Scenes" value=""></state>
<state id="234" service="urn:micasaverde-com:serviceId:HaDevice1" variable="IgnoreRoom" value="1"></state>
<state id="235" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="0"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
<device id="3" status="-1">
<states>
<state id="141" service="urn:upnp-org:serviceId:SwitchPower1" variable="Status" value="1"></state>
<state id="142" service="urn:upnp-org:serviceId:Dimming1" variable="LoadLevelStatus" value="10"></state>
<state id="143" service="urn:upnp-org:serviceId:Dimming1" variable="LoadLevelTarget" value="10"></state>
<state id="144" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="1"></state>
<state id="145" service="urn:micasaverde-com:serviceId:HaDevice1" variable="LastUpdate" value="1385329598"></state>
<state id="146" service="urn:micasaverde-com:serviceId:HaDevice1" variable="FirstConfigured" value="1385329598"></state>
<state id="147" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="Capabilities" value="211,156,0,4,17,1,L,R,B,RS,|38:1,39,112,114,134,"></state>
<state id="148" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="ManufacturerInfo" value="99,17495,12848"></state>
<state id="149" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="VersionInfo" value="6,3,40,3,29"></state>
<state id="150" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="NodeInfo" value="26,27,70,72,86,"></state>
<state id="151" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="PollSettings" value="60"></state>
<state id="152" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="Neighbors" value="1,3,"></state>
<state id="153" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="LastReset" value="0"></state>
<state id="154" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="AssociationNum" value="0"></state>
<state id="155" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="PollOk" value="83870"></state>
<state id="156" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="LastRouteUpdate" value="1392850555"></state>
<state id="157" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="PollNoReply" value="1"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
<device id="4" status="-1">
<states>
<state id="127" service="urn:upnp-org:serviceId:SwitchPower1" variable="Status" value="1"></state>
<state id="128" service="urn:upnp-org:serviceId:Dimming1" variable="LoadLevelTarget" value="30"></state>
<state id="129" service="urn:upnp-org:serviceId:Dimming1" variable="LoadLevelStatus" value="30"></state>
<state id="130" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="1"></state>
<state id="131" service="urn:micasaverde-com:serviceId:HaDevice1" variable="CommFailure" value="0"></state>
<state id="132" service="urn:micasaverde-com:serviceId:HaDevice1" variable="LastUpdate" value="1389504231"></state>
<state id="133" service="urn:micasaverde-com:serviceId:HaDevice1" variable="FirstConfigured" value="1389504231"></state>
<state id="134" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="Capabilities" value="211,156,0,4,17,4,L,R,B,RS,|38,39,43,44,114,115,119,133,134,145,"></state>
<state id="135" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="ManufacturerInfo" value="29,514,779"></state>
<state id="136" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="VersionInfo" value="3,3,11,0,6"></state>
<state id="137" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="PollSettings" value="0"></state>
<state id="138" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="NodeInfo" value="26,27,2b,2c,72,73,77,85,86,91,"></state>
<state id="139" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="InitialName" value="LivingRoom_PlugI"></state>
<state id="140" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="ConfiguredName" value="LivingRoom_PlugIn_Dimmer"></state>
<state id="141" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="ConfiguredAssoc" value=""></state>
<state id="142" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="Neighbors" value=""></state>
<state id="143" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="LastReset" value="1389504230"></state>
<state id="144" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="AssociationNum" value="1"></state>
<state id="145" service="urn:micasaverde-com:serviceId:ZWaveDevice1" variable="PollOk" value="2"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
<device id="5" status="-1">
<states>
<state id="212" service="urn:micasaverde-com:serviceId:HaDevice1" variable="CommFailure" value="1"></state>
<state id="213" service="urn:micasaverde-com:serviceId:HaDevice1" variable="LastUpdate" value="0"></state>
<state id="214" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="0"></state>
<state id="215" service="urn:micasaverde-com:serviceId:SqueezeBox1" variable="serverIP" value="192.168.0.196"></state>
<state id="216" service="urn:micasaverde-com:serviceId:SqueezeBox1" variable="serverPort" value="9090"></state>
<state id="217" service="urn:micasaverde-com:serviceId:SqueezeBox1" variable="Debug" value="false"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
<device id="6" status="-1">
<states>
<state id="11" service="urn:micasaverde-com:serviceId:SqueezeBoxPlayer1" variable="playerId" value="00%3A04%3A20%3A05%3Ace%3A4c"></state>
<state id="12" service="urn:upnp-org:serviceId:RenderingControl" variable="Mute" value="0"></state>
<state id="13" service="urn:upnp-org:serviceId:RenderingControl" variable="Volume" value="100"></state>
<state id="14" service="urn:upnp-org:serviceId:AVTransport" variable="TransportState" value="PLAYING"></state>
<state id="15" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentPlayMode" value="SHUFFLE"></state>
<state id="16" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentTrackURI" value="file:///C:/Users/Skogen/Music/The%20Rolling%20Stones/It%27s%20Only%20Rock%20%27n%27%20Roll/01%20If%20You%20Can%27t%20Rock%20Me.mp3"></state>
<state id="17" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentTitle" value="If You Can&apos;t Rock Me"></state>
<state id="18" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentArtist" value="The Rolling Stones"></state>
<state id="19" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentAlbum" value="It&apos;s Only Rock &apos;n&apos; Roll"></state>
<state id="20" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentTrack" value="1"></state>
<state id="21" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentTrackDuration" value="226.652"></state>
<state id="22" service="urn:upnp-org:serviceId:AVTransport" variable="CurrentAlbumArt" value=""></state>
<state id="23" service="urn:upnp-org:serviceId:SwitchPower1" variable="Status" value="1"></state>
<state id="24" service="urn:micasaverde-com:serviceId:HaDevice1" variable="Configured" value="0"></state>
</states>
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</device>
</devices>
<scenes>
<scene id="6" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="4" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="3" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="7" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="2" status="-1" active="true">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="5" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
<scene id="1" status="-1" active="false">
<Jobs></Jobs>
<tooltip display="0"></tooltip>
</scene>
</scenes>
</root>

I have used the following expression to extract the artist of device 6.

string(/root/devices/device[6]/states/state[8]/@value)

I have also used the json version of the Vera status file with a command using the HTTP protocol with GET method and a jsonPATH expression...

$.devices[5].states[7].value

to successfully return the artist value to a sensor and update a label on my UI. Although this works, I would like to avoid constantly polling Vera.

I think I am now at a point where I will need to dig into the Vera protocol, unless I am still missing something...

Thanks for listening...

BTW I am using...
OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
on a Win7
preview designer
iOS UI

Posted by skogen75 at Feb 20, 2014 04:21

Please turn on Vera logging to debug level.
The stacktrace assume that the XML is not received correct.

Posted by mredeker at Feb 22, 2014 19:31

Okay, DEBUG is turned on, here is some of what I see in the Vera log...

DEBUG 2014-02-22 13:15:50,708 (Vera): received message: null
DEBUG 2014-02-22 13:15:50,708 (Vera): Received Vera result:
null
WARN 2014-02-22 13:15:50,708 (Vera): Could not parse Vera status file.
java.lang.NullPointerException
	at java.io.StringReader.<init>(StringReader.java:33)
	at org.openremote.controller.protocol.vera.VeraClient.parseChangedStatus(VeraClient.java:180)
	at org.openremote.controller.protocol.vera.VeraClient.run(VeraClient.java:103)
ERROR 2014-02-22 13:15:51,720 (Vera): IOException when executing HTTP method
org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.0.108:3480 refused
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)
	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:731)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700)
	at org.openremote.controller.protocol.vera.VeraClient.requestStatus(VeraClient.java:244)
	at org.openremote.controller.protocol.vera.VeraClient.run(VeraClient.java:100)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
	... 9 more
DEBUG 2014-02-22 13:15:51,728 (Vera): received message: null
DEBUG 2014-02-22 13:15:51,728 (Vera): Received Vera result:
null
WARN 2014-02-22 13:15:51,729 (Vera): Could not parse Vera status file.
java.lang.NullPointerException
	at java.io.StringReader.<init>(StringReader.java:33)
	at org.openremote.controller.protocol.vera.VeraClient.parseChangedStatus(VeraClient.java:180)
	at org.openremote.controller.protocol.vera.VeraClient.run(VeraClient.java:103)
DEBUG 2014-02-22 13:15:52,767 (Vera): received message: <?xml version="1.0"?>
<root full="1" version="*1.5.622*" model="MiCasaVerde VeraLite" zwave_heal="1" temperature="F" serial_number="35014493
" fwd1="fwd1.mios.com" fwd2="fwd2.mios.com" ir="0" irtx="" loadtime="1393100141" dataversion="100141036" state="1" comment="ZWave: Configuring ZWave devices">
<sections>
<section name="My Home" id="1"></section>
</sections>
<rooms>
<room name="LivingRoom" id="1" section="1"></room>
</rooms>
<scenes>
<scene active="1" name="AllLights_Off" id="6" room="1"></scene>
<scene active="0" name="GoodWeekdayMorning" id="4" room="1"></scene>
<scene active="0" name="Post-Sunset" id="3" room="1"></scene>
<scene active="0" name="Pre-Sunset" id="7" room="1"></scene>
<scene active="0" name="Seven-Thirty_PM" id="2" room="1"></scene>
<scene active="1" name="SunriseLightOff" id="5" room="1"></scene>
<scene active="0" name="Sunset" id="1" room="1"></scene>
</scenes>
<devices>
<device name="Living Room" altid="00:04:20:05:ce:4c" id="6" category="0" subcategory="-1" room="1" parent="5" status="1"></device>
<device name="LivingRoom_GE_Dimmer" altid="2" id="3" category="2" subcategory="0" room="1" parent="1" status="0" level="0"></device>
<device name="LivingRoom_PlugIn_Dimmer" altid="3" id="4" category="2" subcategory="0" room="1" parent="1" status="0" level="0"></device>
<device name="SqueezeBox Controller" altid="" id="5" category="0" subcategory="-1" room="1" parent="0" ip="192.168.0.196"></device>
</devices>
<categories>
<categorie name="Dimmable Light" id="2"></categorie>
</categories>
</root>

DEBUG 2014-02-22 13:15:52,767 (Vera): Received Vera result:
<?xml version="1.0"?>
<root full="1" version="*1.5.622*" model="MiCasaVerde VeraLite" zwave_heal="1" temperature="F" serial_number="35014493
" fwd1="fwd1.mios.com" fwd2="fwd2.mios.com" ir="0" irtx="" loadtime="1393100141" dataversion="100141036" state="1" comment="ZWave: Configuring ZWave devices">
<sections>
<section name="My Home" id="1"></section>
</sections>
<rooms>
<room name="LivingRoom" id="1" section="1"></room>
</rooms>
<scenes>
<scene active="1" name="AllLights_Off" id="6" room="1"></scene>
<scene active="0" name="GoodWeekdayMorning" id="4" room="1"></scene>
<scene active="0" name="Post-Sunset" id="3" room="1"></scene>
<scene active="0" name="Pre-Sunset" id="7" room="1"></scene>
<scene active="0" name="Seven-Thirty_PM" id="2" room="1"></scene>
<scene active="1" name="SunriseLightOff" id="5" room="1"></scene>
<scene active="0" name="Sunset" id="1" room="1"></scene>
</scenes>
<devices>
<device name="Living Room" altid="00:04:20:05:ce:4c" id="6" category="0" subcategory="-1" room="1" parent="5" status="1"></device>
<device name="LivingRoom_GE_Dimmer" altid="2" id="3" category="2" subcategory="0" room="1" parent="1" status="0" level="0"></device>
<device name="LivingRoom_PlugIn_Dimmer" altid="3" id="4" category="2" subcategory="0" room="1" parent="1" status="0" level="0"></device>
<device name="SqueezeBox Controller" altid="" id="5" category="0" subcategory="-1" room="1" parent="0" ip="192.168.0.196"></device>
</devices>
<categories>
<categorie name="Dimmable Light" id="2"></categorie>
</categories>
</root>

It looks like sometimes the connection is refused and sometimes it is successful but doesn't return the entire XML file. For instance, in the log file the device with id="6" has more attributes that are not listed as in the full XML file shown in the post above.

Any idea why the full XML file is not accessable?

Thanks for your help in this.

Erik

Posted by skogen75 at Feb 22, 2014 20:27

The full file is only requested upon startup of the Vera client.
All subsequent requests only ask for the diff to the previous request to limit polling frequency and data to parse.
I can't say why you receive the "connection refused" if in general the connection does work.

Posted by mredeker at Feb 22, 2014 20:42

Hi Marcus,

I just tested getting the attrubute altid="00:04:20:05:ce:4c" using a Vera command and the GENERIC_STATUS command linked to a sensor and a label on my UI and it worked (I got the altid value).

So, I guess the problem is that I can only retrieve what is listed in this smaller XML file?

Any idea how I can get Vera/OR to return more information?

Thanks again.

Posted by skogen75 at Feb 22, 2014 20:42

Am I correct is stating that when I retrieve the Vera XML file using...

http://<veraip>:3480/data_request?id=status&output_format=xml

it is different from what Vera sends OR (or OR requests from Vera)?

Is there a way to have Vera send OR (or OR request from Vera) the full XML file at the start instead of the smaller XML file which contains much less information?

Stated another way...
If one compares the XML data from my post on Feb 20th to the XML data which shows up in the OR Vera log, they are totally different, with the latter containing much less information.
Is this the expected behavior? and is there a way to utilize the more information rich XML file?

Thanks again, I hope this makes sense.

Posted by skogen75 at Feb 22, 2014 21:08

The first request OR does is the full status: http://a.b.c.d:3480/data_request?id=lu_sdata&output_format=xml
All following requests only request changed data: http://a.b.c.d:3480/data_request?id=lu_sdata&output_format=xml&loadtime=<lastLoadtime>&dataversion=<lastDataversion>&timeout=60&minimumdelay=500
You can read on the VERA wiki about the partial request: http://wiki.micasaverde.com/index.php/UI_Notes
You will need your VERA to send the partial XML when your data (CurrentTitle, CurrentArtist, Volume) changes. Maybe a setting in the plugin?
We do not support to query the full request once we started and assume that each VERA device is sending it's changed data in the partial request.

Posted by mredeker at Feb 22, 2014 21:32

Ahh...It's all becoming clear now. Here is where I went wrong.

I used the command...

http://<veraip>:3480/data_request?id=status&output_format=xml

NOTE: the id=status which return all the current UPnP variables. This is what the how-to states to use to gather the information one needs regarding Vera.

What is actually used by OR is the following...

http://<veraip>:3480/data_request?id=sdata&output_format=xml

NOTE: the id=sdata which returns an abbreviated form of the user_data and status. Which means that I was trying to request information that is not present in the sdata but is present in the status which was the problem.

Now that that is sorted out, I wonder if I can modify (add to) the data that vera uses in the id=sdata XML. But I suppose that is a question for the MiCasaVerde forum.

Maybe the how-to should be modified to direct users to look at the id=sdata instead of id=status?

In a somewhat unrelated topic...can one have a sensor linked to a command without a polling interval? Let's say that I only want a sensor to poll when I press a button or a rule is triggered, is it possible?

Thanks for your help Marcus, this mystery is solved.

Posted by skogen75 at Feb 23, 2014 00:10

In that case you could use the HTTP protocol and parse the status file yourself. But you need to give a polling interval.
Executing a command which is used to update a sensor from a rule is not possible.

Posted by mredeker at Feb 23, 2014 19:27

Hello Erik,

Nice to hear you got it working. Feel free to add your findings to the how to page, or modify the how-to content if you feel it necessary. Appreciate the help.

Thanks,

– Juha

Posted by juha at Mar 05, 2014 17:15
Document generated by Confluence on Jun 05, 2016 09:36