DIY-Viking

If you want something done right…

Force sensor update

I have made automations to stop charging Phone, Tablet and smartwatch at 80% battery capacity. I hope to increase the life-time of the batteries by doing this. I was having the problem that the battery level for my Pixel watch was only updating once an hour. This meant I could not capture the moment it was at 80% charge. It always charged to 100%. Then I found I could “force” sensor update by sending a notification to the device. By sending “command_update_sensors” to the watch, the battery level is updated. I run the following every 1 minute when the battery is being charged:

action: notify.mobile_app_google_pixel_watch_04bg
data:
  message: command_update_sensors

This allows me to trigger switching off the charger at 80%, and stop sending the command every minute. When the battery is not being charged, I send the command every 10 minutes to better catch the 25% level that will trigger the charge cycle.

Hägar

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top
WordPress Appliance - Powered by TurnKey Linux