Better update for iOS battery state?


#1

I am using sensor.<device_name>_battery_state to power my automations. Specifically I want my Blink cameras to arm when the battery_state goes “Charging” in the evening (I went to bed), and disarm when it goes to “Unplugged” in the morning (I woke up).
But the sensor is very slow to update. I often see from logs that it goes to Charging state about an hour after I plug my phone. And the same with when I unplug it. Is there any way to make this more robust?


#2

I believe that’s because the app only sends an update on major movement (gps location). With that info comes the battery level. Same was true for owntrack. so I stopped using this for automations…