[SOLVED] Crazy state presentation / syntax

Good evening,

wondering if somebody has a suggestion to fix this annoying problem I have:

I have 4 rooms in my house each with a thermostat (e-TRV) from Homematic. I have successfully connected this to Openhab and created a sitemap. But here is the thing, somehow a single thermostat is giving different valve opening values compared to the other rooms.

Other rooms will send something like 0.61 or 0.85 which Openhab will convert to 61 % and 85 % using the java syntax. But somehow this is not working with this one room. When I use the same formatting it will give 0.61 % for example (so this is already multiplied with 100).

When I look in the Homematic interface the values are the same for all rooms. No strange values and the diagrams/trends look how they suppose to look. It looks to me that something from Homematic to Openhab is going wrong but I cannot find the problem.

Hopefully someone has a solution. My OCD is killing me!

Hardware: Raspberry Pi 3 Model B+ // OS: Raspbian // Java Runtime Environment: build 1.8.0 201-b09 // openHAB version: 2.4.0 // Setup: Homematic CCU3 connected to Openhab2 using the Homematic Binding. Running and InfluxDB and Grafana to produce fancy graphs.

You would need to show your item definition and sitemap. This is where it’s defined how values are transformed for display.
Also check events.log what the ‘raw’ values are. Debug homematic binding (set:log debug org.openhab.binding.homematic in Karaf console) to see what OH receives.

Thanks for the reply. Got my “items” and log file fenced. The “kleineslaapkamer” (means small bedroom btw) is the one giving problems. You see that “kleineslaapkamer” is receiving the values differently.

Regards, Piet

Number  Current_Temperature_kleineslaapkamer "Current temperature [%.1f °C]"  <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3C026:1#ACTUAL_TEMPERATURE" }
Number  Target_Temperature_kleineslaapkamer  "Target temperature [%.1f °C]"   <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3C026:1#SET_POINT_TEMPERATURE" }
Number  Current_Valve_Opening_kleineslaapkamer "Valve opening [%.1f %%]"   <valve> (gvalve)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3C026:1#LEVEL" }

Number  Current_Temperature_picoslaapkamer "Current temperature [%.1f °C]"  <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9940AB3:1#ACTUAL_TEMPERATURE" }
Number  Target_Temperature_picoslaapkamer  "Target temperature [%.1f °C]"   <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9940AB3:1#SET_POINT_TEMPERATURE" }
Dimmer  Current_Valve_Opening_picoslaapkamer "Valve opening [%.1f %%]"   <valve>     (gvalve)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9940AB3:1#LEVEL" }

Number  Current_Temperature_groteslaapkamer "Current temperature [%.1f °C]"  <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3BFF0:1#ACTUAL_TEMPERATURE" }
Number  Target_Temperature_groteslaapkamer  "Target temperature [%.1f °C]"   <temperature> (gkamers)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3BFF0:1#SET_POINT_TEMPERATURE" }
Dimmer  Current_Valve_Opening_groteslaapkamer "Valve opening [%.1f %%]"   <valve>     (gvalve)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A3BFF0:1#LEVEL" }

Number  Current_Temperature_woonkamergroep "Current temperature [%.1f °C]"  <temperature> (gkamers)  { channel="homematic:HmIP-WTH-2:3014F711A0001F98A99F9530:000A98A9A4D320:1#ACTUAL_TEMPERATURE" }
Number  Target_Temperature_woonkamergroep  "Target temperature [%.1f °C]"   <temperature> (gkamers)  { channel="homematic:HmIP-WTH-2:3014F711A0001F98A99F9530:000A98A9A4D320:1#SET_POINT_TEMPERATURE" }
Dimmer  Current_Valve_Opening_woonkamervoor "Valve opening voor [%d %%]"   <valve>     (gvalve)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A39A23:1#LEVEL" }
Dimmer  Current_Valve_Opening_woonkamerachter "Valve opening achter [%d %%]"   <valve>     (gvalve)  { channel="homematic:HmIP-eTRV-2:3014F711A0001F98A99F9530:000A18A9A39AAB:1#LEVEL" }
11:28:48.775 [INFO ] [smarthome.event.ItemStateChangedEvent] - Current_Valve_Opening_kleineslaapkamer changed from 0.00000000 to 0.29000000
11:28:48.783 [INFO ] [smarthome.event.ItemStateChangedEvent] - homematic_HmIP_eTRV_2_3014F711A0001F98A99F9530_000A18A9A3C026_1_LEVEL changed from 0 to 29

11:33:13.398 [INFO ] [smarthome.event.ItemStateChangedEvent] - Current_Valve_Opening_groteslaapkamer changed from 0 to 21

11:43:12.398 [INFO ] [smarthome.event.ItemStateChangedEvent] - Current_Valve_Opening_picoslaapkamer changed from 0 to 32
11:43:12.403 [INFO ] [smarthome.event.ItemStateChangedEvent] - homematic_HmIP_eTRV_2_3014F711A0001F98A99F9530_000A18A9940AB3_1_LEVEL changed from 0 to 32

Because you defined Current_Valve_Opening_kleineslaapkamer to be a Number while you defined the other ones to be of Dimmer type, so change that.
Use %d for Dimmer and %f for Number types to display.

Can’t believe I missed that :sweat: never guessed that there was the problem. Thanks for the help.

Regards Piet