HI @dexterbot
Here is the code for the openhab
Items
/* Thermostats /
/ Hall */
Number Hallway_Temperature "Temperature [%.1f]" <temperature> (Temperature, C_Hallway, gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_Temperature:temp" }
Number Hallway_SetPoint "HVAC/Heater set point " <temperature> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_SetPoint:hvac-setPoint-heat" }
String Hallway_FlowState "Mode of heater [%s]" <heating> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_FlowState:hvac-flow-state" }
Number Hallway_KnobTempVar1 "Knob temperature [%.1f]" <temperature> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_KnobTempVar1:var1" }
String Hallway_FlowMode "Running mode" <heating> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_FlowMode:hvac-flow-mode" }
Number Hallway_HystLowVar3 "hyst low [%.1f]" <temperature> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_HystLowVar3:var3" }
Number Hallway_HystHighVar4 "hyst high [%.1f]" <temperature> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_HystHighVar4:var4" }
Number Hallway_UpdateTimeVar5 "update time (s) [%d s]" <clock> (gMS) { channel="mysensors:hvacThermostat:gateway:Hallway_UpdateTimeVar5:var5" }
Things
Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/ttyUSB0", sendDelay=200, baudRate=115200, skipStartupCheck=true ] {
/** define things connected to that bridge here */
hvacThermostat Hallway_Temperature [nodeId="59", childId="0"]
hvacThermostat Hallway_SetPoint [nodeId="59", childId="0"]
hvacThermostat Hallway_FlowState [nodeId="59", childId="0"]
hvacThermostat Hallway_KnobTempVar1 [nodeId="59", childId="0"]
hvacThermostat Hallway_FlowMode [nodeId="59", childId="0"]
hvacThermostat Hallway_HystLowVar3 [nodeId="59", childId="0"]
hvacThermostat Hallway_HystHighVar4 [nodeId="59", childId="0"]
hvacThermostat Hallway_UpdateTimeVar5 [nodeId="59", childId="0"]
}
sitemap
Group label="Thermostats" icon="heating"{
Frame label="Hall"{
Text item=Hallway_Temperature
Text item=Hallway_FlowState label="State [%s]"
Setpoint item=Hallway_SetPoint label="Set point [%.1f]" icon="temperature" minValue="0.0" maxValue="32.0" step="0.1"
Text item=Hallway_KnobTempVar1 label="Knob temperature" //Knob temperature
Text item=Hallway_FlowMode //Running mode
Setpoint item=Hallway_HystLowVar3 label="Hysteresis L [%.1f]" minValue="0.0" maxValue="5.0" step="0.1"
Setpoint item=Hallway_HystHighVar4 label="Hysteresis H [%.1f]" minValue="0.0" maxValue="5.0" step="0.1"
Setpoint item=Hallway_UpdateTimeVar5 label="Update time (s) [%d]" minValue="1" maxValue="4096" step="1"
}
}