[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re: Latest in UK retrofit light dimmers/controllers
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
WWVzIHRoZSBIQzIgY2FuIGxpbmsgd2l0aCBhbiBBUEkgdmlhIEhUVFAuIA0KDQogSSB1c2Ug
SG9tZVZpc2lvbiB0byBjb250cm9sIG15IG5vZGVzIHZpYSBhIGN1c3RvbSBsaWdodGluZyBt
YWNyby4gIEEgdHlwaWNhbCBodHRwIGNvbW1hbmQgdG8gc3dpdGNoIGRldmljZSA0IG9uIHRv
IDc1JSB3b3VsZCBsb29rIGxpa2UgdGhpcw0KIA0KDQogaHR0cDovL2FkbWluOmFkbWluQDE5
Mi4xNjguMS4xNTEvYXBpL2NhbGxBY3Rpb24/ZGV2aWNlSUQ9NCZuYW1lPXNldFZhbHVlJmFy
ZzE9IGh0dHA6Ly9hZG1pbjphZG1pbkAxOTIuMTY4LjAuMTU1L2FwaS9jYWxsQWN0aW9uP2Rl
dmljZUlEPTQmbmFtZT1zZXRWYWx1ZSZhcmcxPTEwMDc1DQoNCiANCg0KIEkgYWxzbyBoYXZl
IGEgc2NlbmUgc2V0dXAgaW4gbXkgRmliYXJvIHRvIHVwZGF0ZSB0aGUgSG9tZVZpc2lvbiB2
YXJpYWJsZXMgd2l0aCB0aGUgdGVtcGVyYXR1cmUgcmVhZGluZ3MgZnJvbSBteSBEYWxsYXMg
dGVtcGVyYXR1cmUgc2Vuc29ycyBvbiBjaGFuZ2UuICBJdCBsb29rcyBsaWtlIHRoaXMgLQ0K
IA0KDQogLS1bWw0KICUlIHByb3BlcnRpZXMNCiA3OSB2YWx1ZQ0KIDgwIHZhbHVlDQogODEg
dmFsdWUNCiAlJSBnbG9iYWxzDQogLS1dXQ0KIA0KDQogbG9jYWwgdHJpZ2dlciA9IGZpYmFy
bzpnZXRTb3VyY2VUcmlnZ2Vy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WQgdGhlIHNjZW5lDQogZW5kDQogICAtLVNlbmQgZGF0YSB2aWEgaHR0cA0KIGh0dHA6cmVx
dWVzdCgiaHR0cDovLzE5Mi4xNjguMS4xODozMDA1Iiwge29wdGlvbnMgPSB7bWV0aG9kID0g
J1BPU1QnLCBoZWFkZXJzID0ge30sIGRhdGEgPSBwb3N0ZGF0YSwgdGltZW91dCA9IDUwMDB9
LCANCiBlcnJvciA9IGZ1bmN0aW9uKGVycikgDQogcHJpbnQoJ1tFUlJPUl0gJyAuLiBlcnIp
DQogZW5kfSkNCiBlbmQNCiANCg0KIEkgZG8gc29tZXRoaW5nIHNpbXVsYXIgdG8gdXBkYXRl
IHRoZSBIb21lVmlzaW9uIGxpZ2h0aW5nIHRhYmxlIHdpdGggbGlnaHQgbGV2ZWxzIGFsc28u
DQogDQoNCiBZb3UgYXJlIHdlbGNvbWUgdG8gY29udGFjdCBtZSBvZmYgbGlzdCBpZiB5b3Ug
d2FudCB0byBUZWFtVmlld2VyIGludG8gbXkgRmliYXJvIHRvIGhhdmUgYSBsb29rPw0KIA0K
DQogU3RldmUNCg0K
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type: text/html; charset=UTF-8
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>
<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>
</head>
<body>
<!-- **begin egp html banner** -->
<br><br>
<!-- **end egp html banner** -->
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. 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&name=setValue&arg1=100">http://admin:admin@xxxxxxxxxxxxx/api/callAction?deviceID=4&name=setValue&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 temperatu
re sensors on change. 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 =
""</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-spa
ce:pre;"> </span>postdata = "Var 4 : " ..
TempLevel .. "=="</div><div>
</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-spa
n" 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 =
"Var 42 : " .. TempLevel ..
"=="</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 acti
on<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><d
iv><span class="Apple-tab-span"
style="white-space:pre;"> </span>postdata =
"Var 43 : " .. TempLevel ..
"=="<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> --Send
data via http</div><div>http:request("http://192.168.1.18:3005",
{options = {method = 'POST', headers = {}, data = postdata,
timeout = 5000}, </div><div>error =
function(err) </div><div>print('[ERROR] &#
39; ..
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
>
<!-- **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: email@xxxxxxx <hr style="height:2px ;
border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- **begin egp html banner** -->
<br><br>
<tt>
<*> Join the Automated Home Forums<BR>
<a href="http://www.automatedhome.co.uk/vbulletin/">http://www.automatedhome.co.uk/vbulletin/</a><BR>
<BR>
<*> UKHA_D Mailing list in association with:<BR>
<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=165216/stime=1429009556"
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=X3oDMTJlbTNzZ2IzBF9TAzk3MzU5NzE0BGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQyOTAwOTU1Ng--"
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=X3oDMTJmY2sxdDVxBF9TAzk3MzU5NzE0BGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzE0MjkwMDk1NTY-"
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=X3oDMTJkNDNjNXZwBF9TAzk3NDc2NTkwBGdycElkAzExMDk2MzkEZ3Jwc3BJZAMxNzA1MDQxOTkyBHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDI5MDA5NTU2"
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;"> •
<a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html"
style="text-decoration: none;">Privacy</a> •
<a href="mailto:ukha_d-unsubscribe@xxxxxxx?subject=Unsubscribe"
style="text-decoration: none;">Unsubscribe</a>
• <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>
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV--
UKHA_D Main Index |
UKHA_D Thread Index |
UKHA_D Home |
Archives Home
|