dadeg / openhab2

openhab2 configurations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install openhab2 by following these instructions: http://docs.openhab.org/installation/linux.html#package-repository-installation

perhaps you'd like to set it up to start on bootup, so it starts automatically after reboot:

sudo /etc/init.d/openhab2 status

sudo update-rc.d openhab2 defaults```

While you are configuring everything and ssh'd into the pi, start/restart with `./bootstrap.sh -g`

view openHAB in browser at http://192.168.0.106:8080/openhab.app?sitemap=teekynest

raspberry pi pins numbering http://binnie.id.au/Downloads/pins.pdf

```ssh pi@raspberrypi
password: raspberry```

There is a daemon on startup that runs whatever code is currently on the pi.

to stop this daemon, `/etc/init.d/openhab2 [stop/start/restart]`
Could also use my stop script, `./stop` to stop it.
https://github.com/openhab/openhab/wiki/Samples-Tricks

`./bootstrap -g` to get the newest code and start the service (no -g if no need to pull code).

In order to get GPIO pins to work correctly, you can run openhab2 with the root user and group. To change the user that runs openhab2, edit `/usr/lib/systemd/system/openhab2.service`. 

This is where I learned how to set up the thermometers, which are one-wire sensors.
install owfs for one-wire sensors, monitors, etc. http://www.raspberrypi.org/forums/viewtopic.php?t=27379&p=505250
https://github.com/openhab/openhab/wiki/One-Wire-Binding

If you are experiencing an issue where a button doesn't
stay in a steady state, set up a pull-up or pull-down
resistor to give it a base state.

FOR 433Mhz SWITCHES
install the package https://github.com/dadeg/433mhz-transceiver and follow its instructions

5 original switches:
delay: 180-184, protocol: 1, bitlength: 24
1, on = 4199731, off = 4199740
2, on = 4199875, off = 4199884
3, on = 4200195, off = 4200204
4, on = 4201731, off = 4201740
5, on = 4207875, off = 4207884

About

openhab2 configurations


Languages

Language:Shell 73.1%Language:HTML 26.9%