Exposing "xiaomi aqara temperature humidity sensor" to google assistant

Tags: #<Tag:0x00007f616e6379d8> #<Tag:0x00007f616e637708> #<Tag:0x00007f616e637488>

I have 7 “xiaomi aqara temperature humidity sensor” which I want to expose to google assistant

i.e. I have the following items

Number E1_temperature_kitchen “Temperature kitchen” {channel=“mihome:sensor_weather_v1:158d0001e42459:temperature”}

Number E1_humidity_kitchen “Humidity kitchen” [CurrentHumidity] { channel=“mihome:sensor_weather_v1:158d0001e42459:humidity”}

Number E1_airpressure_kitchen “Air pressure kitchen” { channel=“mihome:sensor_weather_v1:158d0001e42459:pressure”}

I read https://www.openhab.org/docs/ecosystem/google-assistant/#thermostats , https://www.openhab.org/docs/configuration/items.html#item-definition-and-syntax and

i have tried combinations like this:

Number E1_temperature_kitchen "Temperature kitchen" <temperature> { channel="mihome:sensor_weather_v1:158d0001e42459:temperature", ga="thermostatTemperatureAmbient"}

Number E1_temperature_kitchen "Temperature kitchen" <temperature> { ga="thermostatTemperatureAmbient" }  {channel="mihome:sensor_weather_v1:158d0001e42459:temperature"}

Number E1_temperature_kitchen "Temperature kitchen" <temperature> { ga="thermostatTemperatureAmbient" channel="mihome:sensor_weather_v1:158d0001e42459:temperature"}

Does anybody have experience with this? and could show me an example?
thanks in advance

Per the documentation:

Thermostat requires a group of items to be properly configured to be used with Google Assistant.

There must be at least three items as members of the group:

  • (Mandatory) Mode: Number (Zwave THERMOSTAT_MODE Format) or String (off, heat, cool, on, …). { ga="thermostatMode" }
  • (Mandatory) Temperature Ambient: Number. { ga="thermostatTemperatureAmbient" }
  • (Mandatory) Temperature Setpoint: Number. { ga="thermostatTemperatureSetpoint" }

But the best thing you can do is to wait for @michikrug to release the new temperature sensor functionality to production, and then you’ll just need to add ga="TemperatureSensor" to your items.

1 Like


Group g_HK_Kitchen_TSTAT "Kitchen Thermostat" { ga="Thermostat" }
Number E1_temperature_kitchen "Kitchen Temperature" (g_HK_Kitchen_TSTAT) { ga="thermostatTemperatureAmbient", channel="mihome:sensor_weather_v1:158d0001e42459:temperature" }