Skip to content

openHAB: redirect port 8080 to port 80

The openHAB Raspberry image, by default, listens on port 8080. After using the image for a while, it became quite boring to always add the port to the URL. Quickly I decided to redirect port 80 to port 8080, and make my life easier.

Not sure how much work that is in the openHAB settings, I settled with redirecting or forwarding the port 80 to port 8080.

 

 

Continue reading "openHAB: redirect port 8080 to port 80"

Add a FRITZ!Box to openHAB, using Ansible

Next step on my way to add home automation: the FRITZ!Box. Mostly for the current IP-address, and call information.

After some research it became obvious that more manual work is required, hence again something which can be automated.

 

 

Continue reading "Add a FRITZ!Box to openHAB, using Ansible"

Update openHAB Things configuration using Ansible

In my earlier openHAB blog posts I automated the installation of extensions and linking of Channels to Items. Another problem I'm facing is the configuration of items. Again, that's very easy in the UI - if you are willing to click through the list of Items, and manually do all the steps.

Among other things I'm using the "binding-yahooweather" and the "binding-ipp" bindings, and the first one needs configuration before it can work properly. For the second one, it righly discovered a laser printer in our network, but occasionally when openHAB requests the status information, this spins up an internal disk in the printer. Therefore it is feasible to increase the time between checks - it's just the number of outstanding print jobs anyway. Doesn't matter if someone reacts 5 or 15 minutes later, if the problem was not discovered instantly.

 

 

Continue reading "Update openHAB Things configuration using Ansible"

Auto-approve and link certain inbox items in openHAB using Ansible

After starting to look into openHAB, and automate the installation with Ansible, I discovered that there is an API, but the main focus of the documentation and examples clearly is on using the UI and don't automate the installation. It takes some time to figure out the details. In my last blog post I automated the installation of extensions/bindings, and ended with running a rediscover scan.

Now it's time to see if there are new items in the inbox, and possibly auto-approve and link them in Ansible.

 

 

Continue reading "Auto-approve and link certain inbox items in openHAB using Ansible"

Install openHAB2 bindings using Ansible

Recently I started looking into Home Automation, using a Raspberry Pi and the openHAB as platform. The website provides ready-to-go images based on Debian, named openHABian. Me being me, I decided to install the image, let it boot up for the first time, and then take it from there using Ansible as automation tool. That's a bit more effort in the beginning, but ensures that I can always just wipe the SDcard, and start over from the beginning. Especially useful if I screw up at some point during testing.

One of the first steps to do is to decide which bindings, or extensions, are needed. Bindings provide openHAB with information about what kind of hardware and input sources are available out there. The list of available bindings is long, and one can use the UI to click and install bindings, before starting to configure and link them. That process is not idempotent, but luckily openHAB also provides an API which can be used to execute the same steps, just faster and automated.

 

 

Continue reading "Install openHAB2 bindings using Ansible"