micware
(Michiel)
September 13, 2020, 11:55am
1
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
rpwong
(Russ)
September 13, 2020, 7:00pm
2
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
denominator
(James Bowler)
September 14, 2020, 4:40am
3
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" }
Max0x19
(Max)
November 21, 2020, 9:08pm
4
Works fine.
However I noticed that minimum temperature is 10degrees.
Outdoor I can’t show temperature below 10degrees.
Could you help me?
Max0x19
(Max)
November 22, 2020, 11:09pm
6
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.
denominator
(James Bowler)
November 22, 2020, 11:48pm
7
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.
Max0x19
(Max)
November 23, 2020, 10:52pm
8
Many thanks .
Unfortunately I’m not a developer.
However I’m not understanding, does this issue affect OH or GAssistant?
michikrug
(Michael Krug)
November 25, 2020, 11:01am
9
Try adding [ thermostatTemperatureRange="0,30" ]
to your thermostat item (with whatever values you may think make sense).
Afterwards, resync your devices.
Max0x19
(Max)
November 30, 2020, 10:25pm
10
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?
michikrug
(Michael Krug)
November 30, 2020, 10:33pm
11
1 Like