From 55052fc648d5c50c335b64c212641592c9fe4da9 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 27 Aug 2016 11:37:07 +0000 Subject: [PATCH] Site updated at 2016-08-27 11:37:07 UTC --- atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/iot-data/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- cookbook/apache_configuration/index.html | 3 + cookbook/index.html | 3 + cookbook/owntracks_two_mqtt_broker/index.html | 255 ++++++++++++++++++ cookbook/tor_configuration/index.html | 3 + sitemap.xml | 33 +-- 25 files changed, 302 insertions(+), 35 deletions(-) create mode 100644 cookbook/owntracks_two_mqtt_broker/index.html diff --git a/atom.xml b/atom.xml index 8b8f4e6987..47ec2406a8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 0f211517c7..1a0cd4aabb 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index eeb3cb9cc1..f95202e40e 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 0a424092a5..d6f4e9ef69 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index a4bb73bb24..ce421b37f2 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 0b3cb332f2..54c8e8bfc7 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index f6358e7149..cb5db5b106 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index cbadc6d4ae..cb3a617c08 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 8941abbc4d..c56f4529aa 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index d2a9ad465d..d27a487b10 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 84ffdc5c99..a98d7172a4 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index ab88c06e25..69af4f3ecb 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 9b2b679114..f4c2e550d6 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 591b356120..5aee5ff1ae 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index abbadaf3ec..fd1d97ef55 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 6c20798b98..c116256cb4 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 29fe78f362..745e5a9bee 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d7af8c3d88..6cd9e1cfe5 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index cb73dfc2d5..f9b0a4204c 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 556dbde17a..bfe46a6b4b 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-08-26T20:17:25+00:00 + 2016-08-27T11:35:43+00:00 https://home-assistant.io/ diff --git a/cookbook/apache_configuration/index.html b/cookbook/apache_configuration/index.html index 43fa717d18..e40ae944b9 100644 --- a/cookbook/apache_configuration/index.html +++ b/cookbook/apache_configuration/index.html @@ -198,6 +198,9 @@ The configuration file for this home assistant is available in Apache Configuration

+
  • +

    OwnTracks with two MQTT brokers

    +
  • Tor Onion Service Configuration

  • diff --git a/cookbook/owntracks_two_mqtt_broker/index.html b/cookbook/owntracks_two_mqtt_broker/index.html new file mode 100644 index 0000000000..a251829c17 --- /dev/null +++ b/cookbook/owntracks_two_mqtt_broker/index.html @@ -0,0 +1,255 @@ + + + + + + + + + + OwnTracks with two MQTT brokers - Home Assistant + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + +
    +
    + + + +
    +
    + +
    + + +
    + + + + +
    +

    + OwnTracks With Two MQTT Brokers +

    +
    +
    + + +

    I (surge919) successfully tied in OwnTracks to Home Assistant and SmartThings while using authentication for external access. The MQTT bridge doesn’t support authentication so I set up 2 MQTT instances.

    + +

    Here are the steps I performed. Hopefully it saves someone else some time.

    + +

    It seems to be working pretty well but if anyone sees something incorrect in my configuration, please let me know. This is my first real interaction with MQTT.

    + +

    Here’s a summary of my setup:

    + +

    Two Docker instances for MQTT

    + +
      +
    • 1 for internal use (the MQTT bridge for SmartThings - no authentication)
    • +
    • 1 for external use (for OwnTracks - with authentication)
    • +
    + +

    All Docker configuration files are on my NAS so the Docker containers can be destroyed without affecting my actual configuration files.

    + +

    Docker setup for the mosquitto internal instance. No authentication for use with the MQTT bridge.

    + +
    $ docker run -ti -p 1883:1883  \
    +    -v /volume1/data/mosquitto-int/config:/mqtt/config:ro \
    +    -v /volume1/data/mosquitto-int/log:/mqtt/log \
    +    -v /volume1/data/mosquitto-int/data/:/mqtt/data/ \
    +    --name mosquitto-int -d toke/mosquitto
    +
    +
    + +

    Docker setup for the mosquitto external instance. With authentication for use with Owntracks.

    + +
    $ docker run -ti -p 1884:1883  \
    +    -v /volume1/data/mosquitto-ext/config:/mqtt/config:ro \
    +    -v /volume1/data/mosquitto-ext/log:/mqtt/log \
    +    -v /volume1/data/mosquitto-ext/data/:/mqtt/data/ \
    +    -v /volume1/data/mosquitto-ext/etc:/etc/mosquitto \
    +    --name mosquitto-ext -d toke/mosquitto
    +
    +
    + +

    Here are the config files:

    + +

    /volume1/data/mosquitto-int/config/mosquitto.conf

    + +
    connection mosquitto-ext
    +persistence_file mosquitto.db
    +try_private true
    +address 10.0.0.20:1884
    +start_type automatic
    +sername test
    +password test
    +notifications true
    +topic owntracks/# in
    +log_type all
    +log_dest file /mqtt/log/mqtt.log 
    +log_facility 5
    +
    +
    + +

    /volume1/data/mosquitto-ext/config/mosquitto.conf

    + +
    connection mosquitto-int
    +persistence_file mosquitto.db
    +try_private true
    +address 10.0.0.20:1883
    +start_type automatic
    +username test
    +password test
    +notifications true
    +topic owntracks/# out
    +log_type all
    +log_dest file /mqtt/log/mqtt.log
    +log_facility 5
    +allow_anonymous false
    +password_file /etc/mosquitto/pwfile
    +
    +
    + +

    Create a password for mosquitto-ext

    + +
    $ docker exec -it mosquitto-ext /bin/bash
    +$ cd /etc/mosquitto/
    +$ mosquitto_passwd -c /etc/mosquitto/pwfile <userID>
    +
    +
    + +

    OwnTracks settings for Android

    + +
    Preferences / Connection / Mode - Private MQTT
    + 
    +Fill out
    + Host
    + Identification
    + Security: TLS disabled
    +
    +
    + +

    + + +
    + + +
    + + + + +
    +
    + + + + + + \ No newline at end of file diff --git a/cookbook/tor_configuration/index.html b/cookbook/tor_configuration/index.html index 7e1a4ec1aa..3bb63463d0 100644 --- a/cookbook/tor_configuration/index.html +++ b/cookbook/tor_configuration/index.html @@ -212,6 +212,9 @@ HiddenServiceAuthorizeClient stealth haremote1
  • Apache Configuration
  • +
  • + OwnTracks with two MQTT brokers +
  • Tor Onion Service Configuration
  • diff --git a/sitemap.xml b/sitemap.xml index e722b8d2a3..5f1e677d99 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1836,6 +1836,9 @@ https://home-assistant.io/cookbook/custom_panel_using_react/ +https://home-assistant.io/cookbook/owntracks_two_mqtt_broker/ + + https://home-assistant.io/topics/templating/ @@ -1855,62 +1858,62 @@ https://home-assistant.io/demo/frontend.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/index.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00 https://home-assistant.io/static/mdi-demo.html -2016-08-26T20:16:42+00:00 +2016-08-27T11:34:55+00:00