I would like to be able to display and set the temperature threshold using the (+) (-) buttons.
The temperature detected by the system is shown in a word, which sets and returns the value of the SP1 setpoint, in ° Kx10
(es. temperature detected by 2980 it means (2980-2730)/10= 25.0°C).
All setpoints can be set between 10.0 and 35.5°C a step di 0,1°C
I tried the following, but the selection of the setpoint shows me the word data and not i ° C …
maybe it would take a rule that performs the conversion from ° C to degrees K and set it in the word …
but I’m a beginner and I do not know how to solve
I would like if possible buttons (+) (-) or setpoint on the same line of temperature data
config
modbus:serial.O22.connection=/dev/ttyUSB0:19200:8:none:1:rtu
modbus:serial.O22.id=1
modbus:serial.O22.start=278
modbus:serial.O22.length=1
modbus:serial.O22.type=holding
Items
Number TemperaturaNotteSP1 “Temp. Notte-SP1 [%.1f °C]” (Termostato)
Number Temp_NotteSP1 “Temp. Notte SP1 [%d]” (All) {modbus=“O22:0”}
sitemap
Text item=TemperaturaNotteSP1 label=“Set Point 1 [%.1f °C]” icon=“temperature"
Setpoint item=Temp_NotteSP1 label=”-" icon="" minValue=2830 maxValue=3085 step=1
rule
rule "temperatura_NotteSP1"
when
Item Temp_NotteSP1 changed
then
var Number TnSP1 = Temp_NotteSP1.state as DecimalType
TemperaturaNotteSP1.postUpdate((TnSP1 - 2730) / 10)
end
ciao grazie