IOT SETUP PAGE - ENHANCEMENTS TO OPENHAB

REMINDER: To restart the OenHAB after a new login (ie: restart of Putty) ...:
  • cd /opt/openhab
  • sudo ./start.sh

.

Making Changes to the 'myhome1' configurations for OpenHAB.
It is suggested that any changes be made to a new configuration under a new name (eg:'myhome2'). That way you can always run 'myhome1' to test that everything is still working.
Paradigm Electronics

WebePage for 'myhome2' under OpenHAB

.

The image on the left is the display after modified as below.
  • cd /opt/openhab
  • cd configurations
  • cd items
  • ... Copy the myhome1 Items file to a new file myhome2.
  • sudo cp myhome1.items myhome2.items
  • cd ..
  • cd sitemaps
  • ... Copy the myhome1 sitemap file to a new file myhome2.
  • sudo cp myhome1.sitemap myhome2.sitemap
  • cd /opt/openhab
  • .. Then use your browser to make test the file
  • http://192.168.1.20:8080/openhab.app?sitemap=myhome2
  • --- Use your Raspberry Pi IP address if not '192.168.1.20'

.

. Now we have to create or edit the configuration files for 'myhome2' OpenHAB (sitemap and items).

. The examples below add one extra Outdoor 'Frame' which provides Temperature, Humidity and PIR Motion Detector.

See the "ESP8266 MQTT Sender" page for the new Printed Circuit Board and Arduino Software Sketch ("ESP01_DHT_outdoor_PIR_195") that works with a HC-SR501 PIR sensor. ESP8266 Mqtt Sender

.

.New 'sitemap' configuration for OpenHAB

  • cd /opt/openhab
  • cd configurations
  • cd sitemaps
  • sudo nano myhome2.sitemap
Select all the text in this area, and paste to the editor on Raspberry Pi.

.

Don't forget to save 'ctrlX', 'y', Enter.

.

.New 'items' configuration for OpenHAB

  • cd /opt/openhab
  • cd configurations
  • cd items
  • sudo nano myhome2.items
Select all the text in the above area, and paste to the editor on Raspberry Pi.
Don't forget to save 'ctrlX', 'y', Enter.

View the this new configuration from a browser at
  • http://192.168.1.20:8080/openhab.app?sitemap=myhome2
  • --- Substitute your Raspberry Pi IP address if not '192.168.1.20'
The OpenHAB myhome2 program can be tested by running 'MQTTlens' and entering the following text into 'Publish'
    ......Replace topic with...
  • outdoor/temperature
  • ......Replace Message with...
  • 37.0
  • ......Then 'Publish'...
  • Click the Green PUBLISH box
  • .......If the all the settings are correct you should see the '37.0' as the Temperature.
------------------------- NOW WE CREATE MYHOME9 ----------------------

.

Now we have to create or edit the configuration files for 'myhome9' OpenHAB (sitemap and items). The examples below adds several extra sub-pages that provide a graphical display of the persistent temperature and PIR reading. Each graph can be changed to display one hour, four hours, 12 hours, one day or week.

.

.New myhome9 'sitemap' configuration for OpenHAB

  • cd /opt/openhab
  • cd configurations
  • cd sitemaps
  • sudo nano myhome9.sitemap
Select all the text in this area, and paste to the editor on Raspberry Pi.

.

Don't forget to save 'ctrlX', 'y', Enter.

.

.New myhome9 'items' configuration for OpenHAB

  • cd /opt/openhab
  • cd configurations
  • cd items
  • sudo nano myhome9.items
Select all the text in the above area, and paste to the editor on Raspberry Pi.
Don't forget to save 'ctrlX', 'y', Enter.

View the this new configuration from a browser at
  • http://192.168.1.20:8080/openhab.app?sitemap=myhome9
  • --- Substitute your Raspberry Pi IP address if not '192.168.1.20'


Last updated: 11-JAN-2017 at 6:07 PM.
©2004-2014 Paradigm Electronics
Home | About Paradigm Electronics | Products & Services | Contact us | Site map | Useful Links | Client | ANMF test | Android | Ham Data | Logout |