question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install on HassOS 4.14 RPI3b+ 32 bit

See original GitHub issue

Install will fail every time with completely system hang-up after about 10 minutes after:

[supervisor.docker.addon] Starting build for 62c7908d/armv7-addon-emulated_hue:0.0.4

After hard reboot, addon will fail to start:

20-10-21 10:24:03 ERROR (SyncWorker_1) [supervisor.docker] Image 62c7908d/armv7-addon-emulated_hue not exists for addon_62c7908d_emulated_hue
20-10-21 10:24:03 WARNING (MainThread) [supervisor.addons] Can't start Add-on 62c7908d_emulated_hue

I can press “rebiuild” button on supervisor addon page, after about 20 minutes:

20-10-21 10:31:46 ERROR (SyncWorker_1) [supervisor.docker] Image 62c7908d/armv7-addon-emulated_hue not exists for addon_62c7908d_emulated_hue
20-10-21 10:34:29 INFO (SyncWorker_2) [supervisor.docker.interface] Removeing image 62c7908d/armv7-addon-emulated_hue with latest and None
20-10-21 10:34:29 INFO (SyncWorker_6) [supervisor.docker.addon] Starting build for 62c7908d/armv7-addon-emulated_hue:0.0.4
20-10-21 11:06:25 ERROR (SyncWorker_6) [supervisor.docker.addon] Can't build 62c7908d/armv7-addon-emulated_hue:0.0.4: The command '/bin/sh -c apk add --no-cache --virtual .build-dependencies         build-base         cmake         libuv-dev         libffi-dev         python3-dev         openssl-dev         git     && apk add --no-cache         python3         openssl         supervisor     && mkdir /usr/local/app     && git clone https://github.com/marcelveldt/hass_emulated_hue.git     && pip3 install         --no-cache-dir         -r hass_emulated_hue/requirements.txt     && cp -R hass_emulated_hue/emulated_hue /usr/local/app/     && cp hass_emulated_hue/run.py /usr/local/app/run.py     && apk del --no-cache --purge .build-dependencies     && find /usr/local         \( -type d -a -name test -o -name tests -o -name '__pycache__' \)         -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \)         -exec rm -rf '{}' +     && rm -f -r         /root/.cache         /root/.cmake         /tmp/*         hass_emulated_hue' returned a non-zero code: 1
20-10-21 11:06:25 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-1517' coro=<AddonManager.rebuild() done, defined at /usr/src/supervisor/supervisor/addons/__init__.py:279> exception=AddonsError()>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 413, in _build
    image, log = self.sys_docker.images.build(
  File "/usr/local/lib/python3.8/site-packages/docker/models/images.py", line 287, in build
    raise BuildError(chunk['error'], result_stream)
docker.errors.BuildError: The command '/bin/sh -c apk add --no-cache --virtual .build-dependencies         build-base         cmake         libuv-dev         libffi-dev         python3-dev         openssl-dev         git     && apk add --no-cache         python3         openssl         supervisor     && mkdir /usr/local/app     && git clone https://github.com/marcelveldt/hass_emulated_hue.git     && pip3 install         --no-cache-dir         -r hass_emulated_hue/requirements.txt     && cp -R hass_emulated_hue/emulated_hue /usr/local/app/     && cp hass_emulated_hue/run.py /usr/local/app/run.py     && apk del --no-cache --purge .build-dependencies     && find /usr/local         \( -type d -a -name test -o -name tests -o -name '__pycache__' \)         -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \)         -exec rm -rf '{}' +     && rm -f -r         /root/.cache         /root/.cmake         /tmp/*         hass_emulated_hue' returned a non-zero code: 1
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/addons/__init__.py", line 303, in rebuild
    await addon.instance.install(addon.version)
  File "/usr/src/supervisor/supervisor/utils/__init__.py", line 32, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 400, in _install
    self._build(tag)
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 424, in _build
    raise DockerError() from err
supervisor.exceptions.DockerError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/addons/__init__.py", line 305, in rebuild
    raise AddonsError() from err
supervisor.exceptions.AddonsError

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
marcelveldtcommented, Dec 11, 2020

When I started working on this I created it as a drop-in replacement for the native emulated_hue component in Home Assistant, however that got me in trouble because of the need to bind to port 80 and 443 and the entertainment mode magic. So I’ve converted it to be loosely coupled to Home Assistant over websockets which is also very low latency. I discussed this briefly with @balloob, the founder of Home Assistant and the idea is to bring it as an opt-in addon for Home Assistant for users that want the emulated Hue experience (including entertainment mode). At some point it might even replace the current built-in feature maybe. He also brought me in contact with the main dev of the ZHA component to explore if we can get the entertainment mode working with the ZHA implementation of Zigbee in Home Assistant (which would be super cool).

In the meanwhile I must say that this project got a bit lost in the freezer as I was helping out with the new Z-Wave implementation in HASS and switching jobs, Corona stuff etc.

But considered the interest in this project I’ll pick it up again and great if I can get some help! I’m sure with combined forces we can get this project flying at no-time.

BTW: I’m on discord, username marcelveldt

1reaction
alexyao2015commented, Dec 11, 2020

I’ve been a maintainer of diyhue for quite some time now and lately have been working on a refactor for it for the greater part of a year, only to have it kicked to the side. Looking around, it appears that this project does everything that I could have needed from diyhue.

With regards to UDP streaming, I’ve previously implemented UDP streaming for ESPHome as a custom component. I wonder if that would be possible to port here. Not too familiar with how this communicates with HA.

Does this properly support the hue api? I know with diyhue, there are quite a few inconsistencies with it that cause certain apps to not function. Are there any known bugs/issues? I’ll have to give this a try myself!

Ps. Maybe look at creating an external chat platform or enabling GitHub’s own discussions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems when trying to update from 4.13 to 4.14 #916 - GitHub
Description of problem: When I click the update button, the following logs appear. This is only after pressing the button once. The operating ......
Read more >
Hass.io 64 or 32 bit for Pi 3 B+ - Home Assistant OS
I installed the 32 bit version but making connecting the network is proving much more difficult than I expected. hass.io isn't the user...
Read more >
Can't install packages on 64-bit Raspberry Pi OS
So people can install their 32 bit programs. That was for them: Code: Select all sudo dpkg --add-architecture i386. they had to add...
Read more >
Can a Raspberry Pi 3 run a 64-bit OS, or is it limited to 32-bit?
You can install a 32-bit OS on 64-bit, although it would limit the amount of RAM accessible to 4 GB. The reverse cannot...
Read more >
Booting 64-bit kernel on Raspberry Pi 3 - TalOrg
How to install 64-bit kernel and configure the Raspberry Pi3 to boot it. ... device_tree=dtbs/4.14.33-v8+/broadcom/bcm2710-rpi-3-b.dtb ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found