View single post by lms | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Posted: Friday Feb 29th, 2008 07:06 am |
|
||||||||||||
lms
|
Interesting to read the comment about lack of support from HS/Rod Colley - I had quick responses but that was a year or more ago - probably when the enthusiasm was still there! I had forgotten about the "Transmit" command as pointed out in the thread. Note that there is also a "TransmitX10" command in HS which doesn't need hex codes as in the Transmit("X!P1005") command. I don't use these so am not sure whether you can set dim levels via these commands. Note also that there are various other commands which you may find useful, specifically "ControlOutput" for your question on how to control outputs. If you can't make Transmit or TransmitX10 work, then you'll probably have to use counters. Are you aware of the PDF that comes with the plug-in? It should be in C:\Program Files\Homeseer2\Docs. This explains how to map counters to Comfort and all the plug-in commands. For your example of activating the chime, one way of doing this with counters is .... Create a response, say "DoChime" containing the following: Siren Chime Then select a counter in Comfigurator (say Counter1), and set the Response column to "DoChime". Now, whenever the counter gets set (to any value), "DoChime" will be triggered and the chime will be activated. In HS, set up a script, say "TriggerChime" as follows: Sub Main hs.PlugIn("pjcComfort2").Transmit_SetCounters "Counter1,1" End Sub Now, when you run "TriggerChime" in HS, the counter gets set and Comfort runs the "DoChime" response. You could obviously get much more elaborate, possibly for your X10 commands, by setting the counter in HS to different values denoting different dim levels, and then the Comfort response, say "DoLightOn" could resemble the following: If Counter Counter1 = 1 Then X10 A1 On End If If Counter Counter1 = 2 Then X10 A1 Dim End If Hope this helps.
|
||||||||||||
|