Google Assistant unable to reach Xiaomi Temperature Sensor

Hey guys…

With the new 0.65 version how do I get google assistant / google home to tell me my room temperature with Xiaomi temperature sensors? I understand we need to show them as thermostat. I have it setup but google still says unable to reach bedroom temperature…

What’s wrong in my config

google_assistant:
  project_id: homeassistant
  client_id: CLIENTID
  access_token: TOKEN
  agent_user_id: [email protected]
  api_key: APIKEY
  exposed_domains:
    - switch
    - light
    - group
    - climate
  entity_config:
    switch.living_room:
      name: Living Room Temperature
    switch.second_bedroom:
      name: Bedroom Temperature

climate:
  - platform: generic_thermostat
    name: Living Room
    heater: switch.living_room
    target_sensor: sensor.temperature_158d0001fa985e
  - platform: generic_thermostat
    name: Bedroom
    heater: switch.second_bedroom
    target_sensor: sensor.temperature_158d0001fa9917

Check the 0.65 release notes:

Google Assistant integration: It is no longer possible to override the domain that Home Assistant uses for an entity. This was bound to go wrong when we would test supported features for different domains. Also removed support for disguising temperature sensors as thermostats. We should follow the traits that Google offer us and not offer things that will only work half. (@balloob - #12959) (google_assistant docs) (light docs) (breaking change)

Thanks

So is there any current / new solution which allows us to query temperature via google assistant?

Not that I know of at the moment, we just have to wait for an update that bring support for these sensors…

Thanks… Will wait!!! :slight_smile:

If anyone has any way of doing this… please share the code :slight_smile:

I was hoping to use a generic thermostat to access my temperature. Sensors via Google assistant too.

Shame it is not working. Thanks for sharing.

Any success stories here yet?

I have my Google Assistant working with Xiaomi Temperature Sensors (using HA 0.70, but worked with previous versions too). The trick was to create “dummy” (unused) input_boolean switches which act as a heater for the climate component (generic thermostat). The Thermostat and the input_boolean aren’t used anywhere else, and made sure that they are off (initial_operation_mode: “off”)

My configuration.yaml :

input_boolean:
  dummy_kitchen:
    initial: off

climate:
  - platform: generic_thermostat
    name: Kitchen
    heater: input_boolean.dummy_kitchen
    target_sensor: sensor.temperature_158d0001f4eb94
    initial_operation_mode: "off"

google_assistant:
  project_id: !secret ga_project_id
  client_id: !secret ga_client_id
  access_token: !secret ga_access_token
  agent_user_id: !secret ga_agent_user_id
  api_key: !secret ga_api_key
  expose_by_default: true
  exposed_domains:
    - switch
    - light
    - climate
    - cover

Hope this helps anyone with Xiaomi Temperature Sensors.

2 Likes

thanks @hiscorebob , this worked perfectly for me.

The assistant response still includes the off status as expected, would be great to get rid of that somehow.