[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAP Floorplan
--Apple-Mail-4-684220519
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
Hi,
Currently there is no way to send raw messages, I'll have to add a new
function for that. It would be slightly more involved than your
example as you would have to add a UID too as you wouldn't be able to
use floorplan's uid. If you need to send it now then you could just
add a winsockobject t the script and use that to send the message. As
it's just sending you wouldnt need to bind it or anything, just set
udp, to 3639 and remote ip of 255.255.255.255 and make the raw message.
I'm not sure why floorplan messages are not getting translated. It
could be something in the loop protection kicking in and dropping the
message. I had lots of issues with messages getting into infinite
loops in earlier Floorplans with the translator so there is an array
of protection now to stop it happening. I'll have to look into it
James
On 25 Dec 2008, at 09:08, Martyn Wendon wrote:
>
> Hi James,
>
> Thanks for that, it gives me a few ideas.
>
> I noticed that if I send an xpl message from a script in Floorplan
> then it doesn't get translated and therefore doesn't show up in xFx
> Viewer? It would be handy if this could happen to aid
> troubleshooting.
>
> Also, when I use xap.sendxap in a script, is there an optional
> parameter that I can pass to it to fake the source?
>
> e.g.
>
> xap.sendxap
> tmp
>
,"message.display","mi4.IntranetLaunch.*","ahs.HomeEasy.ahshaserver"
>
> If not, it would be useful to be able to do this on the odd occasion
> that I need to send a message from Floorplan to a device that
> usually filters out all messages apart from those from specific
> sources.
>
>
> Thanks,
>
> Martyn
> ----- Original Message -----
> From: James
> To: xap_automation@xxxxxxx
> Sent: Thursday, December 25, 2008 12:12 AM
> Subject: Re: [xap_automation] xAP Floorplan
>
> Hi,
>
> dummy device plan is a good one, as the homeeasy is only one way
> there is not much you can do about triggering things on messages.
> You don't have to send xAP messages to update the device on the map,
> you can just use the setdisplayvalue function. That way you can
> avoid the additional messages. You can then use the custom button
> functions to trigger certain messages to control things. (or you
> could get fancy and do some custom html as the popup). This all
> assumes that the schema is odd. If not why not just make a raw
> device to receive the xPL messages, look on the guides on mi4 for
> how to do this. You'll need the xpl receicing support turned on for
> this to work as well as an xpl hub on the pc running Floorplan.
>
> James
>
>
> On 23 Dec 2008, at 14:45, Martyn Wendon wrote:
>
>> I've started to use some of the HomeEasy stuff in my HA setup,
>> using Mal's
>> excellent xPL->RFXCom gateway.
>>
>> From within Floorplan I can happily generate xPL messages from
>> various
>> scripts to turn sockets, lights, etc on and off in response to
>> events.
>>
>> Since most of the HomeEasy stuff is only one-way (i.e. you can
send
>> it
>> commands but can't query it's current status), how can I best
>> represent an
>> item like a light fitting on a Floorplan map? So that when I send
>> it a
>> command e.g. "on" the light fitting on the map comes on
and if I
>> click on
>> the light fitting on the map it will toggle on / off?
>>
>> I thought about creating a raw "dummy" xAP device, which
I can then
>> drop on
>> a map, then in my scripts that send the raw xPL messages I can
also
>> send a
>> raw xAP message that updates the pseudo xAP device?
>>
>> Would that be the best way, or is there something else I can do?
>>
>> Cheers,
>>
>> Martyn
>>
>>
>
>
>
--Apple-Mail-4-684220519
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit
<html><body style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; ">
Hi,<div><br></div><div>Currently there is no way to
send raw messages, I'll have to add a new function for that. It
would be slightly more involved than your example as you would have to add
a UID too as you wouldn't be able to use floorplan's uid.
If you need to send it now then you could just add a
winsockobject t the script and use that to send the message. As it's just
sending you wouldnt need to bind it or anything, just set udp, to 3639 and
remote ip of 255.255.255.255 and make the raw
message.</div><div><br></div><div>I'm not
sure why floorplan messages are not getting translated. It could be
something in the loop protection kicking in and dropping the message. I had
lots of issues with messages getting into infinite loops in earlier
Floorplans with the translator so there is an array of protection now to
stop it happening. I'll have to look into
it</div><div><br></div><div>James</div&g
t;<div><br><div><div>On 25 Dec 2008, at 09:08,
Martyn Wendon wrote:</div><br
class="Apple-interchange-newline"><blockquote
type="cite"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family:
Helvetica; font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal; orphans:
2; text-align: auto; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
0px; -webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0; "><div
style="background-color: rgb(255, 255, 255); "><div
id="ygrp-mlmsg" style="width: 655px; position: relative;
font-size: 13px; font-family: arial, helvetica, clean, sans-serif;
"><div id="ygrp-msg" sty
le="width: 470px; margin-top: 0px; margin-right: 0px; margin-bottom:
0px; margin-left: 0px; padding-top: 0px; padding-right: 25px;
padding-bottom: 0px; padding-left: 0px; float: left; z-index: 1;
line-height: 1.22em; "><div id="ygrp-text"
style="line-height: 1.22em; font-family: Georgia; "><div
style="line-height: 1.22em; margin-top: 0px; margin-right: 0px;
margin-bottom: 1em; margin-left: 0px; "><br
class="webkit-block-placeholder"></div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">Hi
James,</font></div><div style="line-height: 1.22em;
"><font face="Arial" size="2"
style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">
;Thanks for that, it gives me a few ideas.</font></div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">I noticed
that if I send an xpl message from a script in Floorplan then it doesn't
get translated and therefore doesn't show up in xFx Viewer? It
would be handy if this could happen to aid
troubleshooting.</font></div><div style="line-height:
1.22em; "><font face="Arial" size="2"
style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">Also, when I
use xap.sendxap in a script, is there an optional par
ameter that I can pass to it to fake the
source?</font></div><div style="line-height: 1.22em;
"><font face="Arial" size="2"
style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em;
">e.g.</font></div><div style="line-height:
1.22em; "><font face="Arial" size="2"
style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">xap.sendxap
tmp,"message.<wbr style="line-height: 1.22em;
">display",<wbr style="line-height: 1.22em;
">"mi4.IntranetLau<wbr style="line-height: 1.22em;
">nch.*","ahs.<wbr style="line-height
: 1.22em; ">HomeEasy.<wbr style="line-height: 1.22em;
">ahshaserver"</font></div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em; ">If not, it
would be useful to be able to do this on the odd occasion that I need to
send a message from Floorplan to a device that usually filters out all
messages apart from those from specific
sources.</font></div><div style="line-height: 1.22em;
"><font face="Arial" size="2"
style="line-height: 1.22em;
"></font> </div><div
style="line-height: 1.22em; "><font face="Arial"
size="2" style="line-height: 1.22em;
"></font>
</div><div style="line-height: 1.22em; "><font
face="Arial" size="2" style="line-height: 1.22em;
">Thanks,</font></div><div style="line-height:
1.22em; "><br style="line-height: 1.22em;
">Martyn</div><blockquote style="border-left-color:
rgb(0, 0, 0); border-left-width: 2px; border-left-style: solid; margin-top:
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 4px; line-height:
1.22em; "><div style="font: normal normal normal
10pt/normal arial; line-height: 1.22em; ">----- Original Message
-----</div><div style="background-image: initial;
background-repeat: initial; background-attachment: initial;
-webkit-background-clip: initial; -webkit-background-origin: initial;
background-color: rgb(228, 228, 228); font: normal normal normal
10pt/normal arial; line-height: 1.22em; background-position: initial
initial; "><b style="line-height: 1.
22em; ">From:</b><span
class="Apple-converted-space"> </span><a
title="james.traynor@xxxxxxx" href="mailto:james.traynor@xxxxxxx"
style="line-height: 1.22em;
">James</a></div><div style="font: normal
normal normal 10pt/normal arial; line-height: 1.22em; "><b
style="line-height: 1.22em; ">To:</b><span
class="Apple-converted-space"> </span><a
title="xap_automation@xxxxxxx" href="mailto:xap_automation@xxxxxxx"
style="line-height: 1.22em; ">xap_automation@<wbr
style="line-height: 1.22em; ">yahoogroups.<wbr
style="line-height: 1.22em;
">.com</a></div><div style="font: normal normal
normal 10pt/normal arial; line-height: 1.22em; "><
;b style="line-height: 1.22em; ">Sent:</b><span
class="Apple-converted-space"> </span>Thursday,
December 25, 2008 12:12 AM</div><div style="font: normal
normal normal 10pt/normal arial; line-height: 1.22em; "><b
style="line-height: 1.22em; ">Subject:</b><span
class="Apple-converted-space"> </span>Re:
[xap_automation] xAP Floorplan</div><div style="line-height:
1.22em; "><br style="line-height: 1.22em;
"></div><div style="line-height: 1.22em;
">Hi,</div><div style="line-height: 1.22em;
"><br style="line-height: 1.22em;
"></div><div style="line-height: 1.22em;
">dummy device plan is a good one, as the homeeasy is only one way
there is not much you can do about triggering things on messages. You don't
have to send xAP messages to update the device on the map, you can jus
t use the setdisplayvalue function. That way you can avoid the additional
messages. You can then use the custom button functions to trigger
certain messages to control things. (or you could get fancy and do some
custom html as the popup). This all assumes that the schema is
odd. If not why not just make a raw device to receive the xPL
messages, look on the guides on mi4 for how to do this. You'll need the xpl
receicing support turned on for this to work as well as an xpl hub on the
pc running Floorplan.</div><div style="line-height: 1.22em;
"><br style="line-height: 1.22em;
"></div><div style="line-height: 1.22em;
">James</div><div style="line-height: 1.22em;
"><br style="line-height: 1.22em;
"></div><br style="line-height: 1.22em;
"><div style="line-height: 1.22em; "><div
style="line-height: 1.22em; ">On 23 Dec 2008, at 14:45, M
artyn Wendon wrote:</div><br
class="Apple-interchange-newline" style="line-height:
1.22em; "><blockquote type="cite"
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 4px; line-height: 1.22em; "><span
class="Apple-style-span" style="word-spacing: 0px; font:
normal normal normal 12px/normal Helvetica; text-transform: none; color:
rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing:
normal; border-collapse: separate; line-height: 1.22em; "><div
style="background-color: rgb(255, 255, 255); line-height: 1.22em;
"><div id="ygrp-mlmsg" style="font-size: 13px;
font-family: arial, helvetica, clean, sans-serif; line-height: 1.22em;
"><div id="ygrp-msg" style="line-height: 1.22em;
"><div id="ygrp-text" style="line-height: 1.22em;
font-family: Georgia; "><p style="line-height: 1.22em;
margin-top
: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px;
">I've started to use some of the HomeEasy stuff in my HA setup,
using Mal's<span class="Apple-converted-space"
style="line-height: 1.22em; "> </span><br
style="line-height: 1.22em; ">excellent xPL->RFXCom
gateway.<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; ">From within Floorplan I can
happily generate xPL messages from various<span
class="Apple-converted-space" style="line-height: 1.22em;
"> </span><br style="line-height: 1.22em;
">scripts to turn sockets, lights, etc on and off in response to
events.<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; ">Since most of the HomeEasy stuff
is only one-way (i.e. you can send it<span
class="Apple-converted-space" style="line-height: 1.22em;
">
</span><br style="line-height: 1.22em; ">commands but
can't query it's current status), how can I best represent an<span
class="Apple-converted-space" style="line-height: 1.22em;
"> </span><br style="line-height: 1.22em;
">item like a light fitting on a Floorplan map? So that when I send
it a<span class="Apple-converted-space"
style="line-height: 1.22em; "> </span><br
style="line-height: 1.22em; ">command e.g. "on" the
light fitting on the map comes on and if I click on<span
class="Apple-converted-space" style="line-height: 1.22em;
"> </span><br style="line-height: 1.22em;
">the light fitting on the map it will toggle on / off?<br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">I thought about creating a raw "dummy" xAP
device, which I can then drop on
<span class="Apple-converted-space" style="line-height:
1.22em; "> </span><br style="line-height:
1.22em; ">a map, then in my scripts that send the raw xPL messages
I can also send a<span class="Apple-converted-space"
style="line-height: 1.22em; "> </span><br
style="line-height: 1.22em; ">raw xAP message that updates the
pseudo xAP device?<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; ">Would that be the best way, or
is there something else I can do?<br style="line-height: 1.22em;
"><br style="line-height: 1.22em; ">Cheers,<br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">Martyn<span class="Apple-converted-space"
style="line-height: 1.22em; "> </span><br
style="line-height: 1.22em; "><br style="line-he
ight: 1.22em; "></p></div><span width="1"
style="color: white; line-height: 1.22em;
"></span></div></div></div></span></blockquote></div><br
style="line-height: 1.22em; "><span width="1"
style="color: white; line-height: 1.22em;
"></span></blockquote><div style="line-height:
1.22em; margin-top: 0px; margin-right: 0px; margin-bottom: 1em;
margin-left: 0px; "><br
class="webkit-block-placeholder"></div></div><span
width="1" style="color: white; line-height: 1.22em;
"></span></div></span></blockquote></div><br></div>
<span width="1" style="color:
white;"/>__._,_.___</span>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- **begin egp html banner** -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=4218/stime=1230247012"
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=X3oDMTJmMWgxdDJuBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMzAyNDcwMTI-">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=X3oDMTJkdnF0YWVxBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjMwMjQ3MDEy">
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/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** -->
<span style="color: white;"/>__,_._,___</span>
</body></html>
--Apple-Mail-4-684220519--
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|