fruggy83 / openocean

27 stars 11 forks source link

State pattern for enocean:cumulativeValue #101

Open diRk262 opened 3 years ago

diRk262 commented 3 years ago

The receivingEEPId: A5_12_03 and channelTypeUID: enocean:cumulativeValue Logs the following warning:

[WARN ] [se.internal.SseItemStatesEventBuilder] - Exception while formatting value ‘16.9 ㎥’ of item Wasser_gesamt with format ‘%d %unit%’: d != java.math.BigDecimal

Currently the state pattern is defined as %d %unit%. However it should be defined as %.1f %unit%. The currentFlow channel should have the same problem.

diRk262 commented 3 years ago

Looks like this is also the case for channel linked to a Weatherstation (Multisensor).