This may be more related to the min_max integration, but it may be a more generic issue with syncing entities with Google Assistant.
I have a couple of temperature sensors that I use min_max to average, and then I want to expose the result to Google Assistant.
The issue is that syncing the devices does not expose that sensor. I dumped the diagnostic data and confirmed that sensor device is not part of the sync data.
I think this is because min_max is not exposing the device_class, and so the integration rejects the device as not matching a known Google type (temperature).
If I use one of the temperature sensor directly, it works,
So is the assumption that any sensor that is able to sync with Google Assistant should have a valid DeviceClass?
It would seem sensible that min_max should just set the device class from one of it’s child sensors, and then the sync would work.
I have yet to get anything but temperature sensors to sync with Google Home/Assistant. I’ve been trying for well over 24 months now and no luck for anything beyond temperature. I think the issue is on Google end. If you have any insights on how to get other attributes through to Google, that would be much appreciated! I am a bit behind on Home Assistant version, maybe something is better with newer versions. I am running 2021.12.10. I can request temperature reading fine, but no love for humidity. Note the different, I think, DeviceClass as you point out.
Interesting, my sensors seem to have the proper device classes set when the sensors are defined. And these carry thru to Home Assistant. See my sensor definitions below and the result on the HA developer page. However as showed in my prior post, in the Google Home section of HA, the humidity and temperature objects seem to be different. If you can share with type of humidity sensor you are using and what the attributes look like in the HA developer page and HA Google Exposed entities page, I would appreciate this. Thx.
The sensor is a Xiaomi WSDCGQ01LM Zigbee temperature/humidity sensor, connected by the MQTT integration. It was automatically discovered when I added that integration.
The entity info from Developer tools is:
I had removed the humidity sensor from the exposed devices, but just added it back it, and ran the ‘sync devices’ on the integration, and the humidity device appeared in my Google Home app.