xap-xlobby to homeseer

Help each other out

Postby ptrinchi on Thu Nov 24, 2005 7:09 pm

justonemore > the master field in general tab is the xAP address of Homeseer. An xAP address is made with the name of the constructor (mi4) the name of the module (HomeSeer) the name of the computeur on witch the module run (for andymorgan1 it's kubla) and the device (set to * to access all devices)

So, if you fill the master field with mi4.homeseer.kubla.* you are trying to access to the homeseer onto AndyMorgan computeur :wink:

You must configure your own xAP address. It will be something like mi4.homeseer.MYPCNAME.*
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby andymorgan1 on Thu Nov 24, 2005 8:56 pm

Hi guys...I finally have this working!! The mistake I was making was trying to edit some of the actions in the xap-Xlobby configure screen under outgoing messages instead when I should have just been adding the variable under the events tab. Thanks for all your advice ptrinchi!!

I have another question. I have deleted one of the x10 connector categories in the xap-Xlobby config section. It was the one above x10 connector dim10. Any way I can get this back. I tried re-installing the plugin but to no avail

Cheers

Andrew
andymorgan1
 
Posts: 15
Joined: Thu Nov 10, 2005 8:53 am

Postby andymorgan1 on Fri Nov 25, 2005 10:00 am

Hi there...just disregard my previous post. Just reloaded the actions.xml file
andymorgan1
 
Posts: 15
Joined: Thu Nov 10, 2005 8:53 am

Postby ptrinchi on Fri Nov 25, 2005 1:00 pm

Ok, enjoy with xAP :wink:
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby Jay on Mon Nov 28, 2005 1:31 pm

This is great! I'm passing xAP to HS2 and am using Basic Control on/off/toggle commands. I have not touched actions.xml nor events.xml. In HS2, I just have the OCX enabled in the >setup>interfaces tab under 'Other' and have left the PowerLinc USB interface enabled on the X-10 column.

Now, how do I send a dim/bright command and how do I trigger events? I see the options on the plugin command drop-down box but I can't figure out the Variables syntax.

Thanks!
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby ptrinchi on Mon Nov 28, 2005 2:09 pm

I don't know how to make Dim or Bright with BSC command.
If you know the structure of a xap message to send to HomeSeer, please post it and I will give you the few lines to modify in the actions.xml file.

With HS, you can use all the HomeSeer Command : function. The variable field must be :
- For HomeSeer Command : Speak, fill with the text to speak
- For HomeSeer Command : TriggerEvent, fill with the HS name of the trigger
- For HomeSeer Command : TriggerScript, fill with the name of the script
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby Jay on Mon Nov 28, 2005 3:29 pm

Thank you. None of the 3 HomeSeer Commands function. Here is my current Actions.xml. I'll post a typical message below it.

<?xml version="1.0" encoding="utf-8"?><xAP><event><name>Basic Control</name><class>xAPBSC.cmd</class><adress>*Xlobby*</adress><Desc>bsc 1.3</Desc><body>output.state.1{
id=*
state=[On,Off,Toggle]
}
</body></event><event><name>Basic Query</name><class>xAPBSC.Query</class><adress>*Xlobby*</adress><Desc>bsc 1.3</Desc><body>request{
[]
}
</body></event><event><name>x10 connector</name><class>xAP-x10.request</class><adress>ERSP.X10.*</adress><Desc>For ERSP X10 connectors</Desc><body>xAP-x10.request{
command=[on,off]
device=*Xlobby*
}
</body></event><event><name>x10 connector : Dim 10</name><class>xAP-x10.request</class><adress>ERSP.X10.*</adress><Desc>For ERSP X10 connectors</Desc><body>xAP-x10.request{
[]
command=dim
device=*Xlobby*
count=10
}
</body></event><event><name>x10 connector : Dim 20</name><class>xAP-x10.request</class><adress>ERSP.X10.*</adress><Desc>For ERSP X10 connectors</Desc><body>xAP-x10.request{
[]
command=dim
device=*Xlobby*
count=20
}
</body></event><event><name>x10 connector : Bright 10</name><class>xAP-x10.request</class><adress>ERSP.X10.*</adress><Desc>For ERSP X10 connectors</Desc><body>xAP-x10.request{
[]
command=bright
device=*Xlobby*
count=10
}
</body></event><event><name>x10 connector : Bright 20</name><class>xAP-x10.request</class><adress>ERSP.X10.*</adress><Desc>For ERSP X10 connectors</Desc><body>xAP-x10.request{
[]
command=bright
device=*Xlobby*
count=20
}
</body></event><event><name>New Mail Request</name><class>Mail.Incoming</class><adress>KCSoft.MailMonitor.*</adress><Desc>For KCSoft MailMonitor</Desc><body>Status.Request{
[]
}
</body></event><event><name>HomeSeer Command</name><class>homeseer.command</class><adress>mi4.homeseer.dad:Master</adress><Desc>HomeSeer interface</Desc><body>homeseer.command{
command=[Speak,TriggerEvent,TriggerScript]
data1=*Xlobby*
data2=
data3=
data4=
}
</body></event><event><name>Start speaking</name><class>tts.speak</class><adress>mi4.*.*</adress><Desc>For mi4 TTS Speech</Desc><body>tts.speak{
[]
Say=*Xlobby*
}
</body></event><event><name>Stop speaking</name><class>tts.speak</class><adress>mi4.*.*</adress><Desc>For mi4 TTS Speech</Desc><body>tts.stop{
[]
Stop=All
}
</body></event>
<event>
<name>Basic Control</name>
<class>xAPBSC.cmd</class>
<adress>*Xlobby*</adress>
<Desc>bsc 1.3</Desc>
<body>output.state.1{
id=*
state=[On,Off,Toggle]
}
</body>
</event>

<event>
<name>Basic Query</name>
<class>xAPBSC.Query</class>
<adress>*Xlobby*</adress>
<Desc>bsc 1.3</Desc>
<body>request{
[]
}
</body>
</event>
</xAP>
-----------------------------------------
Debug message received when trying to trigger event "Forecast" from the trigger "Forecast" (D5):
[img]http://www.gladwyne.com/avatars/xAP message.jpg[/img]

Thank you.
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby CouchPotatoe on Mon Nov 28, 2005 5:31 pm

Within BSC currently there is no option for relative changes to a level (eg +10%) - however if you wanted to use a HS script to help achieve this you could. You would create a virtual device in HS that held a BSC text value and when this changed (via your XLobby button) you could run a script that modified the real device eg an X10 light. So your virtual device's text value sits at 0 normally. When it is updated to say -20% or +50% a script is triggered which reads the real devices 'current' level, calculates the new level and sets it directly , it would then set its own virtual value back to 0. The downside of this is the speed of response as every 'click' requires the update/trigger/script/update steps so it may not be too responsive.

One other possibility is that if you used the xAP X10 connector then within the xAP X10 schema is direct provision for DIM and BRIGHT. I am also wondering if by any chance the HS xAP conduit includes support for X10 schema control - I don't believe so but 'll find out and post back
.

I will have a think about offering relative changes in the BSC v1.4 spec as this has been asked for before.

K
CouchPotatoe
 
Posts: 102
Joined: Tue Feb 24, 2004 11:48 am
Location: Yorkshire. UK

Postby Jay on Mon Nov 28, 2005 5:44 pm

Thanks CouchPotatoe.

2 different issues here. I could tough through a script, but if I could trigger events, I already them scripted. However, I cannot (HomeSeer Command: ) Speak, TriggerScript or TriggerEvent which was my question above. Now would that be due to the fact that I'm not using what I think is the X-10 conduit on HS2? I'm only using the OCX in the 'other' column.

If I enable the plugin in the X-10 column, HS sees events firing but the SmartLinc USB interface is disabled so nothing happens.
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby CouchPotatoe on Tue Nov 29, 2005 12:52 pm

Ahh OK.. with you now Jay !

There are two ways to cause events to be triggered in HomeSeer from XLobby.

1) The way you are trying with the homeseer.command with the data1= containing the name of the HS event (not the script name). However I see in your example message image that the target address is malformed - there should be no : in the line as it is not one of the endpoints (sub addresses) of HomeSeer it is the main 'master' application you are targeting. It should be a .

