[Support] OpenHAB container using official docker


Recommended Posts

I have been using the official openHAB docker container on unraid and thought I would share my template. I use theis with the Pipework container to give it a static IP and open access to all ports.

In this template I have set the network as Host. But it could be set as bridge with for ports 8080, 8443 and 5555, this may limit some of the network functionality of openHAB such as auto-discovery. I haven't tested this for limitations.

 

This is an unraid implementation of the official openHAB openhab/openhab image on the Docker Hub.

There are two container types, online and offline. The difference is in the location of the binding files before being installed into openHAB.

 

Installation:

Find the container on the Community Applications Tab

OR

Add the template repository to unraid Docker Template Repositories:

https://github.com/tinglis1/docker-containers/tree/master/

 

 

More Info:

https://hub.docker.com/r/openhab/openhab/

https://github.com/openhab/openhab-docker

http://www.openhab.org/

https://community.openhab.org/

 

Credit:

All credit goes to those who built the docker container, I just made a template for unraid.

Link to comment
  • 7 months later...

I'm trying to install this through Community Applications and it's giving the following error:

 

docker: Tag amd64-online not found in repository docker.io/openhab/openhab.

 

I haven't used openhab for a while now. It looks like they have changed the container tags. Checkout https://hub.docker.com/r/openhab/openhab/tags/

 

On a side note, I have moved to using HomeAssistant.io. I have achieved more with that in the last 6 months than I did with Openhab in years.

 

 

Sent from my iPhone using Tapatalk

Link to comment
  • 2 weeks later...
  • 10 months later...

Well you can tell I don't follow this thread.:$

 

I've adjust CA to blacklist the "offline" version (since the tag is no longer available), and for the "online" version CA will change the repository to be openhab/openhab:2.1.0-amd64-debian.

 

If you're running the "offline" version, then FCP will bitch and complain about having a blacklisted app installed, but you can ignore that.

Link to comment
  • 2 months later...

I have updated the docker container to the correct repo and other parameters... However I am having issue passing through devices ttyACMO for my system. I see it in my unraid file system under /dev/ttyACM0... Thoughts? 

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="openhab-online" --net="host" -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e "TCP_PORT_8080"="8080" -e "TCP_PORT_8443"="8443" -e "TCP_PORT_5555"="5555" -e "TCP_PORT_8101"="8101" -v "/etc/localtime":"/etc/localtime":ro -v "/mnt/user/appdata/openhab/conf/":"/openhab/conf":rw -v "/mnt/user/appdata/openhab/userdata/":"/openhab/userdata":rw -v "/mnt/user/appdata/openhab/addons":"/openhab/addons":rw --device="/dev/ttyACM0/" openhab/openhab:2.2.0-amd64-debian

118c218f1697c1762e93809b5d4ad347af3e05cfc3d3544db86b069e710bc121
/usr/bin/docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/ttyACM0": not a device node.

The command failed.

Screen Shot 2018-03-12 at 1.20.25 PM.png

Screen Shot 2018-03-12 at 1.22.05 PM.png

Link to comment
  • 2 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.