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: Re: Latest in UK retrofit light dimmers/controllers



--_000_80D60DB9AAD24D1098B36EBAAEF94B76siliconpixelcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks Steve. Very interesting. Might take you up on the look around when
I=
'm back in.

Feel like a noob having to start all again! Certainly won't be running the
=
7km of Cat5e again though!!!

We're there any other systems you considered for your HA setup?

Not sure if I'll use HV again or not but I do know it very well even if
it'=
s getting a bit long in the tooth. Will really miss CBus though after
recon=
figuring this morning for the new owners. Hopefully Z wave will be just as
=
capable (certainly cheaper!)

Paul. (mobile)


On 14 Apr 2015, at 12:06, email@xxxxxxx<mailto:email@xxxxxxx>=
[ukha_d] <ukha_d@xxxxxxx<mailto:ukha_d@xxxxxxx>> wrote:



Yes the HC2 can link with an API via HTTP.

I use HomeVision to control my nodes via a custom lighting macro.  A
typica=
l http command to switch device 4 on to 75% would look like this

http://admin:admin@xxxxxxxxxxxxx/api/callAction?deviceID=3D4&name=3DsetValu=
e&arg1=3D<http://admin:admin@xxxxxxxxxxxxx/api/callAction?deviceID=3D4&name=
=3DsetValue&arg1=3D100>75

I also have a scene setup in my Fibaro to update the HomeVision variables
w=
ith the temperature readings from my Dallas temperature sensors on change.
=
It looks like this -

--[[
%% properties
79 value
80 value
81 value
%% globals
--]]

local trigger =3D fibaro:getSourceTrigger()
local http =3D net.HTTPClient()
local postdata =3D ""

if (trigger['type'] =3D=3D 'property') then
fibaro:debug('Source device =3D ' .. trigger['deviceID'])

if (trigger['deviceID'] =3D=3D 79) then -- Hot Water Tank
-- do action
local TempID =3D 79
local TempLevel=3D fibaro:getValue(TempID , 'value')
postdata =3D "Var 4 : " .. TempLevel .. "=3D=3D"

elseif (trigger['deviceID'] =3D=3D 80) then -- Water Closet
-- do action
local TempID =3D 80
local TempLevel=3D fibaro:getValue(TempID , 'value')
postdata =3D "Var 42 : " .. TempLevel .. "=3D=3D"

elseif (trigger['deviceID'] =3D=3D 81) then -- Lounge
-- do action
local TempID =3D 81
local TempLevel=3D fibaro:getValue(TempID , 'value')
postdata =3D "Var 43 : " .. TempLevel .. "=3D=3D"

else
-- some other device triggered the scene
end
--Send data via http
http:request("http://192.168.1.18:3005";,
{options =3D {method =3D 'POST', h=
eaders =3D {}, data =3D postdata, timeout =3D 5000},
error =3D function(err)
print('[ERROR] ' .. err)
end})
end

I do something simular to update the HomeVision lighting table with light
l=
evels also.

You are welcome to contact me off list if you want to TeamViewer into my
Fi=
baro to have a look?

Steve




--_000_80D60DB9AAD24D1098B36EBAAEF94B76siliconpixelcom_
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit





<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 http-equiv="Content-Type" content="text/html;
charset=us-ascii">
</head>
<body dir="auto">


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

<br><br>

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



<div>Thanks Steve. Very interesting. Might take you up on the look
around when I'm back in.&nbsp;</div>
<div><br>
</div>
<div>Feel like a noob having to start all again! Certainly won't be
running the 7km of Cat5e again though!!!</div>
<div><br>
</div>
<div>We're there any other systems you considered for your HA
setup?</div>
<div><br>
</div>
<div>Not sure if I'll use HV again or not but I do know it very well
even if it's getting a bit long in the tooth. Will really miss CBus though
after reconfiguring this morning for the new owners. Hopefully Z wave will
be just as capable (certainly cheaper!)<br>
<br>
<div>Paul. (mobile)</div>
<div><br>
</div>
</div>
<div><br>
On 14 Apr 2015, at 12:06, <a href="mailto:email@xxxxxxx";>email@xxxxxxx</a>
[ukha_d] &lt;<a href="mailto:ukha_d@xxxxxxx";>ukha_d@xxxxxxx</a>&gt;
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><style type="text/css">
<!--
#ygrp-mkp {
border: 1px solid #d8d8d8;
font-family: Arial;
margin: 10px 0;
padding: 0 10px;
}

#ygrp-mkp hr {
border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
color: #628c2a;
font-size: 85%;
font-weight: 700;
line-height: 122%;
margin: 10px 0;
}

#ygrp-mkp #ads {
margin-bottom: 10px;
}

#ygrp-mkp .ad {
padding: 0 0;
}

#ygrp-mkp .ad p {
margin: 0;
}

