Cannot re install DIYHUE addon

Home assistant on mini pc VM

I had diyhue installed a week ago but after messing around with cheap aliexpress lights I ended up with a messy integration with all my lights duplicated 4 to 6 times. I thought I’d do a fresh install but I am gettting errors now when try to install the addon again.

When I try to install the addon I get this:

Failed to install add-on

The command ‘/bin/bash -o pipefail -c curl -J -L -o $diyhue.tar.gz “https://github.com/diyhue/diyHue/archive/refs/heads/master.tar.gz” && tar xzvf $diyhue.tar.gz --strip-components=1 -C diyhue && rm -rf $diyhue.tar.gz && pip3 install -r /diyhue/requirements.txt --no-cache-dir’ returned a non-zero code: 1

Looking at the log I get this:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:138
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 7:33:23 AM (3 occurrences)
Last logged: 8:34:28 AM

Failed to to call /addons/c863ef44_diyhue/install - The command ‘/bin/bash -o pipefail -c curl -J -L -o $diyhue.tar.gz “https://github.com/diyhue/diyHue/archive/refs/heads/master.tar.gz” && tar xzvf $diyhue.tar.gz --strip-components=1 -C diyhue && rm -rf $diyhue.tar.gz && pip3 install -r /diyhue/requirements.txt --no-cache-dir’ returned a non-zero code: 1

My ha details are:

  • Core2024.2.1
  • Supervisor2024.01.1
  • Operating System11.5
  • Frontend20240207.1

The only way I can solve this that I know off is use a backup I made before installing diyhue addon for teh first time, but this means that I’ll have to re add 10 zigbee bulbs and repair with ikea remote… set blueprints, config node red ect… so if anyone clever enought to point me to the right direction to fix this, please let me know.

1 Like

I get a similar error every time I try to install the addon, I’ve thus far been completely unsuccessful in getting the addon to install. Interestingly, my supervisor logs end with “can’t rename ‘/diyhue/BridgeEmulator/web-ui/’: No such file or directory”.

Running a completely fresh HASS install on raspberry pi 4B 4gb RAM. Installed using the official raspberry pi imager, and using the 12.4 HASS image that it suggests.

Core logs:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:135
integration: Home Assistant Supervisor (documentation, issues)
First occurred: 11:01:43 AM (1 occurrences)
Last logged: 11:01:43 AM

Failed to to call /addons/590f8686_diyhue-beta/install - The command ‘/bin/bash -o pipefail -c mv /diyhue/BridgeEmulator/web-ui/ ./web-ui/’ returned a non-zero code: 1

And Here are my Supervisor logs:

—> 1edae1fb72af

Step 13/31 : RUN mv /diyhue/BridgeEmulator/web-ui/ ./web-ui/

—> Running in 86935385f14f

e[91mmv: can’t rename ‘/diyhue/BridgeEmulator/web-ui/’: No such file or directory
e[0m
—> Removed intermediate container 86935385f14f
e[0m
e[32m2024-08-03 11:01:41.962 INFO (MainThread) [supervisor.docker.addon] Starting build for 590f8686/aarch64-addon-diyhue-beta:1.5.0e[0m
e[31m2024-08-03 11:01:43.752 ERROR (MainThread) [supervisor.docker.addon] Can’t build 590f8686/aarch64-addon-diyhue-beta:1.5.0: The command ‘/bin/bash -o pipefail -c mv /diyhue/BridgeEmulator/web-ui/ ./web-ui/’ returned a non-zero code: 1e[0m
e[31m2024-08-03 11:01:43.753 ERROR (MainThread) [supervisor.docker.addon] Build log:
Step 1/31 : ARG BUILD_FROM=hassioaddons/base-python:5.3.4

Step 2/31 : FROM ${BUILD_FROM}

—> 9bec0967ab7e

Step 3/31 : SHELL [“/bin/bash”, “-o”, “pipefail”, “-c”]

—> Using cache

—> fe00940943ee

Step 4/31 : ARG BUILD_ARCH=aarch64

—> Using cache

—> e29ac6afab3f

Step 5/31 : ENV BUILD_ARCHI = ${BUILD_ARCH}

—> Using cache

—> 23a5e31cd644

Step 6/31 : ENV LANG C.UTF-8

—> Using cache

—> be501f76fb93

Step 7/31 : ENV DIYHUE_VERSION=master

—> Using cache

—> 0105aab93dbe

Step 8/31 : ENV WORKING_DIR=/opt/hue-emulator

—> Using cache

—> 102076ece79f

Step 9/31 : RUN mkdir diyhue config ${WORKING_DIR}

—> Using cache

—> 28c8aa94625d

Step 10/31 : RUN apk add -q -u python3 openssl nmap psmisc iproute2 alpine-sdk build-base

—> Using cache

—> 4651de7aff90

Step 11/31 : RUN curl -J -L -o $diyhue.tar.gz “https://github.com/diyhue/diyHue/archive/refs/heads/master.tar.gz” && tar xzvf $diyhue.tar.gz --strip-components=1 -C diyhue && rm -rf $diyhue.tar.gz && pip3 install -r /diyhue/requirements.txt --no-cache-dir

—> Using cache

—> 8577599eea57

Step 12/31 : WORKDIR /opt/hue-emulator

—> Using cache

—> 1edae1fb72af

Step 13/31 : RUN mv /diyhue/BridgeEmulator/web-ui/ ./web-ui/

—> Running in 2e0121143d60

e[91mmv: can’t rename ‘/diyhue/BridgeEmulator/web-ui/’: No such file or directory
e[0m
—> Removed intermediate container 2e0121143d60
e[0m

Hi, the log you provide are from a realy old version of diyhue. Please remove the repository en use the correct one from diyhue.