1-wire support in hassio

Support for 1-wire in Hassio.

According to my findings it is currently not possible to make an addon for 1-wire.

I would like to access the 1-wire from a docker container.

Option 1
This seems not to be supported since the data from the hassio alpine linux kernel w1 drivers are accessible in /sys/bus/w1/… I have not found any way to access the /sys directory from a hassio container.
Possible solution: Allow access to /sys/bus/w1/…

Option 2
An other option is to use the owserver and access the 1-wire hardware via some usb or i2c device but the linux w1 drivers seems to interfere with the user space owserver implementation. It is not possible to “blacklist” or unload the w1 drivers since they are compiled into the hassio alpine kernel.
Possible solution:

  • Remove the w1 drivers
    or
  • Make the w1 drivers loadable/unloadable via modprobe etc.

Running custom kernel solves the driver problem but I would, of course, like to run the official hassio kernel so there won’t be any problem with updates etc.

I think it boils down to the following option for hassio:

  1. Use w1 drivers (available under /sys/bus/w1) and use them directly. Currently not possible (as far as I I found) since /sys/bus/w1 is not accessible from a hassio container.
    or
  2. Do not load the w1 drivers in the alpine kernel rather let the owserver in a docker container access the 1-wire hardware via /dev.
    or
  3. Using owserver with w1 drivers. Seems not to be fully supported of the owserver and it is currently not possible since /sys/bus/w1 is not accessible from hassio container(same issue as 1).

For home assistant there is support but for hassio no.
If there already is a solution for accessing the 1-wire I will be happy to use that but I havn’t found any so far for hassio.