For a while now I’ve been using a couple of Kobo Clara HD e-readers with HADashboard as remotes for my Home Assistant setup. Unfortunately the Kobo browser doesn’t support Lovelace and recent updates broke full-screen so I was looking for something better.
I looked at running something on top of the Linux system already running on the e-reader but it was a bit of a mess and the versions of all the software were ancient. So in a terrible case of yak shaving I ended up using Yocto Linux to build my own Linux distribution and writing a Python dashboard application to run on that.
The code is now in a state where it’s working for everyday use for my husband and I and not too embarrassing to let other people look at. The dashboard application is called HAslate and it looks like this:
At the moment it supports simple sensors and switches, since that’s pretty much all we use these for. I’m planning to add graphs and maybe support for setting light colours, as well as support for multiple pages in the UI.
If you can find (or build) a Linux system for the Kobo Touch that can run Python, pygame and SDL then it should work. You’ll probably have to edit SCREEN_SIZE in haslate.py for the screen size of the device.
Probably, if it’s a reasonably recent Debian version. As long as it has Python version 3.8 or higher you should be able to use pip install -r requirements.txt to install the other stuff.
Hm. No luck; my Kobo Touch is an early version that doesn’t have an internal SD and I can’t find much information on how to run stuff of the external SD. ! got there: External Booting for Kobos (aka boot from external SD card) - MobileRead Forums but the last post in there doesn’t look good (and I’m in the same situation). Too bad, I have this Kobo I’m no longer using and would have loved to give your project a try
I had unused Kobo Touch N905B, which has internal SD. So I installed the only “alive” linux image I found, Debian with KoboWm window system.
Wrote a python3 script that connects to MQTT and reads sensors, all hardcoded, no yaml. Right now I’m testing of using wifi only once every 15 minutes, to save battery. Transmits battery level to MQTT (and HA). UI is tkinter, which means it’s possible to turn it to landscape mode, but then KoboWm also needs some changes ( it’s also python)
I’m trying to put your dashboard in my N905B but i’m stuck at the first step, i can’t get the kobowm to work, i don’t know how to get my original sd card to an img in order to open it with hex editor, can you help me ?
thanks
Thanks for the reply
Since my question, i managed to get kobowm to work on my N905B, now i try to update/install requirements in order to get things to work, but i’m stuck with old keys expired …