Difficult to debug with limited info, maybe you forgot to copy something
I have copied my production working version of Appdeamon files in Pastebin and included some comments.
Please go through the files and compare with your version.
If you have questions let me know, you are almost there
Thanks for the files. I’ll compare in more detail later today but I already saw that the sensor_ping script is missing in my config. I’ll add it and see if that helps.
Could someone advise what went wrong here? (VM with HA-OS)
I’m able to run the apex command from the terminal addon, but I do get an error when running it from the HA dashboard.
From all info above, I was expecting the setup.sh to be the reason, though I’m not sure.
From the second line of the log it seems to be working, while next line shows a bunch of errors:
2023-06-30 15:18:03.190 DEBUG (MainThread) [homeassistant.components.shell_command] Stdout of command: `/config/scripts/setup.sh`, return code: 0:
b'Updating Image with Tools\r\nfetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz\nfetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz\nRequirement already satisfied: pexpect in /usr/local/lib/python3.11/site-packages (4.6.0)\nRequirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/site-packages (from pexpect) (0.7.0)\n Tools Installed\r\n'
2023-06-30 15:18:03.190 DEBUG (MainThread) [homeassistant.components.shell_command] Stderr of command: `/config/scripts/setup.sh`, return code: 0:
b"ERROR: 'update\r' is not an apk command.
See 'apk --help'.\nERROR: unable to select packages:\n busybox\r (no such package):\n required by: world[busybox\r]\nERROR: unable to select packages:\n busybox-extras\r (no such package):\n required by: world[busybox-extras\r]\nERROR: unable to select packages:\n expect\r (no such package):\n required by: world[expect\r]\nERROR: unable to select packages:\n sshpass\r (no such package):\n required by: world[sshpass\r]\nERROR: unable to select packages:\n python3\r (no such package):\n required by: world[python3\r]\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n"
2023-06-30 15:27:37.910 INFO (MainThread) [homeassistant.components.command_line] Running command: python3 /config/python_scripts/apex.py 'Setrelay 24,1'
2023-06-30 15:27:37.910 DEBUG (SyncWorker_5) [homeassistant.components.command_line.utils] Running command: python3 /config/python_scripts/apex.py 'Setrelay 24,1'
2023-06-30 15:27:38.044 ERROR (SyncWorker_5) [homeassistant.components.command_line.utils] Command failed (with return code 1): python3 /config/python_scripts/apex.py 'Setrelay 24,1'
2023-06-30 15:27:38.046 ERROR (MainThread) [homeassistant.components.command_line] Command failed: python3 /config/python_scripts/apex.py 'Setrelay 24,1'
Now that Apex Systems no longer supports Eaysplus, the integration with Home Assistant is getting more important!
For me this works fine for a few days but then all of a sudden the Easyplus controller (old exclusive version) refuses connections on port 2024.
The only thing that helps is power off/on of the controller
Anyone that experiences the same issue?