HI Y’all,
Probably an easy noob question, but couldn’t find the answer anywhere.
I’m setting up Zigbee Thermostat that are linked to a Sonoff ZBBridge (flashed with Tasmota, hence going through MQTT and therefore OpenHab).
I’ve been able to identify the “stateTopics”, by looking in my MQTT explorer and getting the proper names, but can’t figure out how to determine the name to use to send command to the thermostat.
Exemple, to read the SetPoint, I configured the following thing and items and it’s working just fine. I mean, If I chnage the setpoint on the thermostat, I can see the new setpoint value in OH.
Thing
Thing mqtt:topic:ThermoBureau "Thermostat Bureau" (mqtt:broker:MQTTBroker) @ "Bureau" {
Channels:
Type number : Temperature "Temperature" [stateTopic="tele/THERMO_BUREAU/SENSOR", transformationPattern ="JSONPATH:$.THERMO_BUREAU.Temperature" ]
Type number : SetPoint "SetPoint" [stateTopic="tele/THERMO_BUREAU/SENSOR", transformationPattern ="JSONPATH:$.THERMO_BUREAU.OccupiedHeatingSetpoint" ]
Type number : LocalTemperature "LocalTemperature" [stateTopic="tele/THERMO_BUREAU/SENSOR", transformationPattern ="JSONPATH:$.THERMO_BUREAU.LocalTemperature" ]
Type number : TemperatureTolerance "Tolerance" [stateTopic="tele/THERMO_BUREAU/SENSOR", transformationPattern ="JSONPATH:$.THERMO_BUREAU.TemperatureTolerance" ]
Type number : PIHeatingDemand "Demande" [stateTopic="tele/THERMO_BUREAU/SENSOR", transformationPattern ="JSONPATH:$.THERMO_BUREAU.PIHeatingDemand" ]
}
Items
// Thermostat Bureau
Number ThermoBureau_SetPoint "SetPoint " <temperature> (pBureau) {channel="mqtt:topic:ThermoBureau:SetPoint"}
Number ThermoBureau_Temperature "Temperature" {channel="mqtt:topic:ThermoBureau:Temperature"}
Number ThermoBureau_LocalTemperature "LocalTemperature" {channel="mqtt:topic:ThermoBureau:LocalTemperature"}
Number ThermoBureau_TemperatureTolerance "TemperatureTolerance" {channel="mqtt:topic:ThermoBureau:TemperatureTolerance"}
Number ThermoBureau_PIHeatingDemand "PIHeatingDemand" {channel="mqtt:topic:ThermoBureau:PIHeatingDemand"}
Problem is, I don’t know what to put in CommandTopic… Probably something like
commandTopic="cmnd/THERMO_BUREAU/????"
But have no clue how to identify or where to look for.
Thanks for your help!