OpenHab: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
Line 20: Line 20:
# Edit docker-compose.yml
# Edit docker-compose.yml
# docker-compose up
# docker-compose up
# https://openhab:8444/ (I moved it up a port becasue UniFi is already running at 8443.)


:-)
=== Nortek ===


The container is running on Debian. There's a copy of Apache in there but the server is visible at
The Nortek is now plugged in and shows up in lsusb as
 
https://openhab:8444/
 
(I moved it up a port becasue UniFi is already running at 8443.)
 
=== Nortec ===
 
The Nortec is now plugged in and shows up in lsusb as


  Bus 003 Device 007: ID 10c4:8a2a Cygnal Integrated Products, Inc.
  Bus 003 Device 007: ID 10c4:8a2a Cygnal Integrated Products, Inc.
Line 59: Line 52:


  docker exec -it openhab bash
  docker exec -it openhab bash




[[Category: IoT]]
[[Category: IoT]]

Revision as of 04:12, 12 May 2020

2020-May-07 Wink announced they are going to a subscription service, so I am migrating to OpenHab

I bought a Wink Bright kit from Home Depot (6/26/18) and two Cree Zigbee bulbs from Amazon (6/23/18) Later (12/18) I got the outlets.

I have other stuff that was not usable in the Wink system that I have not documented yet.

Hardware

Controller:

Controlled:

  • 2 bulbs that came with Wink
  • 1 soft white bulb: Cree BA19-08027OMF-12CE26-1C100 Connected 60W Equivalent Soft White
  • 1 daylight bulb: Cree BA19-08050OMF-12CE26-1C100 Connected 60W Equivalent Daylight (5000K)
  • 2 two Centralite Mini outlets (from Amazon) to control strings of X-mas lights.

Set up

  1. Edit docker-compose.yml
  2. docker-compose up
  3. https://openhab:8444/ (I moved it up a port becasue UniFi is already running at 8443.)

Nortek

The Nortek is now plugged in and shows up in lsusb as

Bus 003 Device 007: ID 10c4:8a2a Cygnal Integrated Products, Inc.

dmesg sees it as 2 serial ports,

[1200065.974054] usb 3-1.2: new full-speed USB device number 7 using ehci-pci
[1200066.085372] usb 3-1.2: New USB device found, idVendor=10c4, idProduct=8a2a, bcdDevice= 1.00
[1200066.085378] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[1200066.085382] usb 3-1.2: Product: HubZ Smart Home Controller
[1200066.085385] usb 3-1.2: Manufacturer: Silicon Labs
[1200066.085388] usb 3-1.2: SerialNumber: 81300CEB
[1200066.116633] usbcore: registered new interface driver usbserial_generic
[1200066.116667] usbserial: USB Serial support registered for generic
[1200066.124434] usbcore: registered new interface driver cp210x
[1200066.124471] usbserial: USB Serial support registered for cp210x
[1200066.124540] cp210x 3-1.2:1.0: cp210x converter detected
[1200066.127400] usb 3-1.2: cp210x converter now attached to ttyUSB0
[1200066.127806] cp210x 3-1.2:1.1: cp210x converter detected
[1200066.130746] usb 3-1.2: cp210x converter now attached to ttyUSB1

So this means I have to add /dev/ttyUSB0 and /dev/ttyUSB1 and the JAVA OPTS to the docker-compose.yml file and restart it. EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1"

I have to set up a "coordinator" manually, so

docker exec -it openhab bash