User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Mon Jun 22, 2015 10:04 pm

can I see a screenshot of the family manager lighting and your web app lighting scene

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Thu Jul 16, 2015 10:31 pm

Using the latest version of the Vera Device Driver and a Vera Edge controller...

It seems as if status is being reported for only one of my devices. The rest of the devices don't do anything.

Looking at the Vera Driver, in the Devices (Defined in Family Manager) tab, all the Z-Wave devices except for one have a blank family, and a blank status, value, and category. One device, which happens to be one of four Z-Wave door locks, is correctly populated with a family of "Security" and a category of 7, and the status and value change appropriately when the lock is locked or unlocked.

The events in the log are full of items such as:

7/16/2015 7:21:44 PM ReadConfiguration Node: <device name="Study North Shades" altid="6" id="7" category="3" subcategory="0" room="1" parent="1" status="1" state="-1" comment=""></device>

7/16/2015 7:21:44 PM ReadConfiguration Node: <device name="Guest House Lock" altid="7" id="8" category="7" subcategory="0" room="2" parent="1" pincodes="<VERSION=3>151,1,,2015-07-03 17:44:06,****,Code 1;2,1,,,****,Code 2;3,1,2015-07-03 17:50:45,, [deleted pin codes] ;" status="1" batterylevel="82" locked="1" state="-1" comment=""></device>

[The above lock does not have a status in the Devices tab, nor does it have *any* security_ server variables.]

- Roman
Roman

Art Dustman
Expert
Expert
Posts: 614
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Thu Jul 16, 2015 11:15 pm

Are you running the latest Vera firmware? There was a change in the xml a few months back.

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Thu Jul 16, 2015 11:33 pm

I am running the latest firmware: 1.7.1248

From the looks of the MLServer log, it looks like MLServer is parsing the XML. It's just not doing anything with the input it receives (except for the single lock).

One thing I might add: the lock that is behaving correctly was added/paired after I upgraded the MLServer Vera device driver; the other devices were there before the update. Perhaps that is related, perhaps it isn't.

- Roman
Roman

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Thu Jul 16, 2015 11:38 pm

Watch the vera driver event log closely when you tell it to do a full refresh to make sure there are no errors while parsing the xml. If there are now errors logged then I'd need you to capture the xml from a full scan and email it to me so I can try parsing it here.

Art Dustman
Expert
Expert
Posts: 614
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Thu Jul 16, 2015 11:39 pm

Power down the Vera, remove the Vera from the setup in ml server , shut down ml server and start back up. Re-add the Vera. What happens?

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 12:42 am

CinemarDave wrote:Watch the vera driver event log closely when you tell it to do a full refresh to make sure there are no errors while parsing the xml. If there are now errors logged then I'd need you to capture the xml from a full scan and email it to me so I can try parsing it here.
I get:

7/16/2015 9:35:02 PM ParseBuffer Error at ParseBuffer at line #941 - Object reference not set to an instance of an object.

right at the start of the refresh. The precise sequence being:

7/16/2015 9:34:56 PM GrabXML http://192.168.2.65:3480/data_request?i ... format=xml
7/16/2015 9:35:02 PM Parse Event Response
7/16/2015 9:35:02 PM ParseBuffer Error at ParseBuffer at line #941 - Object reference not set to an instance of an object.
7/16/2015 9:35:02 PM GrabXML http://192.168.2.65:3480/data_request?i ... format=xml
7/16/2015 9:35:02 PM Parse Event Response
.... and no errors after this.

I suppose that you want to have the XML for:

http://192.168.2.65:3480/data_request?i ... format=xml

since that's where the error came in. And I believe this is it:

<root full="0" loadtime="1437095703" dataversion="95671907" Using_2G="0" state="-1" comment="">
<devices>
<device altid="4" id="5" subcategory="2" room="3" parent="1" status="0" state="-1" comment=""/>
<device altid="2" id="3" subcategory="2" room="2" parent="1" status="0" state="-1" comment=""/>
<device altid="3" id="4" subcategory="0" room="2" parent="1" status="1" state="-1" comment=""/>
<device altid="15" id="29" subcategory="2" room="6" parent="1" status="0" state="-1" comment=""/>
<device altid="8" id="9" subcategory="2" room="4" parent="1" status="0" state="-1" comment=""/>
<device altid="9" id="10" subcategory="1" room="5" parent="1" light="4" status="1" kwh="0.2980" state="-1" comment="" watts="3"/>
<device altid="5" id="6" subcategory="0" room="1" parent="1" status="1" state="-1" comment=""/>
<device altid="6" id="7" subcategory="0" room="1" parent="1" status="1" state="-1" comment=""/>
</devices>
</root>

