Error when installing Theengs Gateway via HomeAssistant Add-On

Hi,

I wanted to implement a Bluetooth presence detector to control the heater in my apartment. I came across this post, which pointed me to Theengs Gateway. I installed the Mosquitto Broker first and proceeded with installing Theengs Gateway following the “Install Theengs Gateway as an Add ON in Home Assistant” instructions. However, clicking on install and waiting for ~ 5 minutes results in an install error telling me to look into the supervisor logs. The logs reveal the following for the Theengs install:

2025-01-03 15:23:37.717 ERROR (MainThread) [supervisor.utils.json] Can’t write /data/addons/data/007e7788_theengsgw/options.json: [Errno 2] No such file or directory: ‘/data/addons/data/007e7788_theengsgw/tmph9dn78ye’
2025-01-03 15:23:37.719 ERROR (MainThread) [supervisor.addons.addon] Add-on 007e7788_theengsgw can’t write options

Note that I can’t access the logs immediately because it looks like the Add-On tries to start, but this crashes HomeAssistant. The BLE Controller of my Raspberry Pi, which runs HomeAssistant, seems to crash, too, because all Bluetooth Devices in my HomeAssistant appear to be offline after the HomeAssistant recovery procedure (which takes ~ 30 minutes).

What is going on here, and how can I fix it?

System:
Raspberry Pi 3B+
HomeAssistant Core: 2025.1.0
HomeAssistant Supervisor: 2024.12.3
HomeAssistant Operating System: 14.1
HomeAssistant Frontend: 20250103.0

Hi @kebbl928

As this looks like a purely write error, could this possibly be some permission issue with your setup?

I have just deleted my Theengs Gateway Add-on and reinstalled it without any issues, admittedly with 2024.12.5.

At the moment I cannot think of any other thing, than that a possible HA update might also remedy your problem.

I thought the same and immediately updated the core to 2025.1.0 (updated the initial post), but when I retried the install process, the same error occurred. It may be a permission issue, but how do I solve this, and why does it only occur when installing TheengsGateway?

I’m afraid I don’t know Home Assistant well enough to be able to possibly identify and debug this problem, only knowing that my test setup and many other used do not get this error when trying to install the Theengs gateway add-on - like the other thread I am currently replying to, where the setup seems to cause some confusion, but the initial installation seems to have worked without any problems.

Possibly best to post this kind of error on the HA forum, or maybe some other user here more familiar with HA might have an idea what it might be.

1 Like