This page last changed on Feb 27, 2014 by chloegeek.

Heya.

This is probably going to sound like a really stupid question but I'll give it a go anyway after explaining.

I am attempting something fairly simple. I am using Tasker on Android in order to add a few extra functions to my OpenRemote system. I am still fairly new to this but I have had moderate success with varying things and am building up my knowledge as I go.

My question today is, is there a way to send an HTTP command to my OpenRemote Server to update a sensor value. For example...

I am wanting to do some simple automation based on my current location. Using tasker I can easily define whether I am home or not by deciding whether or not I am in range of the wifi network. I can also easily set up tasker to send an HTTP GET or PUT to an address to update this value to one or the other.

I have been struggling to figure out how to do this. I feel like it's a simple problem and I am missing something obvious. Basically all I need to know is how to set up my OpenRemote server so that it will take in a value that has been sent to it over HTTP, store it and use it.

I really hope someone can help!

Thanks
Chloe


You cannot directly change the value of a sensor, but you can achieve that by triggering a UI element via the REST API. See documentation here : Controller 2.0 HTTP-REST-XML

Posted by ebariaux at Feb 27, 2014 11:46

Thanks for the help!

Okay, so I understand what you are getting at but I'm still a tiny bit confused as to how to go about implementing it. I have looked through the REST API and I THINK you are referring to Sending a Write command and then linking that to a UI element somehow. I sadly am still quite new to this and working with HTTP and xml in general. I am really sorry to be such a pain. Is there any further direction you might be able to offer me?

Posted by chloegeek at Feb 27, 2014 13:53

You may be able to skip a few steps and insert a sensor value directly into the controller by using UDP packets instead of HTTP and XML with the UDPSender plugin for Android Tasker.

You will need a 392 patched version of the controller binary for the UDP listener functionality which is available here: OpenRemote-Controller-2.1.0_FM_ORCJAVA-392-2.zip

