The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Anyone using a MiCasaVerde Vera ?



--------------040302090008090003010909
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 22/01/2014 14:10, Martyn Wendon wrote:
>
>
>
>
> Will be good to try your version, Iâ??ll just need to work out a
way to
> leave mine in place as well, or maybe merge aspects of the two
â?? I
> suspect weâ??ll probably have used different addressing and UIDs
- i.e.
> yours will be â??correctâ?? and mine will be bodged Winking
smile
>
>
>
Mine generates unique UID's and source names based on the MAC address,
device ID, room name and device name.  You could alter this in code
however.  I know one of the things I still needed to do is to allow
editing of key parameter values from a Vera device that appears in the
UI.    Here's a sample xAP message from Z-Wave

xap-header
{
v=13
hop=1
uid=FF.01CB5FBF:0022
class=xAPBSC.info
source=UKUSA.Vera.5FBF:Dining Room.Centre Lights
}
output.state
{
State=ON
Level=100/100
}

It will be awkward to get both running together as there is no xAP hub
on Vera so both can't listen on port 3639.  You'd really have to merge
the two....    But .. actually because you are only sending xAP messages
you could run both.   I have not looked at the current resource usage of
my code in terms of memory / CPU.    I'll likley send you the code
tonight 'as is' to peruse as I know you're well versed in xAP and my
awful coding style ;-)  and then work on the refinements gradually.  Due
to unfamiliarity with Vera I know I kludged some UPnP schema aspects
which might cause issues if you're using UPnP control.

K


--------------040302090008090003010909
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">


<!-- **begin egp html banner** -->

<br><br>

<!-- **end egp html banner** -->



On 22/01/2014 14:10, Martyn Wendon wrote:<br>
<span style="white-space: pre;">&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Will be good to try your version, Iâ??ll just need to work
out
a way to<br>
&gt; leave mine in place as well, or maybe merge aspects of the
two â?? I<br>
&gt; suspect weâ??ll probably have used different addressing and
UIDs - i.e.<br>
&gt; yours will be â??correctâ?? and mine will be bodged
Winking smile<br>
&gt; <br>
&gt; <br>
&gt; </span><br>
Mine generates unique UID's and source names based on the MAC
address, device ID, room name and device name.  You could alter
this
in code however.  I know one of the things I still needed to do
is
to allow editing of key parameter values from a Vera device that
appears in the UI.    Here's a sample xAP
message from Z-Wave<br>
<br>
xap-header<br>
{<br>
v=13<br>
hop=1<br>
uid=FF.01CB5FBF:0022<br>
class=xAPBSC.info<br>
source=UKUSA.Vera.5FBF:Dining Room.Centre Lights<br>
}<br>
output.state<br>
{<br>
State=ON<br>
Level=100/100<br>
}<br>
<br>
It will be awkward to get both running together as there is no xAP
hub on Vera so both can't listen on port 3639.  You'd really
have to
merge the two....    But .. actually
because you are only sending
xAP messages you could run both.   I have not looked
at the current
resource usage of my code in terms of memory /
CPU.    I'll likley
send you the code tonight 'as is' to peruse as I know you're well
versed in xAP and my awful coding style ;-)  and then work on
the
refinements gradually.  Due to unfamiliarity with Vera I know I
kludged some UPnP schema aspects which might cause issues if you're
using UPnP control.<br>
<br>
K<br>
<br>




<!-- **begin egp html banner** -->

<br>


<br>

<!-- **end egp html banner** -->


<div width="1" style="color: white; clear:
both;"/>__._,_.___</div>



<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=4844/stime=1390400934";
width="1" height="1"> <br>

<!-- **end egp html banner** -->


<!-- **begin egp html banner** -->

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmYTZyOWlwBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzOTA0MDA5MzQ-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJkN2I5bml1BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzkwNDAwOTM0";>
Visit Your Group
</a>
<a href="http://info.yahoo.com/legal/us/yahoo/utos/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

<!-- **end egp html banner** -->


<div style="color: white; clear:
both;"/>__,_._,___</div>
</body>
</html>

--------------040302090008090003010909--

xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.