Changes

OpenHAB2

68 bytes added, 07:17, 2 December 2017
=== Openhab hacks ===
* log files are at ohab: [http://ohab:9001/ log files]
* karaf console login: By default disabled from anywhere but localhost. Thus ssh into ohab, then ssh from there to <pre>ssh -p 8101 openhab@localhost</pre> default pwd is habopen.
** there is a fix in that thread, basically add <pre>org.apache.felix.eventadmin.Timeout=0</pre> to <pre>/var/lib/openhab2/etc/org.apache.felix.eventadmin.impl.EventAdmin.cfg</pre>. This should probably be removed at some point since it basically hides long running (or never returning) event handlers
=== homekit Homekit setup ===
* there is a issue with the homekit addon overwriting the generated mac address on exit (I think). See https://github.com/openhab/openhab2-addons/issues/1822
** for now, after successful pairing, set /var/lib/openhab2/jsondb/homekit.json read only after successful pairing. May have to undo to re-create a new pairing
* after a reset of the openhab server, it may take quite some time for homekit to attempt a reconnect to the server. You can force a reconnect by putting the iPhone etc temporarily into and out of airplane mode. This forces homekit to reconnect
=== Alexa setup ===
* Install the openhab cloud connector in add-ons -> misc. This will create a UUID and secret that we need for hitching up to the openhab cloud. In the background, it already attempted to log on with the created credentials, but fails (since there is no account on myopenhab yet), and will not attempt to go any further. As we'll see, this creates a bit of a problem later.
* get the UUID and secret from <pre>/var/lib/openhab2/uuid</pre> and <pre>/var/lib/openhab2/openhabcloud/secret</pre> and create/sign on at http://myopenhab.org
* Once we have the myopenhab cloud setup working, go to amazon.com, and search for the openhab skill. Install that skill to your amazon alexa skill set. This will ask you to permit the myopenhab cloud to get credentials and permissions from the alexa cloud. Use the defaults, eventually there is a web page that says "close this window" (you'll need pop-ups enabled in your browser, otherwise you'll miss that window).
* Once the connection between Alexa and Myopenhab is made via the openhab skill. ask alexa to "discover devices". It should announce all devices that have HomeKit tags (both the homekit plugin and the alexa skill use the same tagging system)
 
== MQTT ==
* needed to use node-red as flow editor....
* topics and stuff
Bureaucrat, administrator
963
edits