I know this is already solved but the topic just fits fine.
Problem:
I can ask for the current temperature and set a new temperature but Google always tells me that my thermostat is turned off. Also I can’t ask for the currently set temperature.
My configuration:
I have a group to use as thermostat via Google.
Group gThermostatSZ "Thermostat Schlafzimmer" <heating> [ "Thermostat" ]
To the group i added three items. Two are defined in Paper UI
Paper UI: HeizungSchlafzimmer_4_ActualTemperature
"state": "20.20 °C",
"stateDescription": {
"minimum": -10,
"maximum": 56,
"step": 0.1,
"pattern": "%.2f %unit%",
"readOnly": true,
"options": []
},
"editable": true,
"type": "Number:Temperature",
"name": "HeizungSchlafzimmer_4_ActualTemperature",
"label": "Heizung Schlafzimmer IST Temperatur",
"category": "Temperature",
"tags": [
"CurrentTemperature"
],
"groupNames": [
"gTemperatures",
"gTemperatures_IST",
"gThermostatSZ"
]
Paper UI: HeizungSchlafzimmer_4_SetTemperature
"state": "18.00 °C",
"stateDescription": {
"minimum": 4.5,
"maximum": 30.5,
"step": 0.1,
"pattern": "%.2f %unit%",
"readOnly": false,
"options": []
},
"editable": true,
"type": "Number:Temperature",
"name": "HeizungSchlafzimmer_4_SetTemperature",
"label": "Heizung Schlafzimmer SOLL Temperatur",
"category": "Temperature",
"tags": [
"TargetTemperature"
],
"groupNames": [
"gTemperatures",
"gThermostatSZ"
]
For the third item needed in the group i defined this item:
String HeizungSchlafzimmer_Google_ControlMode "Heizung Schlafzimmer Google Mode" <settings> (gThermostatSZ) [ "homekit:HeatingCoolingMode" ]
And set the state to ON
.
"state": "ON",
"editable": false,
"type": "String",
"name": "HeizungSchlafzimmer_Google_ControlMode",
"label": "Heizung Schlafzimmer Google Mode",
"category": "settings",
"tags": [
"homekit:HeatingCoolingMode"
],
"groupNames": [
"gThermostatSZ"
]
With this configuration the thermostat is still considered offline. I find out that i am able to set the item to on
, off
, cool
and heat
via voice commands.
Solution:
While writing this post i got a “solution” (more like a workaround) by testing. Google seems to consider the thermostat offline when the mode is on
or off
.
I can set the mode to cool
or heat
without trigger any other change to the thermostat but if the mode it set to on of those it is considered on by google. On this modes i can then ask for the set temperatur as well.
I think i will set the mode permanently to heat
and don’t use the mode in any way. But i can also think about using rules to translate the heat
and cool
modes to modes my Homematic thermostat understands an set them accordingly.