thanks, I misinterpreted the previous update remarks and had updated hass.io itself but not the host os. It builds now, still some errors to fix though.
Can anyone point me to a simple sample node-based project? Something like GitHub - balena-io-examples/balena-nodejs-hello-world: Example of how to deploy Node code on a balena supported device. but with dockerfiles that are formatted the way that Hass.io demands.
I’ve been scouring hass.io addons for similar examples but couldn’t find any, hope such an example can teach me what i’m doing wrong.
btw, this is what i’m getting in the logs:
17-12-29 14:34:00 INFO (SyncWorker_16) [hassio.dock.addon] Start build local/armhf-addon-my-bose-app:0.51 17-12-29 14:35:15 INFO (SyncWorker_16) [hassio.dock.addon] Build local/armhf-addon-my-bose-app:0.51 done 17-12-29 14:35:15 INFO (SyncWorker_16) [hassio.dock.interface] Clean local/armhf-addon-my-bose-app docker application 17-12-29 14:35:17 INFO (SyncWorker_16) [hassio.dock.interface] Cleanup docker images: ['local/armhf-addon-my-bose-app:0.5'] 17-12-29 14:35:30 INFO (SyncWorker_8) [hassio.dock.addon] Start docker addon local/armhf-addon-my-bose-app with version 0.51 17-12-29 14:43:39 INFO (SyncWorker_9) [hassio.dock.interface] Clean local/armhf-addon-my-bose-app docker application 17-12-29 14:43:39 INFO (SyncWorker_9) [hassio.dock.interface] Remove docker local/armhf-addon-my-bose-app with latest and 0.51 17-12-29 14:43:41 INFO (MainThread) [hassio.addons.addon] Remove Home-Assistant addon data folder /data/addons/data/local_my-bose-app
for anyone who reads this: i found an example here: hassio-repo/hassio-addon-example at master · quentinchap/hassio-repo · GitHub
You need to change the first two lines of the Dockerfile to
ARG BUILD_FROM
FROM $BUILD_FROM
as explained in the developer tutorial.
But you should set the workdir and the copy commands as in Quentin’s example and not as in the example of the tutorial or building/installing will fail.
I’m using Hassio, latest version (installed today) and followed the tutorial and have the three files in my addons/hello_world folder, but when I go to Hass.io > Add-On Store, there are no icons in the top right.
There are no “three dots” icon and no “shopping bag?” icon. So no advanced settings and no refresh button or anything that looks like in the demo.
I tried enabling discovery: in the config, like I read somewhere, but it only shows a lot of devices (like my TV and Sound bar) on the Overview that I don’t want.
In Hass.io > System I can find a supervisor, which says 0.95, and host system is 1.1. Below this I see a system log, but there doesn’t seem to be any entries for the last hour.
Am I doing something wrong? The setup is very basic, and I only added a Z-stick and a Fibaro wall plug which are working great. Now I want to create a custom addon to show the power consumption on several wall plugs, but I’m stumped…
I have SSH access enabled, so if there’s any log files I can check manually, please tell me where to find them.
Here’s a screenshot of what it looks like on my end.
Thanks!
I had the exact same issue !
Turns out I had an error in options.json. Validated it with jsonlint.com.
I had this error while following the tutorial:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
exec: fatal: unable to exec bashio
: No such file or directory
[cmd] /run.sh exited 127
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
Any help is appreciated!