Hi ,
I am planning to have my old Android tablet as HA Dasboard on my wall.
The setup in my mind is to Connect the Android tablet to a Sonoff Socket (Tasmotised) & hang it to the wall.
I am thinking if I can automatically Charge My Android Tablet say when Battery goes less than 10% the Sonoff should Turn ON automatically. Similarly, Stop Charging my Android tablet when Fully charged, (100% charge is reached)
I would assume you need to download the home assistant app onto your android device and link it up to your home assistant. It will show up as a device_tracker device. You should be able to pull the battery percentage out of it.
I’m sure there are other ways as well but you may need to know more about the android os.
I don’t have an android, i have an iphone. There is an iOS app and i assumed there was an android app because it’s easier to develop for android than iOS.
https://www.ozerov.de/fully-kiosk-browser/ you run this app on your tablet to display HADashboard, and that app can give you a sensor in HA with the method I described above which will give you the battery readout.
After Installing the Kiosk Browser on my Tab & loading HA dashboard URL
& adding template sensor Code in Config.yamal
i see the following Image in my HA with No Sensor value displayed.
Whats wrong i have done? Please help
I’m reading this because I’m planning to do the same thing. A bit off-topic question though: why so complicated id:s that won’t tell you anything (1532547735836 & 1532548478810)?