#ygrp-mkp .ad a {
color: #0000ff;
text-decoration: none;
}
-->
</style>Yes the HC2 can link with an API via HTTP.
<div><br>
</div>
<div>I use HomeVision to control my nodes via a custom lighting
macro. &nbsp;A typical http command to switch device 4 on to 75% would
look like this</div>
<div><br>
</div>
<div><a rel="nofollow" target="_blank"
href="http://admin:admin@xxxxxxxxxxxxx/api/callAction?deviceID=4&amp;name=setValue&amp;arg1=100";>http://admin:admin@xxxxxxxxxxxxx/api/callAction?deviceID=4&amp;name=setValue&amp;arg1=</a>75<br>
</div>
<div><br>
</div>
<div>I also have a scene setup in my Fibaro to update the HomeVision
variables with the temperature readings from my Dallas temperature sensors
on change. &nbsp;It looks like this -</div>
<div><br>
</div>
<div>
<div>--[[</div>
<div>%% properties</div>
<div>79 value</div>
<div>80 value</div>
<div>81 value</div>
<div>%% globals</div>
<div>--]]</div>
<div><br>
</div>
<div>local trigger = fibaro:getSourceTrigger()</div>
<div>local http = net.HTTPClient()</div>
<div>local postdata = &quot;&quot;</div>
<div><br>
</div>
<div>if (trigger['type'] == 'property') then</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>fibaro:debug('Source
device = ' .. trigger['deviceID'])</div>
<div><br>
</div>
<div>if (trigger['deviceID'] == 79) then -- Hot Water
Tank</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>-- do action<span
class="Apple-tab-span" style="white-space:pre;">
</span></div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempID =
79</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempLevel=
fibaro:getValue(TempID , 'value')</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>postdata = &quot;Var
4 : &quot; .. TempLevel .. &quot;==&quot;</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>elseif
(trigger['deviceID'] == 80) then -- Water Closet</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>-- do action<span
class="Apple-tab-span" style="white-space:pre;">
</span></div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempID =
80</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempLevel=
fibaro:getValue(TempID , 'value')</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>postdata = &quot;Var
42 : &quot; .. TempLevel .. &quot;==&quot;</div>
<div><br>
</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>elseif
(trigger['deviceID'] == 81) then -- Lounge</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>-- do action<span
class="Apple-tab-span" style="white-space:pre;">
</span></div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempID =
81</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>local TempLevel=
fibaro:getValue(TempID , 'value')</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>postdata = &quot;Var
43 : &quot; .. TempLevel .. &quot;==&quot;<span
class="Apple-tab-span" style="white-space:pre;">
</span></div>
<div><br>
</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>else</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"></span>-- some other device
triggered the scene</div>
<div>end</div>
<div>&nbsp; --Send data via http</div>
<div>http:request(&quot;<a href="http://192.168.1.18:3005";>http://192.168.1.18:3005</a>&quot;,
{options = {method = 'POST', headers = {}, data = postdata, timeout =
5000},&nbsp;</div>
<div>error = function(err)&nbsp;</div>
<div>print('[ERROR] ' .. err)</div>
<div>end})</div>
<div>end</div>
<div><br>
</div>
<div>I do something simular to update the HomeVision lighting table
with light levels also.</div>
<div><br>
</div>
<div>You are welcome to contact me off list if you want to TeamViewer
into my Fibaro to have a look?</div>
<div><br>
</div>
<div>Steve</div>
</div>

<div width="1" style="color: white; clear:
both;"></div>
</div>
</blockquote>




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

<br>


<br>

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


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





<div id="fromDMARC" style="clear:both; margin-top:
10px;">
<hr style="height:2px ; border-width:0; color:#E3E3E3;
background-color:#E3E3E3;">
Posted by: Paul Gale &lt;paul@xxxxxxx&gt;         <hr
style="height:2px ; border-width:0; color:#E3E3E3;
background-color:#E3E3E3;">
</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->


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

<br><br>
<tt>
&lt;*&gt; Join the Automated Home Forums<BR>
&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.automatedhome.co.uk/vbulletin/";>http://www.automatedhome.co.uk/vbulletin/</a><BR>
<BR>
&lt;*&gt; UKHA_D Mailing list in association with:<BR>
&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.automatedhome.co.uk";>http://www.automatedhome.co.uk</a><BR>
<BR>
<BR>
</tt>
<br><br>

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



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

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=1109639/grpspId=1705041992/msgId=165219/stime=1429015000";
width="1" height="1"> <br>

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


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

<br>






<!-- **begin egp html banner** -->
<div id="ygrp-vital" style="background-color: #f2f2f2;
font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding:
10px;">

<span id="vithd" style="font-weight: bold; color: #333;
text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/ukha_d/info;_ylc=X3oDMTJla3N2b3NyBF9TAzk3MzU5NzE0BGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQyOTAxNTAwMA--";
style="text-decoration: none;">Visit Your
Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display:
inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display:
inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/ukha_d/members/all;_ylc=X3oDMTJmMTk5cDc1BF9TAzk3MzU5NzE0BGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzE0MjkwMTUwMDA-";
style="text-decoration: none;">New
Members</a></span>
<span class="ct" style="color:
#ff7900;">1</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px;
margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJkcW40M29iBF9TAzk3NDc2NTkwBGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDI5MDE1MDAw";
style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png";
height="15" width="137" alt="Yahoo! Groups"
style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull;
<a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html";
style="text-decoration: none;">Privacy</a> &bull;
<a href="mailto:ukha_d-unsubscribe@xxxxxxx?subject=Unsubscribe";
style="text-decoration: none;">Unsubscribe</a>
&bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/";
style="text-decoration: none;">Terms of Use</a>
</div>
</div>

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

</div> <!-- ygrp-msg -->




<br>

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


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

--_000_80D60DB9AAD24D1098B36EBAAEF94B76siliconpixelcom_--

UKHA_D Main Index | UKHA_D Thread Index | UKHA_D 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.