How-to integrate HomePod Mini Sensors into Home Assistant When Direct Integration Isn't Possible

Another question…Everything is working fine but I have no history data on my two sensors. Does anybody know what’s wrong?

Show us some screenshots of your HomeKit setup.

This is my setup…It works great but no history data :thinking:



Try adding the state class and device class right under the state (so not in a separate attributes library).

Anyone else have a Humidity Sensor randomly drop to 1?
When I test the homekit automation it sends the correct value, but when running after a while it starts reporting as 1.

Nope… never happened.
Do you do some templates on it? Or is it unavailable?

Figured it out. Sometimes my homekit automation changes Humidity value to name, somehow :person_shrugging:

I hope someone can help me.

I createt the methode “B”.
With the temperature its all fine. But the humidity is not working.
I get an Error in Home Assistant: "Login attempt or request with invalid authentication from xxx.xxx.xxx.xxx (Homepod)

But I used the same token like for temperature.

I cant find the mistake, can someone help me? (Temperatur is working, Luftfeuchtigkeit not)


It should be “Bearer” not “Baerer”.

I have setup method B and its working fine for me but I have a question about why you need the template sensor to wrap the input number? I am using the input number in my API call and can see the value changing in HA

What am I missing? If I wrap the input number in a template sensor do I then use the template sensor in the API call or still use the input number?

I’m generally pretty technical but finding this highly confusing, with incomplete screenshots in various languages etc. Trying to do method B. I got the HA boolean and automation setup.

When I go to the iOS Home app to create an automation, I’m basically stymied there. I assume I need a “sensor automation” for the homepod mini temperature, but the only trigger values available are for when it rises above or below a given temp, no way to automatically provide status.

Any chance anyone can provide a series of clear screenshots setting this up, in English language?

1 Like

Did you create an input Boolean in HA? And exposed that to HomeKit? And then created an automation in HA which sets the Boolean to true every xx minutes?
That’s the trigger for the HomeKit automation. When the Boolean becomes true, HomeKit will run the automation.

Hey! You should have added Home Assistant to HomeKit as a bridge including only the input boolean (HomeKit Bridge integration). Now you should have a dedicated switch in Homekit. Make the automation like this:

Events: An accessory is controlled → Collection of HomeKit Sensors (the switch from HA) → When: Turns On

Then convert your automation to a shortcut (instead of selecting an accessory to control).

From here you can follow the original tutorial setting up the automation.

Does anyone know if the polling for temperature/humidity is done at the time the automation is run or if polling interval is handled on the backend by the Home Hubs? I ask in the case of battery-powered sensors. I would guess that, since a Home Hub would know a sensor is battery-powered, it would either update infrequently in the background or possibly only when a user request is made either via the Home app or Siri.

So this automation that runs every 2 minutes is either pulling in “stale” data from the Home Hub or creating frequent activity to drain the battery faster than usual on these sensors. Would it be wise to create a second instance of this automation to run every 5-10 minutes just for battery-powered devices?

What got me thinking was an Eve Weather that can store readings on-device and only push to the cloud when you access the device from the Eve app. I added it to HA through the HK device integration and a couple days later the battery died – assuming the default 30 second poll interval wore it down quickly.

I’m pretty sure it uses stale data. It will use the sensor data that is available right when the automation runs, and since the sensor could be in sleep mode, there is no way of waking it up, so it uses what data is available.

Easy way to test it though: set the automation to update every 10 seconds. And then check the HA stats when the data is changed (when temperature is rising rapidly). Even though I think most sensor wake up on time and temperature change, so it might not work.

  1. Reduce the number of decimals (I would like 17.7 instead of 17.7000007629395)

Hello @martinblq , have you ever solved this point?
In case could you kindly share what you done? That would be much appreciated.

Nick

Home App Limited Shortcut for Sensors
*Updated previous link as I discovered an issue that prevented sensors besides the first in the list from being pushed.

This may be overkill for most, but after spending time to make it easier to add sensors later, I figured it could be helpful for others. This does push values in degrees Farenheit, but shouldn’t be too troublesome to modify and keep the values as Celsius. I have only tested this to run on HomePod Mini as a Home Hub, so unsure if it will work on an AppleTV or not.

Anyone having issues since updating the HomePods to 18.0? Mine just dropped off and that’s the only new thing I could think to cause it.

Nope, nothing here. They’re working fine at 18.0.

Yes, had to remove both HomePods from HA, restart, then re-add them, and restart again.

You can tell if you’re having the same issue I was having by checking your HomePod version number in Home Assistant. In the Iphone Home app they show as version 18.0, which is correct, but in home assistant they were still showing as the previous version (17.6 I think but could be wrong.) If this is the case for you, just remove and readd as per above.