This page last changed on Dec 08, 2014 by szejkindudi.

Hello,

I want to use label and show actual temperature from data bus. How Can I filter, find and show only this value? I can check device status and it's value at any time If I send command e.g. "CommandTemp=?" gateway response "CommandTemp=1120"
Gateway send "CommandTemp=1120" and this is in internal value of temperature. I must recalculate this value using easy math formula to show it in degrees of Celsius .
Now I can map in custom sensor: name "18" - value "CommandTemp=1130" , "19" "CommandTemp=1140" etc It is possible dynamically create value?
Second question how can i show in label only part of return command after the equals sign "="
Now label show "CommandTemp=1120" but I want only "1120" value.

Regards!

Second question how can i show in label only part of return command after the equals sign "="
Now label show "CommandTemp=1120" but I want only "1120" value.

Do the mapping as described in the helpfiles http://www.openremote.org/display/docs/Designer+2.0+-+Create+Custom+Sensor

Don't do the mapping if you follow Michal's solution mentioned below.

Posted by pz1 at Dec 08, 2014 08:19

I must recalculate this value using easy math formula to show it in degrees of Celsius .

http://mqlservice.net/openremote/2013/05/22/temperature-sensors-calibration/

Now label show "CommandTemp=1120" but I want only "1120" value.

Regular expression:

CommandTemp=(\d+)
Posted by aktur at Dec 08, 2014 08:29

working, thank you

Posted by szejkindudi at Dec 08, 2014 21:51
Document generated by Confluence on Jun 05, 2016 09:35