The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: URL query and control?



--_000_3079CB5C2E04AC4CBE86C8C0093B2BB70111FEBFEXCHANGEhomesil_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks Patrick,

Not sure if I explained myself very well?

The heating manager runs on a small form factor PC and runs a web server
an=
d a wireless connection to the Honeywell heating system.

To send heating commands, you can send data via the URL, for example:

http://{webmanager}/api/control?action_name=3DturnOn&nodeId=3D57&username=
=3Dsystem&password=3Dsystem

The unit returns:


<control status=3D"ok"/>

(or a failed message)

To query, you could send something like the following for a particular
devi=
ce:
http://{webmanager}/api/instances/50c5a00b16ce4c930116ce4c93a90007
which returns the XML:

<deviceInstance id=3D"50c5a00b16ce4c930116ce4c93a90007"
name=3D"Radiator He=
ating Controller (17409)"
deviceId=3D"org.annalytics.honeywell.drivers.Radi=
atorControllerDriver">

<inputNodes/>

<outputNodes/>

<inputLevelNodes>

<node nodeId=3D"117"
instanceId=3D"50c5a00b16ce4c930116ce4c93a90007" onText=
=3D"On" offText=3D"Off" units=3D"Degrees"
scaleFactor=3D"1.0"

minValue=3D"0.0" maxValue=3D"100.0"
type=3D"2" subtype=3D"TemperatureSenso=
r" value=3D"15.91" valueTimestamp=3D"0"
enabled=3D"false" status=3D"1"

statusTimestamp=3D"0"
nodeDriverService=3D"org.annalytics.honeywell.driver=
s.RadiatorControllerDriver" index=3D"2"/>

<node nodeId=3D"118"
instanceId=3D"50c5a00b16ce4c930116ce4c93a90007" onText=
=3D"On" offText=3D"Off" units=3D"%"
scaleFactor=3D"1.0"

minValue=3D"0.0" maxValue=3D"100.0"
type=3D"2" subtype=3D"BatteryLevel" va=
lue=3D"255.0" valueTimestamp=3D"0"
enabled=3D"false" status=3D"1"

statusTimestamp=3D"0"
nodeDriverService=3D"org.annalytics.honeywell.driver=
s.RadiatorControllerDriver" index=3D"3"/>

<node nodeId=3D"119"
instanceId=3D"50c5a00b16ce4c930116ce4c93a90007" onText=
=3D"On" offText=3D"Off" units=3D"%"
scaleFactor=3D"1.0"

minValue=3D"0.0" maxValue=3D"100.0"
type=3D"2" subtype=3D"Valve" value=3D"5=
.0" valueTimestamp=3D"0" enabled=3D"false"
status=3D"0"

statusTimestamp=3D"0"
nodeDriverService=3D"org.annalytics.honeywell.drivers=
.RadiatorControllerDriver" index=3D"4"/>

</inputLevelNodes>

<outputLevelNodes>

<node nodeId=3D"116"
instanceId=3D"50c5a00b16ce4c930116ce4c93a90007" onText=
=3D"On" offText=3D"Off" units=3D"Degrees"
scaleFactor=3D"1.0"

minValue=3D"0.0" maxValue=3D"100.0"
type=3D"3" subtype=3D"TemperatureContr=
oller" value=3D"16.0" valueTimestamp=3D"0"
enabled=3D"false" status=3D"0"

statusTimestamp=3D"0"
nodeDriverService=3D"org.annalytics.honeywell.driver=
s.RadiatorControllerDriver" index=3D"1"/>

</outputLevelNodes>

</deviceInstance>

So I would need some XML parsing of the results and then be able to turn
th=
at into xAP BSC messages.

Does that make sense? I wonder if this is best done in a HS script (as I'm
=
no programmer)?

Thanks,

Paul.

From: xap_automation@xxxxxxx [mailto:xap_automation@xxxxxxx=
] On Behalf Of Patrick Lidstone
Sent: 15 October 2010 21:26
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] URL query and control?



xAP-cache (http://patrick.lidstone.net/cache.htm)
can probably be bent to m=
eet your needs, in that it can return a web page which contains
user-define=
d fields based on the last n xAP messages of a particular class/type/field.

To send xAP messages in response to hitting a URL, you can use any xAP
comm=
and line sender program on a web server, activated as a CGI script.

To 'receive' xAP messages vial a URL or web service, you're going to need
t=
o periodically poll a cache of some kind.

I really should get round to re-writing xAP-cache with a 'proper'
web-servi=
ce interface. Ho hum.

Patrick

On 15 October 2010 17:50, Paul Gale <groups2@xxxxxxx<mailto:groups=
2@xxxxxxx>> wrote:
Is there anything in the xap world or maybe in HomeSeer (and hence
xapable)=
that would allow me to control a device that can be controlled and queried=
via a URL and arguments?

The heating manager I have works in this way and I'd like to integrate it
i=
nto xap flash.

Thanks,

Paul.

------------------------------------


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.