I’m currently using shop E-ink tags to display information from Home Assistant using OpenEPaperLink and this Home Assistant Addin.
This is working superbly allowing low cost e-ink tags to display low frequency update sensors , such as “Bin day” , “BEV current charge”, “Number of items on shopping list”, Weather reports , etc.
The openPaper addin creates new images for the tags via a custom service call and does not currently create a GUI preview.
As the tags update very infrequently, editing and amending data on the tags via the service calls can be very frustrating, having to wait for the new display to update on the tags.
NONE OF THESE HACKS ARE NOW REQUIRED. EPAPER LINK NOW HAS BUILT IN CAMERA SENSORS. PLEASE USE THESE INSTEAD OF FOLLOWING THESE INSTRUCTIONS
However, I discovered the OpenEPaper Addin stores the updated images as jpg files in /config/custom_components/open_epaper_link, before sending the image to the OpenEPaper AP.
More importantly these files can be viewed using the standard file editor in Home Assistant!
Since these are just standard jpg files, why not create a Dashboard to simply view the tags. The following works, but you need to go through a few “hoops”. The file browser method above is simpler and works OK.
To view JPG’s files in Home Assistant they need to be in the local directory see: -
https://www.home-assistant.io/integrations/http#hosting-files
Once you have created the WWW folder we need to copy the JPG’s files into it.
To copy the files we need to create a shell script.
First create a new folder in /config with the file editor called shell. Then create a new file in the shell folder called epaper_copy.sh. Add the following script.
cp -f /config/custom_components/open_epaper_link/*.jpg /config/www
Save the file. We now need to run this script via a shell service command.
Create the shell command in the configuration. yaml
</s> <s>shell_command:</s> <s> epaper_copy: ></s> <s> bash /config/shell/epaper_copy.sh</s> <s>
Reboot Home assistant and confirm you have a new Shell Command: epaper_copy in Services tab in developer tools.
Run the service command and confirm the files have copied into the WWW folder using the file Editor.
You now have the raw JPG files which can be displayed in dashboard Picture-elements, picture glance and picture entity cards. To update the pictures, you simply run the shell service.
However, these static picture cards do not update correctly in Home Assistant see :-
Refresh Cached images in Lovelace Picture-Elements (maybe other places too) - #13 by janser01
I found the simplest solution was to create a “file” camera for each tag. These update perfectly on my Dashboards. They have the added advantage of being an entity so can used on all cards, using “more info” will display the tag JPG.
Add the following to the configuration.yaml l file. Change the tag names and file names as required.
</s> <s>camera:</s> <s> - platform: local_file</s> <s> name: tag_0000026ccc483b1d</s> <s> file_path: /config/www/open_epaper_link.0000026ccc483b1d.jpg</s> <s> - platform: local_file</s> <s> name: tag_000002832a763b19</s> <s> file_path: /config/www/open_epaper_link.000002832a763b19.jpg</s> <s> - platform: local_file</s> <s> name: tag_000002838f4f3b1c</s> <s> file_path: /config/www/open_epaper_link.000002838f4f3b1c.jpg</s> <s>
Check Configuration and reboot Home Assistant. This should create the camera entities.
You can now create a simple Dashboard using the camera entities.
Hope this helps someone