It's not a big installation or anything. I use a Vantage to control lighting, and Z-Wave only for odds and ends.

- Roman
Roman

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 12:14 pm

More changes to their XML structure. Nothing like a documented standard that is a moving target. Install the driver I just released and see if it can make a full parse. If it doesn't let me know the line number it fails on.

Art Dustman
Expert
Expert
Posts: 614
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 12:25 pm

For future reference, I have the Vera backing up every night and take an image right before any updates. Never update before you are going away and plan on the update breaking something. I then test a few devices before I call it good. I've noticed too that some changes don't appear until you exclude and re-include devices. Their updates for GDZ001 garage door opener devices is a good example. the devices were working on the update from May, then just stopped working one day without me doing anything. Had to exclude and re-include at which point the device now had different icons and layout in their web ui; and still didn't work. Had to re-exclude and include a few times before it worked.

They made a pledge to be more aggressive, but that came with being sloppy on documenting changes; let alone alerting users.

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 12:38 pm

CinemarDave wrote:More changes to their XML structure. Nothing like a documented standard that is a moving target. Install the driver I just released and see if it can make a full parse. If it doesn't let me know the line number it fails on.
If anything, it is "worse" now. :-( No device is being updated.

When I hit refresh, the log entries say:

7/17/2015 9:35:31 AM Parse Event Response
7/17/2015 9:35:31 AM ParseBuffer Error at ParseBuffer at line #963 - Object reference not set to an instance of an object.
7/17/2015 9:35:31 AM GrabXML http://192.168.2.65:3480/data_request?i ... format=xml

[In that order]

The XML appears to be:

<?xml version="1.0"?>
-<root comment="" state="-1" Using_2G="0" dataversion="145768210" loadtime="1437145768" full="0">
-<devices>
<device comment="" state="-1" status="0" parent="1" room="2" subcategory="2" id="3" altid="2"/>
<device comment="" state="-1" status="1" parent="1" room="2" subcategory="0" id="4" altid="3"/>
<device comment="" state="-1" status="0" parent="1" room="6" subcategory="2" id="29" altid="15"/>
<device comment="" state="-1" status="0" parent="1" room="4" subcategory="2" id="9" altid="8"/>
<device comment="" state="-1" status="1" parent="1" room="5" subcategory="1" id="10" altid="9" kwh="0.3340" light="4" watts="3"/>
<device comment="" state="-1" status="1" parent="1" room="1" subcategory="0" id="7" altid="6"/>
</devices>
</root>

Thanks,
Roman
Roman

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 12:49 pm

This is silly. This time the Vera did not report any of its room names. Do me a favor. Open this url in a browser. http://192.168.2.65:3480/data_request?i ... format=xml and capture the resulting xml to a file and send it to me.

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Fri Jul 17, 2015 2:16 pm

CinemarDave wrote:This is silly. This time the Vera did not report any of its room names. Do me a favor. Open this url in a browser. http://192.168.2.65:3480/data_request?i ... format=xml and capture the resulting xml to a file and send it to me.
Done via PM.

- Roman
Roman

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Wed Jul 29, 2015 2:16 pm

Using the latest version of MLServer and the Vera Device Driver.

It appears that the MLServer variables for Vera devices are not being updated. Using one specific example, for a lock, security_30_status, security_30_locked, and security_30_batterylevel are not being updated when the status of the lock changes. Looking at the logs, there are no entries in the log file indicating errors, and the lock status is being reported. The lock status being reported is:

7/29/2015 11:13:51 AM ReadConfiguration Node: <device altid="16" id="30" subcategory="0" room="1" parent="1" pincodes="<VERSION=3>131,[bunch of pin code stuff]" batterylevel="84" state="-1" comment="" locked="1"></device>

- Roman
Roman

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Wed Jul 29, 2015 2:59 pm

Look at the devices as defined in the Vera driver. If you see missing entries in the Family or Category columns then you must

Delete all the Vera associated devices in Family Manager / Families
Then do a refresh from the Vera driver / controllers tab.

This will get everything back in sync.
You'll only have to do this one time.

RZajcew
Intermediate
Intermediate
Posts: 387
Joined: Mon Jul 21, 2008 7:31 pm
Contact: Send private message

Re: Mi Casa Verde Vera Device Driver

Wed Jul 29, 2015 4:22 pm

That worked. Thank you.

- Roman
Roman

Return to “MLServer 4 Device Drivers”

Who is online

Users browsing this forum: No registered users and 3 guests