Exposing "xiaomi aqara temperature humidity sensor" to google assistant

Tags: #<Tag:0x00007efec6bbefd8> #<Tag:0x00007efec6bbedd0> #<Tag:0x00007efec6bbebf0>

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
https://community.openhab.org/t/temperature-sensor-and-google-assistant/95057/6

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

Try

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" }

Works fine.
However I noticed that minimum temperature is 10degrees.
Outdoor I can’t show temperature below 10degrees.
Could you help me?

OK.
Let’s keep me updated please.
At the moment ga = "thermostatTemperatureAmbient is always off
it does not drop below ten degrees.OH works fine.


I sorry I can’t test low temp last night was 21deg and the lowest min this week is 19deg.

This doc might give some help.

Many thanks .
Unfortunately I’m not a developer.
However I’m not understanding, does this issue affect OH or GAssistant?

Try adding [ thermostatTemperatureRange="0,30" ] to your thermostat item (with whatever values you may think make sense).

Afterwards, resync your devices.

Hi Michael,sorry for the late reply.I tried as you suggested, but unfortunately Google Assistant app still shows a minimum of 10 degrees. However I find out that when I ask him "Which is the temperature in "External? ", Google speaker answers the right temperature. What do you think?

As also posted here https://github.com/openhab/openhab-google-assistant/issues/179#issuecomment-735378719
This seems to be a known issue at Google’s side.

1 Like