target=mi4.homeseer.dad.Master

I am not sure if this is your data or perhpas a bug in the way the plugin is forming the message. You need to edit your actions.xml file to change the : to a .

This is how the whole message should be sent ....

xap-header
{
v=12
hop=1
uid=FFABCD00
class=homeseer.command
source=PTrinchi.XLobby.video
target=mi4.homeseer.dad.Master
}
homeseer.command
{
data3=
command=TriggerEvent
data4=
data1=Forecast
data2=
}


BTW if you use xAP Viewer from http://www.mi4.biz then you can copy/paste/edit xAP messages - and resend them which is useful. (Pierre I dont know if you might add that to your debug message displays ? it would help people with problems to paste messages to this forum). If you copy the above message into a xAP Viewer window and send it the it should work, I hope. To do this double click any xAP message in Viewer to open it and then replace all the text with the above by 'paste' and resend using the toolbar circular arrow icon on the right.

2) Another way to do this. In the HS xAP plugin you can create events that get triggered when a xAP device within HS gets updated. So effectively the trigger could come from a xAP BSC message from an XLobby button, or indeed any variable in any xap message received from anywhere. In the event editor within the xAP HS plugin you can then send onwards any xAP message(s) you like and there are templates set up for a lot of typical xAP schema . This allows you to create macros of xAP messages/ One of the other things you can do is to run a script so that achieves your task too :-)