In the Online Designer you can create a UDP Listener (use https://composer.openremote.org/preview version) with a regexp (you'll need to defined it with a so called "capturing group") that can be linked to a sensor.

That should give you a sensor with a value you're pushing from your Android app.

Discussion around this functionality can be found in these threads:

Posted by juha at Feb 27, 2014 16:19

Chloe Goument said:

My question today is, is there a way to send an HTTP command to my OpenRemote Server to update a sensor value. For example...

For me this looks like a sensible request, but apparantly to difficult to implement in OpenRemote. It is regrettable to see that this user feels he has to apologise for his lack of knowledge:

I am really sorry to be such a pain

Posted by pz1 at Nov 03, 2014 17:42

I use the "work around" below:

Tasker
Http Post

Server:Port 192.168.2.222:8080 controller address or equivalent...I use a DNS service to make it constant

Path: controller/rest/control/2310/click from controller.xml for the button in the UI that I want to "click"..in my case its the garage door opener command

With the above, anything in your UI could be tied to tasker actions. (i.e. phone connects to home wifi, then click button for Z wave lamp plug in, etc.)

Unfortunately, I use the above as a workaround to avoid having to open Openremote on my phone (crashes/hangs the first time). With tasker, I can make it a widget on my phones home screen. No app needed.

Posted by niedejb at Nov 03, 2014 19:36

I am having another look at tasker as an interface to openremote. It certainly works nicely if you just want some simple buttons. Have you managed to get a switch to work in tasker so that it reflects the status with two images ie On and OFF ?

I think if I could have that I would move all my designs across to tasker and just use Openremote as a backend.

Posted by jules_bike at Nov 28, 2014 18:51

"Have you managed to get a switch to work in tasker so that it reflects the status with two images ie On and OFF ?"

Yes and No. I can get the status and reflect it but I haven't found a way to do it without polling (yet).

Currently, I have tasker poll the status when the widget is pressed. Once it's pressed tasker verifies the status then knows what command to send (if it's "off": send "on" and change the image to "on", if it's "on": send "off" and change image to "off")

For my lamp:

Lamp (87)
A1: HTTP Get [ Server:Port:192.168.2.222:8080(or DNS address) Path:controller/rest/status/5783427 Attributes: Cookies: User Agent: Timeout:10 Mime Type: Output File:0jbndevice/lamp.txt Trust Any Certificate:Off ]
A2: Read Line [ File:0jbndevice/lamp.txt Line:3 To Var:%LAMP2 ]
A3: Variable Section [ Name:%LAMP2 From:22 Length:3 Adapt To Fit:Off Store Result In:%LAMP3 ]
A4: Variable Section [ Name:%LAMP3 From:1 Length:2 Adapt To Fit:Off Store Result In:%LAMP3 ] If [ %LAMP3 eq on< ]
A5: Set Widget Label [ Name:Lamp Label: ]
A6: HTTP Post [ Server:Port:192.168.2.222:8080(or DNS address) Path:controller/rest/control/3021/on Data / File: Cookies: User Agent: Timeout:10 Content Type: Output File: Trust Any Certificate:Off ] If [ %LAMP3 eq off ]
A7: HTTP Post [ Server:Port:192.168.2.222:8080(or DNS address) Path:controller/rest/control/3021/off Data / File: Cookies: User Agent: Timeout:10 Content Type: Output File: Trust Any Certificate:Off ] If [ %LAMP3 eq on ]
A8: Set Widget Icon [ Name:Lamp Icon:hd_aaa_ext_sun ] If [ %LAMP3 eq off ]
A9: Set Widget Icon [ Name:Lamp Icon:hd_device_access_bightness_low ] If [ %LAMP3 eq on ]

Translating the tasker task:

A1 Retrieves the code below and stores as a text file:

<?xml version="1.0" encoding="UTF-8"?>

-<openremote xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/schemas/controller.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.openremote.org">

<status id="5783427">on</status>

</openremote>

A2 Stores just line 3 of the above as a variable. (<status id="5783427">on</status>)
A3 Trims the line 3 variable to just read "off" or "on<" and stores as new variable
A4 Changes "on<" to "on" if found
A5 Is not necessary...just takes the label for the widget and makes it blank (just leaves the image with no label)
A6 Sends the "on" command if the "off" status is returned
A7 Sends the "off" command if the "on" status is returned
A8 Updates the widget image to "on" if the "off" status was returned (since it was just changed turned on in A6)
A9 Updates the widget image to "off" if the "on" status was returned (since it was just changed turned off in A7)

Off(bottom right corner):

On (now shows icon corresponding to on):

Little to no latency for the above...less than 2 seconds to turn the lamp on/off

Still need to figure out how to have openremote send tasker a signal to update the widget if the status changes (without having tasker poll to find out)

Edit: Just added a routine to update the sensor status when I turn the phone's screen on:
(Profile: Display State On -> the lines A1, A2, A3, A4, A5, A8, and A9 above run)

Not real time, but doesn't require constant polling either.

Posted by niedejb at Nov 30, 2014 18:06

Thanks Jeremy for the detailed reply - the good bit is that you are able to create a functioning switch but as you said the main issue is the polling.
When you see the screenshots of your phone it makes total sense not to have to open an app just to turn on and off lights/music etc...Plus I find the android controller is not 100% stable and often I have to back out and reload a panel which is even more clicks. Finally tasker opens up more possibilities for future integration such as voice, location, smart watches...

I am not really a programmer but perhaps the UDP listener functionality would resolve the polling issue?

btw are you using the tasker widget or the shortcut? I notice you have no text by the widgets...one really annoying thing on my phone is that to add each widget I have to scroll about 8 pages to get to the tasker widget. I can't find a way to add directly from tasker.

Posted by jules_bike at Dec 01, 2014 09:19

It's the tasker widget that I'm using.

I set the text to be blank by using "Set Widget Label" and putting no text in it.

Posted by niedejb at Dec 02, 2014 11:39

Hi geremy 've tried to use task like you wrote but it doesn't work. I used http post, then i wrote the server and this path:controller/rest/control/50/click
I' ve read on panel.Xml that the switch i want to switch on to move my blins by knx is id=50. Why doesn't it work? Thankz in advance

Posted by gianlu_1982 at Sep 26, 2015 07:38

if it is a switch then you need to do an on or off - click is for buttons. there is a rest api help page here:

link

Posted by jules_bike at Sep 26, 2015 11:12

I've tried but nothing. Where can I check the number of the command may be it is wrong. Thanks a lot

Posted by gianlu_1982 at Sep 26, 2015 12:42

Before trying in tasker, make sure the http post works in a browser (it should move your blinds)

In the controller.xml, I usually search for the command name. There will be a sensor number tied to the command. If you search for the sensor number, you can see all the buttons/switches tied to that sensor.

Perhaps post your controller.xml and we can help?

Posted by niedejb at Sep 26, 2015 14:13

This is my controller.xml (I've used the id read from panel.xml). i'm using browser to try the command but nothing happens, usint its by my smartphone in my openremote panel it works.

Thanks a lot

<?xml version="1.0" encoding="UTF-8"?>
<openremote xmlns="http://www.openremote.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/schemas/controller.xsd">
<components>
<button id="70">
<include type="command" ref="113" />
</button>
<button id="42">
<include type="command" ref="95" />
</button>
<button id="72">
<include type="command" ref="115" />
</button>
<button id="46">
<include type="command" ref="96" />
</button>
<button id="74">
<include type="command" ref="114" />
</button>
<button id="44">
<include type="command" ref="97" />
</button>
<button id="50">
<include type="command" ref="123" />
</button>
<button id="54">
<include type="command" ref="125" />
</button>
<button id="24">
<include type="command" ref="83" />
</button>
<button id="58" />
<button id="26">
<include type="command" ref="82" />
</button>
<button id="56">
<include type="command" ref="124" />
</button>
<button id="28">
<include type="command" ref="84" />
</button>
<button id="62" />
<button id="60" />
<slider id="32">
<setValue>
<include type="command" ref="79" />
</setValue>
<include type="sensor" ref="107419516" />
</slider>
<slider id="48">
<setValue>
<include type="command" ref="100" />
</setValue>
<include type="sensor" ref="107419840" />
</slider>
<slider id="76">
<setValue>
<include type="command" ref="118" />
</setValue>
<include type="sensor" ref="107419846" />
</slider>
<label id="68" />
<label id="66" />
<label id="52" />
<label id="40" />
<label id="30" />
</components>
<sensors>
<sensor id="107419840" name="Slide salone" type="level">
<include type="command" ref="100" />
</sensor>
<sensor id="107419516" name="Slide cucina" type="level">
<include type="command" ref="79" />
</sensor>
<sensor id="107419846" name="Slide wc gianlu" type="level">
<include type="command" ref="118" />
</sensor>
<sensor id="107419835" name="Tapparella stato letto" type="level">
<include type="command" ref="87" />
</sensor>
<sensor id="107419515" name="Tapparella stato cucina" type="range">
<include type="command" ref="80" />
<min value="0" />
<max value="255" />
</sensor>
<sensor id="107419838" name="Slide lorenzo" type="level">
<include type="command" ref="94" />
</sensor>
<sensor id="107419837" name="Tapparella stato lorenzo" type="level">
<include type="command" ref="93" />
</sensor>
<sensor id="107419836" name="Slide letto" type="level">
<include type="command" ref="88" />
</sensor>
<sensor id="107419845" name="Tapparella stato wc gianlu" type="level">
<include type="command" ref="117" />
</sensor>
<sensor id="107419844" name="Slide wc sery" type="level">
<include type="command" ref="112" />
</sensor>
<sensor id="107419839" name="Tapparella stato salone" type="level">
<include type="command" ref="99" />
</sensor>
<sensor id="107419841" name="Tapparella stato studio" type="level">
<include type="command" ref="105" />
</sensor>
<sensor id="107419842" name="Slide studio" type="level">
<include type="command" ref="106" />
</sensor>
<sensor id="107419843" name="Tapparella stato wc sery" type="level">
<include type="command" ref="111" />
</sensor>
</sensors>
<commands>
<command id="77" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/0/1" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) letto" />
</command>
<command id="78" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/0/1" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) Letto" />
</command>
<command id="79" protocol="knx">
<property name="command" value="Scale" />
<property name="groupAddress" value="0/3/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide Cucina" />
</command>
<command id="80" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/3/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato cucina" />
</command>
<command id="81" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/3/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Cucina" />
</command>
<command id="82" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/3/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Cucina" />
</command>
<command id="83" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/3/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) Cucina" />
</command>
<command id="84" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/3/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) Cucina" />
</command>
<command id="85" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/0/2" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Letto" />
</command>
<command id="86" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/0/2" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Letto" />
</command>
<command id="87" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/0/4" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato Letto" />
</command>
<command id="88" protocol="knx">
<property name="command" value="scale" />
<property name="groupAddress" value="0/0/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide Letto" />
</command>
<command id="89" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/1/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) lorenzo" />
</command>
<command id="90" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/1/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) Lorenzo" />
</command>
<command id="91" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/1/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Lorenzo" />
</command>
<command id="92" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/1/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Lorenzo" />
</command>
<command id="93" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/1/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato Lorenzo" />
</command>
<command id="94" protocol="knx">
<property name="command" value="SCALE" />
<property name="groupAddress" value="0/1/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide Lorenzo" />
</command>
<command id="95" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/2/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) Salone" />
</command>
<command id="96" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/2/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) Salone" />
</command>
<command id="97" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/2/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Salone" />
</command>
<command id="98" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/2/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Salone" />
</command>
<command id="99" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/2/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato Salone" />
</command>
<command id="100" protocol="knx">
<property name="command" value="SCALE" />
<property name="groupAddress" value="0/2/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide Salone" />
</command>
<command id="101" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/4/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) Studio" />
</command>
<command id="102" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/4/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) Studio" />
</command>
<command id="103" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/4/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Studio" />
</command>
<command id="104" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/4/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Studio" />
</command>
<command id="105" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/4/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato Studio" />
</command>
<command id="106" protocol="knx">
<property name="command" value="SCALE" />
<property name="groupAddress" value="0/4/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide Studio" />
</command>
<command id="107" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/5/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) WC Sery" />
</command>
<command id="108" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/5/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) WC Sery" />
</command>
<command id="109" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/5/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) WC Sery" />
</command>
<command id="110" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/5/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) WC Sery" />
</command>
<command id="111" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/5/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato WC Sery" />
</command>
<command id="112" protocol="knx">
<property name="command" value="SCALE" />
<property name="groupAddress" value="0/5/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide WC Sery" />
</command>
<command id="113" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/6/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) WC Gianlu" />
</command>
<command id="114" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/6/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) WC Gianlu" />
</command>
<command id="115" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/6/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) WC Gianlu" />
</command>
<command id="116" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/6/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) WC Gianlu" />
</command>
<command id="117" protocol="knx">
<property name="command" value="status" />
<property name="groupAddress" value="0/6/3" />
<property name="DPT" value="5.001" />
<property name="name" value="Tapparella stato WC Gianlu" />
</command>
<command id="118" protocol="knx">
<property name="command" value="SCALE" />
<property name="groupAddress" value="0/6/2" />
<property name="DPT" value="5.001" />
<property name="name" value="Slide WC Gianlu" />
</command>
<command id="119" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="0/7/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) GENERALE" />
</command>
<command id="120" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/7/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) GENERALE" />
</command>
<command id="121" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="0/7/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) GENERALE" />
</command>
<command id="122" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="0/7/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) GENERALE" />
</command>
<command id="123" protocol="knx">
<property name="command" value="SWITCH OFF" />
<property name="groupAddress" value="1/0/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (UP) Zona Giorno" />
</command>
<command id="124" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="1/0/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) Zona Giorno" />
</command>
<command id="125" protocol="knx">
<property name="command" value="dim_increase" />
<property name="groupAddress" value="1/0/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (UP) Zona Giorno" />
</command>
<command id="126" protocol="knx">
<property name="command" value="dim_decrease" />
<property name="groupAddress" value="1/0/1" />
<property name="DPT" value="3.007" />
<property name="name" value="Stop (DOWN) Zona Giorno" />
</command>
</commands>
<config>
<property name="controller.roundrobin.multicast.port" value="10000" />
<property name="controller.roundrobin.tcpserver.port" value="20000" />
<property name="controller.groupname" value="floor20" />
<property name="multicast.port" value="3333" />
<property name="enocean.commLayer" value="" />
<property name="enocean.comPort" value="" />
<property name="protocol.vera.classname" value="org.openremote.controller.protocol.vera.VeraCommandBuilder" />
<property name="controller.groupmember.autodetect.on" value="true" />
<property name="amx_ni.port" value="50000" />
<property name="enocean.serialProtocol" value="ESP3" />
<property name="zwave.commLayer" value="" />
<property name="copy.lircd.conf.on" value="true" />
<property name="irsend.path" value="/usr/local/bin/irsend" />
<property name="domintell.port" value="17481" />
<property name="controller.applicationname" value="controller" />
<property name="domintell.address" value="192.168.1.1" />
<property name="multicast.address" value="224.0.1.100" />
<property name="Macro.IR.Execution.Delay" value="500" />
<property name="zwave.pad.port" value="7876" />
<property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
<property name="zwave.comPort" value="" />
<property name="lutron_homeworks.password" value="openremote" />
<property name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001" />
<property name="lircd.conf.path" value="/etc/lircd.conf" />
<property name="lutron_homeworks.port" value="23" />
<property name="lutron_homeworks.address" value="192.168.1.1" />
<property name="zwave.pad.host" value="localhost" />
<property name="lutron_homeworks.username" value="openremote" />
<property name="webapp.port" value="8080" />
<property name="vera.address" value="" />
<property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.ZWaveCommandBuilder" />
<property name="resource.upload.enable" value="true" />
<property name="amx_ni.address" value="192.168.1.1" />
</config>
</openremote>

Posted by gianlu_1982 at Sep 26, 2015 15:24

since the following refers to command 114:

"<button id="74">
<include type="command" ref="114" />
</button>"

the rest command:

controller_address/controller/rest/controller/74/click

when typed into a browser should execute:

"<command id="114" protocol="knx">
<property name="command" value="SWITCH ON" />
<property name="groupAddress" value="0/6/0" />
<property name="DPT" value="1.001" />
<property name="name" value="Movimento (DOWN) WC Gianlu" />
</command>"

does that help?

Posted by niedejb at Sep 28, 2015 00:32

Perfect. It works, great, thanks a lot.

Posted by gianlu_1982 at Sep 28, 2015 10:36
Document generated by Confluence on Jun 05, 2016 09:34