idotmatrix is an Android/iOS app using to configure LED displays (e.g. 16x16, 32x32) with images and GIFs as well as a number of other things. Work has been done to create a Python shell client as well as a library to directly interact with the device via Bluetooth (see GitHub - derkalle4/python3-idotmatrix-client: reverse engineered python3 client to control all your 16x16 or 32x32 pixel displays (experimental)). I’ve been able to install the client successfully in Home Assistant and also execute the commands via terminal. Based on this, I created shell_commands to trigger the client but have hit a roadblock where the action fails with the following error:
stdout: ""
stderr: |-
Traceback (most recent call last):
File "/config/./app.py", line 7, in <module>
from core.cmd import CMD
File "/config/core/cmd.py", line 9, in <module>
from idotmatrix import ConnectionManager
ModuleNotFoundError: No module named 'idotmatrix'
returncode: 1
My configuration.yaml snippet:
shell_command:
set_pixel_display_time: 'python3 ./app.py --address 72:A8:19:ED:04:DE --sync-time'
set_pixel_display_clock_with_date: 'python3 ./app.py --address 72:A8:19:ED:04:DE --clock 0 --clock-with-date'
set_pixel_display_image: 'python3 ./app.py --address 72:A8:19:ED:04:DE --image true --set-image {{ image }} --process-image 16'
set_pixel_display_gif: 'python3 ./app.py --address 72:A8:19:ED:04:DE --set-gif {{ image }} --process-gif 16'
set_pixel_display_text: 'python3 ./app.py --address 72:A8:19:ED:04:DE --set-text "{{ text }}" --text-size {{ size }} --text-mode {{ mode }} --text-speed {{ speed }} --text-color-mode {{ colormode }}'
set_pixel_display_pixels: 'python3 ./app.py --address 72:A8:19:ED:04:DE --pixel-color {{ xyrgb }}'
set_pixel_display_colour: 'python3 ./app.py --address 72:A8:19:ED:04:DE --fullscreen-color {{ rgb }}'
set_pixel_display_off: 'python3 ./app.py --address 72:A8:19:ED:04:DE --screen off'
set_pixel_display_on: 'python3 ./app.py --address 72:A8:19:ED:04:DE --screen on'
Any help or pointers on how to fix this appreciated!
2 posts - 2 participants