I am running OH3.1 on a NUC and use DSL rules.
My km200 (buderus heating) temperatures are setup as temperature:
Number:Temperature Heat_HzSollDay "Wunsch-Temperatur" <temperature> (G_Num,G_Heat,gLivingHeating) ["Setpoint", "Temperature"] {channel="km200:heatingCircuit:659200271:hc1:temperatureLevels_day", alexa="ThermostatController.targetSetpoint" [scale="Celsius"]}
I used to control it in my rules:
Heat_HzSollDay.sendCommand(20)
However, I get:
2021-07-25 07:27:20.480 [WARN ] [0.internal.handler.KM200ThingHandler] - Unsupported Command: 20 °C Class: class org.openhab.core.library.types.QuantityType
First I thought it’s related to this issue, but it’s obviously about basicUI only:
https://github.com/openhab/openhab-webui/issues/765
I can control the temperature using Karaf:
openhab:update Heat_HzSollDay 20
EDIT:
These do not work in DSL rules:
Heat_HzSollDay.sendCommand(22 as Number)
Heat_HzSollDay.sendCommand(22|"°C")
Heat_HzSollDay.sendCommand(22.0)
Heat_HzSollDay.sendCommand(22 °C)
Heat_HzSollDay.sendCommand(22°C)
the first two return:
Unsupported Command: 22 °C Class: class org.openhab.core.library.types.QuantityType
the other two won’t load:
Configuration model 'heating.rules' has errors, therefore ignoring it: [96,29]: no viable alternative at input '°C'