I have started my migration to OH2 from OH1. I have created the items and a simple sitemap. There seems to be some issue with my rfxcom things/items. They where discovered correctly and I have linked the relevant channels to items.
When I bring up the sitemap I get an exception in the log and the item in the UI shows up as Err
Exception while formatting value '5.20000000000000017763568394002504646778106689453125' of item Kyl_Temperatur with format '%d °C': java.util.IllegalFormatConversionException: d != java.math.BigDecimal
I have found a similar issue in github issue #351. But that’s for another binding.
My item-definition is as such:
Number Kyl_Temperatur "Kyl Temperatur [%.1f] °C" <temperature> (gKok)
The same formatting string works in my 1.7.1 setup. It also looks like everything is ok up until the UI-gets hold of it.
At least that’s what I gather from the logs. Hopefully it’s just me that messed up something obvious. It also seems like the values sometimes shows up in th UI. Those seem to be values that can be converted as integers.
2015-12-27 20:50:43 [DEBUG] [.r.handler.RFXComBridgeHandler:369 ] - Message received: Raw data = 0A5209147F000034350169, Packet type = TEMPERATURE_HUMIDITY, Seq number = 20, Sub type = VIKING_02035_02038, Device Id = 32512, Temperature = 5.2, Humidity = 53, Humidity status = COMFORT, Signal level = 6, Battery level = 9
2015-12-27 20:50:43 [DEBUG] [s.c.d.internal.PersistentInbox:142 ] - Discovery result with thing 'rfxcom:temperaturehumidity:efdd2b01:32512' not added as inbox entry. It is already present as thing in the ThingRegistry.
2015-12-27 20:50:43 [INFO ] [ome.event.ThingStatusInfoEvent:43 ] - 'rfxcom:temperaturehumidity:efdd2b01:32512' updated: ONLINE
2015-12-27 20:50:43 [DEBUG] [b.rfxcom.handler.RFXComHandler:167 ] - Received message from bridge: rfxcom:bridge:efdd2b01 message: Raw data = 0A5209147F000034350169, Packet type = TEMPERATURE_HUMIDITY, Seq number = 20, Sub type = VIKING_02035_02038, Device Id = 32512, Temperature = 5.2, Humidity = 53, Humidity status = COMFORT, Signal level = 6, Battery level = 9
2015-12-27 20:50:43 [INFO ] [smarthome.event.ItemStateEvent:43 ] - Kyl_Temperatur updated to 5.20000000000000017763568394002504646778106689453125
2015-12-27 20:50:43 [DEBUG] [o.i.m.internal.MyOpenHABClient:492 ] - Sending update '5.20000000000000017763568394002504646778106689453125' for item 'Kyl_Temperatur'
2015-12-27 20:50:43 [INFO ] [ome.event.ThingStatusInfoEvent:43 ] - 'rfxcom:bridge:efdd2b01' updated: ONLINE
2015-12-27 20:50:43 [INFO ] [s.event.ItemStateChangedEvent :43 ] - Kyl_Temperatur changed from NULL to 5.20000000000000017763568394002504646778106689453125
2015-12-27 20:50:43 [WARN ] [s.u.i.items.ItemUIRegistryImpl:320 ] - Exception while formatting value '5.20000000000000017763568394002504646778106689453125' of item Kyl_Temperatur with format '%d °C': java.util.IllegalFormatConversionException: d != java.math.BigDecimal
My z-wave items does not show the same error. It’s the 1.8.0 snapshot
Does anyone have any ideas?