[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xap homeseer plugin
--------------030908060605030603040602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
a simple example would be:
body="tts.speak" & chr(10)
body=body & "{" & chr(10)
body=body & "say=hello" & chr(10)
body=body & "}" & chr(10)
hs.plugin("xAP Conduit").sendxapmessage
"tts.speak",body
James
Paul Gale wrote:
> James,
>
> How do you use xAP messages in a standard HS script i.e. what would
the syntax be for sending a TTS message?
>
> Cheers,
>
> Paul.
>
>
>
>> -----Original Message-----
>> From: xap_automation@xxxxxxx
>> [mailto:xap_automation@xxxxxxx] On
Behalf Of James Traynor
>> Sent: 15 January 2007 23:40
>> To: xap_automation@xxxxxxx
>> Subject: Re: [xap_automation] xap homeseer plugin
>>
>> Ok, third time lucky. Yahoo seems to be eating my emails.
Apologies if
>> you've got this twice before hand!
>>
>> Hi,
>>
>> When the plugin deals with a BSC device, such as x10,cbus,netiom,
you
>> will find the state changing as expected from 2,3,4 to represent
the
>> usual on,off and dim states.
>> When it handles other schemas, like the message.display from
zoneminder,
>> it has to deal with them as text devices. This is why the state
never
>> changes from 17 as it's not on or off or dim. What you'll need to
do is
>> trigger a HS event on a device status change and use a simple
script to
>> read the new value of the status text and trigger whatever is
needed.
>>
>> I am looking at 'fudging' the text parsing so it could change the
device
>> value/state but it's gets quite tricky when dealing with the
possibly
>> limitless variations of data that could be provided.
>>
>> hth
>> James
>> pjeitler wrote:
>>
>>> Hello,
>>>
>>> I have installed the MI4 Homesser pluging and I am having one
>>> particular problem:
>>>
>>> Even though the xAP device shows a status change on the HS
status
>>> screen, I can't trigger an event from that device change.
>>>
>>> I am using Zoneminder to send xAP messages when a camera
detects motion.
>>> Using the HS xAP plugin, I created a device that shows the
alarm
>>> status. It shows "off" when no motion is detected
and "on" when motion
>>> is there. I created an HS Event with a trigger based on the
xAP Device
>>> changing to "on", but it never triggers. When I
query the device with
>>> hs.devicestatus, it returns 17 (unknown). If I set this device
to on
>>> or off manually using a script, my event triggers fine.
>>>
>>> I am wondering if the xAP pluging actually changes the device
values
>>> and/or status or if it just changes the device string?
>>>
>>> Any advice on how I can get this to work would be greatly
appreciated.
>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--------------030908060605030603040602
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font class="content">a simple example would be:<br>
<br>
body="tts.speak" & chr(10) <br>
body=body & "{" & chr(10) <br>
</font><font class="content">body=body
& </font><font
class="content">"say=hello" & chr(10)
<br>
</font><font class="content">body=body
& </font><font
class="content">"}" & chr(10)<br>
hs.plugin("xAP Conduit").sendxapmessage
"tts.speak",body </font><br>
<br>
James<br>
<br>
Paul Gale wrote:
<blockquote
cite="mid:239FFCCB86EEA04DA6757977FA6F63B4022639@xxxxxxx"
type="cite">
<pre wrap="">James,
How do you use xAP messages in a standard HS script i.e. what would the
syntax be for sending a TTS message?
Cheers,
Paul.
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</a>
[<a class="moz-txt-link-freetext" href="mailto:xap_automation@xxxxxxx">mailto:xap_automation@xxxxxxx</a>]
On Behalf Of James Traynor
Sent: 15 January 2007 23:40
To: <a class="moz-txt-link-abbreviated" href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</a>
Subject: Re: [xap_automation] xap homeseer plugin
Ok, third time lucky. Yahoo seems to be eating my emails. Apologies if
you've got this twice before hand!
Hi,
When the plugin deals with a BSC device, such as x10,cbus,netiom, you
will find the state changing as expected from 2,3,4 to represent the
usual on,off and dim states.
When it handles other schemas, like the message.display from zoneminder,
it has to deal with them as text devices. This is why the state never
changes from 17 as it's not on or off or dim. What you'll need to do is
trigger a HS event on a device status change and use a simple script to
read the new value of the status text and trigger whatever is needed.
I am looking at 'fudging' the text parsing so it could change the device
value/state but it's gets quite tricky when dealing with the possibly
limitless variations of data that could be provided.
hth
James
pjeitler wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I have installed the MI4 Homesser pluging and I am having one
particular problem:
Even though the xAP device shows a status change on the HS status
screen, I can't trigger an event from that device change.
I am using Zoneminder to send xAP messages when a camera detects motion.
Using the HS xAP plugin, I created a device that shows the alarm
status. It shows "off" when no motion is detected and
"on" when motion
is there. I created an HS Event with a trigger based on the xAP Device
changing to "on", but it never triggers. When I query the device
with
hs.devicestatus, it returns 17 (unknown). If I set this device to on
or off manually using a script, my event triggers fine.
I am wondering if the xAP pluging actually changes the device values
and/or status or if it just changes the device string?
Any advice on how I can get this to work would be greatly appreciated.
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|