sibbl / hass-lovelace-kindle-4

How to build your own Kindle 4 photo frame displaying your Home Assistant Lovelace panel
MIT License
310 stars 6 forks source link

Feature idea: Report back battery to backend/home assistant #6

Closed marciogranzotto closed 1 year ago

marciogranzotto commented 3 years ago

It would be useful to report back the battery status and charging status to the docker service. Then the service could update a Home Assistant sensor through MQTT or something like that.

Doing that it's possible to have the battery level on the Lovelace dashboard.

I can help with that if I can find some free time to do it.

sibbl commented 3 years ago

This sounds like a good idea which I already tried in my first React rendering project, see its readme section. To avoid battery draining, I've sent the battery level with each image request to the server, which then updated it in Home Assistant.

I personally decided against implementing it in the new structure due to the fact that my kindle is plugged in all the time.

Mqtt actually sounds like a good approach which I've not tried yet. wget with a HTTP connection to Home Assistant might also be a solid solution. Having this logic directly on the Kindle would be pretty cool!

sibbl commented 1 year ago

Closing as this should've been resolved meanwhile: https://github.com/sibbl/hass-lovelace-kindle-screensaver#how-to-set-up-the-webhook