Re the X10 - Leave the xAP option for this disabled if you don't have a xAP connected X10 interface. in your case continue using just the SmartLink USB interface.

HTH Kevin
CouchPotatoe
 
Posts: 102
Joined: Tue Feb 24, 2004 11:48 am
Location: Yorkshire. UK

Postby Jay on Tue Nov 29, 2005 3:10 pm

Well thanks so much. I chose 1)

I have no idea where the colon (:master) came from in action.xml.

The ability to run events also takes care of the dim/bright issue as I'm not stuck with just basic device control any more.

I know some other guys have this problem. I'll get the word out.

Thanks again!
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby ptrinchi on Wed Nov 30, 2005 9:15 am

Jay, we have made tests on various computers with the french teams and this xAP message work fine for us (5 users) All the tests have been made with the HS 1.6 or HS1.7 but none with the HS2 :?

So, if I understand your configuration, your HS is installed on the dad computeur and Xlobby is on the video computeur isn't it ?
In you event list in HS, you can see an event named Forecast ?

Normaly, the first time you send this message, HS will open a config box to ask you if you want to associate a HomeSeer internal device to the owner of this message. Simply answer no to this box. Re-send this message (click on your xlobby button) and then the event Forecast will stat.
ptrinchi
 
Posts: 108
Joined: Fri Sep 10, 2004 8:52 pm
Location: France

Postby Jay on Wed Nov 30, 2005 12:23 pm

Simply changing the : to . fixed everything. I fact, I spent the day making XLobby my complete HS2 interface. With respect to 'Forecast', yes (the device name is also 'Forecast' which could have been confusing - sorry). I saw all events and built TriggerEvents for all in XL.

Yes, HS2 is on the machine 'Dad' and XL is on the machine 'Video'.

HS2 did not present a "config box to ask you if you want to associate a HomeSeer internal device to the owner of this message". Nevertheless, it works as I want. I am not using the x-10 connector, just the USB interface and the BSC OCX in the 'other' column.

I am very happy :D Thank you again for the :Master to .Master fix. That was the entire issue.
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby Jay on Sat Dec 03, 2005 3:01 pm

I have posted this issue in another thread but am repeating it here - just in case it's xAP related.
Ever since I got HS TriggerEvent working, both Server and Webserver clients can trigger just one X-10 event then either server needs to be restared or XL needs to be restarted. Non-x-10 events work fine. XL is on one machine, HS2 is on another.
Any clues?
Jay
 
Posts: 869
Joined: Thu Oct 13, 2005 6:28 pm
Location: Kiawah Island, SC US

Postby CouchPotatoe on Sun Dec 04, 2005 12:38 am

Very strange that changing either the source or the destination application (by a restart) fixes this - you would expect the problem to be in one or the other. Does the xAP message go out EXACTLY the same as before, and does repeatedly sending the message (as captured in Viewer) cause HS to work OK or not ? Which hub are you using ?

K
CouchPotatoe
 
Posts: 102
Joined: Tue Feb 24, 2004 11:48 am
Location: Yorkshire. UK

PreviousNext