Number temperature items (2.3.x) seem to have moved over to UoM regardless of whether i wanted them to or not if I use the degree symbol in the item definitionā¦which is fine if I can get them back to decimals or whatever.
perhaps someone can tell me a better way to do thisā¦
I have a temperature and a setpoint. I want to set the hysteresis for opening/closing a vent but now with the numbers as QuantityType I cant get everything to play nice.
items:
even if I use it as just āNumberā if i have the degree F in the description it seems to have shifted over to a QT regardless of not having :Temperature attached to Number. so again, whatever, thatās fine if I can work with just the number, i just donāt know how to.
rule:
//var setpointMA = VT_Setpoint_Master.state as DecimalType
var setpointMA = new DecimalType(VT_Setpoint_Master.doubleValue)
var Number turnOntempMA = setpointMA - 0.5
var Number turnOfftempMA = setpointMA + 0.5
//var tempMA = Master_Temperature.state as DecimalType
var tempMA = new DecimalType(Master_Temperature.doubleValue)
if ( tempMA <= turnOntempMA && FF_Master_Vent_Trigger.state != ON ) {
I got that out of https://docs.openhab.org/configuration/rules-dsl.html (search quantitytype)
but no love. i tried a few other things but none of them work:
Rule āMaster Vent Control Strategyā: An error occurred during the script execution: Could not invoke constructor: org.eclipse.smarthome.core.library.types.DecimalType.DecimalType(java.lang.String)