Closed RSABear closed 6 months ago
Think this should solve this https://github.com/fmtr/haco/pull/3
It worked. The steps were. Install pipx, I followed the Linux commands. Install the haco 0.0.20 package. Inject the dependency. Without your help I would have never achieved it. Let me proceed with the Berry scripting.
done. Just want to add the edits here. (I re-loaded my test PI and needed to re-install the add-on and had to remember what I did to get it running)
Do a local Add-on install. Create \haco directory in \config. Copy DockerFile, run.sh and config.yaml
Edit DockerFile.
ARG BUILD_FROM FROM $BUILD_FROM ARG BUILD_VERSION
RUN apk add --no-cache pipx ENV PATH="${PATH}:/root/.local/bin" RUN pipx install haco==${BUILD_VERSION} RUN pipx inject haco aiomqtt==1.2.1
COPY run.sh / RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
Edit run.sh
export HACO_IS_ADDON=true export HACO_CONFIGS_PATH="/config/haco" export HACO_OPTIONS_PATH="/data/options.json" export MQTT_HOST="$(bashio::services mqtt 'host')" export MQTT_PASSWORD="$(bashio::services mqtt 'password')" export MQTT_PORT="$(bashio::services mqtt 'port')" export MQTT_USERNAME="$(bashio::services mqtt 'username')"
haco-daemon
Check log file, config directory will be created. Edit the configuration in the add-on. Restart. Reload your Berry config requirements.
I've released a more principled fix (until I can properly account for aiomqtt==2.0
at least) - but since I'm not currently running supervised, I cannot check that. Give the latest a try and let me know if you have any issues.
haco version 0.0.20 Home Assistant Core 2023.12.4 Supervisor 2023.12.0 Operating System 11.2 Frontend 20231208.2
Steps to re-create. Followed the instructions on README/Home Assistant install. Added the haco add-on, and it appears in the Add-on Store.
When I click on install the following Error message appears: Failed to install add-on: The command '/bin/ash -o pipefail -c pip install haco==${BUILD_VERSION}' returned a non-zero code: 1