This page last changed on Oct 28, 2010 by nivis.

I'm designing an android panel where I want to be able to toggle a KNX groupadress via a button. Where do I find all the possible commands that's currently implemented? All I've got so far is the SWITCH ON, OFF and STATUS

Per

Found http://www.openremote.org/display/docs/Designer+2.0+-+Create+KNX+Write+Command and that answered some of my question.

Is it any difference between SWITCH ON and ON? Should I use ON when I'm emulating a pushbutton?

Posted by nivis at Oct 28, 2010 18:07

'Switch On' and 'On' are identical – 'switch on' is a bit more explicit to say it is intended for KNX switch datatype (DPT 1.001) to clearly separate it from other boolean types such as start/stop or active/inactive (to be added later).

You should use 'On' or 'Switch On' for group addressed with DPT 1.001 as their datatype (part of ETS programming).

Posted by juha at Oct 29, 2010 15:57

Hi,

I continue with this discussion because I think that is relationated.

If I want to send a value comand (1 byte), I understand that I must use the DTP 5.001, and put dim or scale in the name. But I don't understand where I put the value (for example: 5).

Regards,
JuanMa.

Posted by jmrobert at Nov 02, 2010 18:06

The value is set by the UI component the command is bound to, e.g. a slider (which has a bound range).

Posted by juha at Nov 02, 2010 19:13

Hi,

I don't understand very well. If I want to fix a value, one button sends a fix value, how can I do it?

Posted by jmrobert at Nov 02, 2010 19:55

Haven't added fixed values yet.

Will add that to list for the next round of protocol touch-ups.

Thanks,

– Juha

Posted by juha at Nov 05, 2010 15:29

hi, is the fixed value inplemented yet?
I need to send a value from 0 to 4 to set the heating mode (2 bit), rather not via a slider.
Also, with a slider, is it also possible to set a range starting with negative numbers? (-5 to +5)

Cheers,

Bastiaan

Posted by bassie01 at Feb 28, 2012 21:27

Yes
I'm doing it for values from 0 - 3

Create a Command to set the value to your KNX object.
protocol: KNX
Group address x/x/x
KNX COMMAND = RANGE
DPT = 5.010

Create a sensor,
Type: Range
Put your min - max values in the range property
and assign the sensor a KNX status command

With this sensor and 'set value' command, you can create the slider.

Posted by yannph at Feb 28, 2012 23:02

Hi, thanks for your answer, but i was not clear enough, sorry for that. I don't want to send through a slider, but a fixed value via a button. can I use 'set value' with a button? For the slider, I though you needed to use scale, not "set value". Are they both being used?

Posted by bassie01 at Feb 29, 2012 09:15

Using a button to send a value which normally would be selected from a slider is not directly supported.
You could use a workaround and create yourself a command which performs a HTTP GET.
The HTTP url would be the REST call to the controller emulating a slider with value '4'.

The URL would look like this: http://<controller_ip>:8080/controller/rest/control/<slider_id>/4

Just replace the <controller_ip> with your IP and <slider_id> with the slider from controller.xml.
First create a slider like Yann described above.

Posted by mredeker at Feb 29, 2012 14:39
Document generated by Confluence on Jun 05, 2016 09:32