This page last changed on Oct 12, 2012 by simnet.

Hello all

I have designed some panels for my house and i search a solution to integrate the heating control. Heating mode it's easy, it's only an 1bit command. But the setpoint adjustement, i need to read the current setpoint and have a + and - button to increase and decrease this value.

How can i do this ?

Thanks for you help


Schermata del 2012-10-22 18:44:00.png (image/png)
Schermata del 2012-10-22 18:46:37.png (image/png)
Schermata del 2012-10-22 18:44:00.jpg (image/jpeg)
Schermata del 2012-10-22 18:46:37.jpg (image/jpeg)
a.jpg (image/jpeg)
b.jpg (image/jpeg)
c.png (image/png)
1.png (image/png)
2.png (image/png)
3.png (image/png)
5.png (image/png)
4.png (image/png)
6.png (image/png)
log1.png (image/png)
log2.png (image/png)
log3.png (image/png)
ets.jpg (image/jpeg)
ets2.jpg (image/jpeg)

Where do you store the setpoint? Just a slider value which will send the setpoint to a KNX actuator?
This can be done with a KNX command where command will be "temp" and DPT9.001.

If you want plus and minus things become more complecated since you need a rule to incread/decrease a virtual value and the result is sent to the KNX bus.
You also need a sensor to read the actual room temperature. Do you use KNX temp sensors or 1-wire or something else?

Posted by mredeker at Oct 13, 2012 08:52

I have a KNX group address for the current setpoint and one for the setpoint adjustement. It's DPT9.001. I have try to do a slider with the 2 values into the design but i have an error "Make sure you have 1 Range-/Scale-Sensor and 1 command selected.".

Slider value it's a good solution but i want to have the feedback on the slider with the current setpoint ..

Have you a solution ?

Posted by simnet at Oct 13, 2012 09:00

The slider needs a sensor. That sensor can also be used with a label to display the current setpoint temp.
How exactly is your architecture?

One GA to set setpoint which is read/write ?
Another GA to read current room temp which is only read?

Posted by mredeker at Oct 13, 2012 10:44

I have use the labels to show my current setpoint and it's working well. But find no way to adjust it ..

My architecture is like this :

One GA to read current setpoint
One GA to send adjustement on the setpoint
One GA to read current temperature
One GA to read valve status in percent

Posted by simnet at Oct 13, 2012 19:58

Ok, so you need the following objects in OpenRemote:

  • Command "ReadCurrentSetpoint" with command 'status' and PDT9.001
  • Sensor "CurrentSetpointSensor" for this command (range maybe 10-30)
  • Command "WriteCurrentSetpoint" with command 'temp' and DPT9.001
  • Slider "SetpointSlider" using "CurrentSetpointSensor" and "WriteSetpointCommand"
  • Command "ReadCurrentTemperature" with command 'status' and DPT9.001
  • Sensor "CurrentTemperatureSensor" for this command (custom sensor)
  • Command "ReadValveStatus" with command 'status' and DPT5.001
  • Sensor "CurrentValveStatusSensor" for this command (level sensor)

To see the current setpoint just put a label besides the slider and link the sensor

Posted by mredeker at Oct 14, 2012 20:23

Yes perfect.

Thanks a lot.

Posted by simnet at Oct 15, 2012 19:57

Hi
I'm trying to read KNX temperature but nothing for moment.
In particolar one "ReadCurrentTemperature" command with "status" and DPT 9.001
and one sensor "CurrentTemperatureSensor" for this command (custom sensor).
To see current value I use a text label.
If I read temperature with a REST command from browser is it ok

I've trying to see value with a REST sensor but also does not work

Anyone have an idea ?
Many thanks

Posted by bibi at Oct 22, 2012 17:49

I don't know about polling out REST service with our own HTTP protocol. Interesting idea though.
But the answer from your GET with the browser looks ok.
If you connect the command to a custom sensor it should work.

Did you attacht he custom sensor to the label?
Which version of controller and which console are you using?

Posted by mredeker at Oct 22, 2012 20:48

In your XPATH expression you have the id in single quotes. Have you tried with double quotes?

Posted by pz1 at Oct 22, 2012 22:20

deleted; double post

Posted by pz1 at Oct 22, 2012 22:22

Thanks for reply
my controller is 2.0.0 version ; I've tried also 2.0.1, is it the same.
I'm using 2.1 version Ipad console.
Double quotes it make no difference.
Sensor was attacched to a label.
The strange thing is that I can't read 2bytes value in knx but I can write it (ex. for set setpoint temperature).
For REST command :

For KNX command :



Posted by bibi at Oct 23, 2012 08:28

Looks good to me.
Do you see any erros in the log files of the controller?

Posted by mredeker at Oct 23, 2012 08:32

Thanks Marcus
in knx-debug.log

in knx.log


Do you need other log that I unknow?
Thanks

Posted by bibi at Oct 23, 2012 08:55

This also seems to be ok, weird.
It seems that your group address 2/3/84 is only returning 0x00 which does not look right.
Do you have an ETS and can check if the address has the 'read' flag set?

Posted by mredeker at Oct 23, 2012 09:02

Yes "read flag is ok

Posted by bibi at Oct 23, 2012 09:15

I've tryed to specified 9.001 Data Type in ETS but nothing

Posted by bibi at Oct 23, 2012 09:26

I am running out of ideas. Since the REST call worked everything should be fine.

Posted by mredeker at Oct 23, 2012 09:28

Hi Marcus
now works fine !!!!
Why? What is succeded? Mystery
log file is it the same...
Thanks a lot !!

Posted by bibi at Oct 23, 2012 09:51

Hi
html/rest command now work fine but only with 2.0.1 controller version
Thanks

Posted by bibi at Oct 23, 2012 13:28
Document generated by Confluence on Jun 05, 2016 09:30