Yes but with the new syntax for an item with Number:Temperature and [%.1f %unit% :
Number:Temperature ZwaveDvTemp "Temperatur DB [%.1f %unit%]" (gZwave) {channel="zwave:device:564c8ec1:node6:sensor_temperature"}
I get this error for my calibration rule:
12:03:15.702 [ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Calibration of Devolo Temperature': Could not cast 23.8777777777777777777777777777778 °C to org.eclipse.smarthome.core.library.types.DecimalType; line 24, column 34, length 32
Here is the rule:
rule "Calibration of Devolo Temperature"
when
Item ZwaveDvTemp changed or
Item DvTempCalibWert changed
then
ZwaveDvTempCorr.postUpdate( (ZwaveDvTemp.state as DecimalType) + (DvTempCalibWert.state as DecimalType) )
end
I changed it from DecimalType to QuantityType but I don’t know if this is correct:
rule "Calibration of Devolo Temperature"
when
Item ZwaveDvTemp changed or
Item DvTempCalibWert changed
then
ZwaveDvTempCorr.postUpdate( (ZwaveDvTemp.state as QuantityType) + (DvTempCalibWert.state as QuantityType) )
end
rule "Calibration of Devolo Temperature"
when
Item ZwaveDvTemp changed or
Item DvTempCalibWert changed
then
ZwaveDvTempCorr.postUpdate((ZwaveDvTemp.state as QuantityType<Number>).doubleValue + (DvTempCalibWert.state as QuantityType<Number>).doubleValue)
end
Actually, it would be better to post in the new Development / Core category for something like this I think. Or open a new feature request. Unfortunately, I don’t know the correct repo to post to at this time. Perhaps the openhab2-addons repo.