how do you ask them the humidity? because to me it says that the sensor is not accessible, I have a DHT11 and the humidity calculates it as a percentage
You need to update your configuration, the google assistant component no longer uses customize.yaml to expose entities. Read the updated documentation.
I got this “working”, but I’m getting some strange responses from Google Assistant. I have my google_assistant entity_config setup as shown below. I resync my devices and then in the Google Assistant android app settings under Home control, I assign sensor1 and sensor2 to the room “Wine Cellar”. Note, I am using the MQTT sensor HA component.
If I ask “What is the wine cellar temperature”, I get the response “Sensor 1 is off and it’s currently 48 degrees. Unable to reach sensor 2.”
If I ask “What is the wine cellar humidity”, I get the response “Sensor 2 shows the humidity is 58 percent. Unable to reach sensor 2.”
So… I guess this is just how this works currently? Has anyone found a way to configure this so it doesn’t tell you about the other sensor, and so it doesn’t say the temperature sensor “is off”?
Its the way you are naming your entities, you have asked wine cellar so it queries both sensors. If you ask ‘hey google what is the temperature in sensor1?’ it will give you the sensor state and value only. Or ‘hey google what is the humidity in sensor2?’ will respond with just the humidity value.
Because we don’t expose everything, you need to state expose: true to google assistant, type is climate to expose temperature and the value required must be C/F:
To call the sensor from google assistant you will need to state something similar to ‘hey google what is the temperature in the kitchen?’. You will receive the sensor state and temp value.
The sensor for humidity is exposed in a similar manner to temperature, type being climate. This requires your sensor measurement to be %.Take note of the sensor name being exposed to google as it must be unique to work and I’ve found putting sensor after the room name to make it feel natural:
Post your updated entity_config and show or tell me the name you have the sensor in your google home app. The only time I get an error like that is if it is trying to get the humidity from the temperature sensor.
@rwgamer It doesn’t let me put type: climate in the config. Here is the error I get:
2018-04-13 14:09:50 ERROR (MainThread) [homeassistant.components] Invalid config for [google_assistant]: [type] is an invalid option for [google_assistant]. Check: google_assistant->google_assistant->entity_config->sensor.temperature->type. (See /home/homeassistant/.homeassistant/configuration.yaml, line 44). Please check the docs at https://home-assistant.io/components/google_assistant/
Anyone willing to share how to get Google Home to be able to access sensors in Hass.io using the Google Assistant component?
I have several Xiaomi and 433 MHz sensors in Hass.io but I can seem to get Google Home to get the values. I want to be able to ask my Google Home “what’s the temperature in the living room?”.
@Florian When it comes to googleassistant how do you get that exposed because i tried to expose through domain (- climate) or individually as entity but no luck.