This enables home-assistant to monitor and controll the screen of an android device currently viewing your lovelace UI - for example a tablet used as a home automation dashboard. It also lets you add a sensor for motion in front of the devices camera, as well as battery and charging status.
Edit: To answer a common question
Yes. This can also be done via the Fully Kiosk Browser REST API. But this method is faster because the data is pushed from the device, rather than polled by home-assistant. Especially with the motion detection.
Really great plugin! Thank you!
I have 2 devices and I have them set up correctly and they are working fine.
I have 2 requests:
Can you make it so the icon is changeable from homeassistant? By changing the device class to “motion” it doesnt allow to change the icon.
Another request is to have the battery and the charging info, as separate sensors. That would be really convenient to make some automations work, or to have them in the UI as badges.
It looks like I doesnt work for me. I re-downloaded (also copy-pasted the raw) your new file and even changed the version by adding ?2 at the end of the ui-lovelace. Also cleared my cache. I also tried to change the device classh from HA customize menu. Nothing…
The script runs in Fully Kiosk Browser on the device itself. That’s why it’s faster than using the REST interface, and that’s why it only works if Fully Kiosk is open…