[Message Prev][Message Next][Thread Prev][Thread
Next][Message Index][Thread Index]
Re: xAP Floorplan
A new raw message function sounds great when you can get time to do
it!
Could you do both xAP and xPL functions? Even if it were just a simple
sendRawxAP() function where you had to fully construct the message
including
all the header info as opposed to passing in arguments, that would do the
trick.
In the meantime I'll see if I can get something running using winsock....
>>>>I'm not sure why floorplan messages are not getting
translated.
Seems to be anything *sent* from Floorplan, so as you say, sounds like some
sort of loop protection kicking in. It's no big deal as I can see the
messages in an xPL viewer - it would just be handy to see them all in one
place (xAP Viewer).
I'd just like to say thanks again for all your work on your xAP apps (and
all other xAP / xPL developers too)! As time goes by and I make progress
in
pulling all of my various projects together it really amazes me how well
this stuff works!
I've just spent the past couple of days playing with a load of HomeEasy kit
(thanks to B&Q 15% off sale) and the RFXComm transmitter and have now
got it
all tied in with my VP1000 alarm system (using an RFXComm receiver) so that
tvs, videos, set-top boxes, etc can be powered off when we're out to save
electricity. Floorplan is also playing "occupancy" scenes with
the lights if
it's dark too......and there's a load of other logic I'm playing around
with
as well.
Still got loads to do though, a handful of Maxbotix sensors and a
controller
board are waiting to be deployed to monitor water butts in my garden, plus
I've got some RFID kit on order to aid with occupancy detection (also think
I can use it to remind me to put the rubbish bins out with some suitable
logic)........when will it end?!?!?
Martyn
----- Original Message -----
From: James
To: xap_automation@xxxxxxx
Sent: Thursday, December 25, 2008 11:16 PM
Subject: Re: [xap_automation] xAP Floorplan
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
------------------------------------
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|