From 2dcbea296bd6fe5f8964321b286e55cb32e71fee Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 24 May 2017 14:34:07 +0000 Subject: [PATCH] Site updated at 2017-05-24 14:34:07 UTC --- atom.xml | 2 +- blog/categories/announcements/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/merchandise/atom.xml | 2 +- blog/categories/micropython/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 +- hassio/addon_config/index.html | 2 +- hassio/run_local/index.html | 37 +++++++++++++++++-- sitemap.xml | 30 +++++++-------- 26 files changed, 72 insertions(+), 43 deletions(-) diff --git a/atom.xml b/atom.xml index 1de806261e..e93403624f 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index f13824378c..c512ebd13b 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 2fbd84ef60..d51483d7de 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 38bbb1a5f9..15bd5c6fab 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index b66c715cf0..dc9859d5b8 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index c0822a2c04..67446a8d70 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index fce74d5b09..eab06d0857 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+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 dee3f3aadc..09e1189f82 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 6709f2fa8f..17c1e7cffb 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index e5c88cbadf..6371de6058 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index cf8b76935b..1b6245ba5d 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 7671485789..5538b02c61 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index fdd1bbd87d..3db0d98a78 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index d0fd26892e..6f8f27f636 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 53539bc941..0d86421e32 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+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 4bd43c782e..ef40b8fc01 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 85f21186a0..272bd14b3e 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 8ee206f03a..0ec0c3a7cf 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index bf2d279997..af82b08875 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 53968ef1bd..965e28d384 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 70ef492a22..22d4924353 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]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index b3a014f7cb..9cf76ac93f 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 4a1ce58c0f..e9de21c19b 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-05-24T14:07:21+00:00 + 2017-05-24T14:28:19+00:00 https://home-assistant.io/ diff --git a/hassio/addon_config/index.html b/hassio/addon_config/index.html index f726e68bad..986a5ee751 100644 --- a/hassio/addon_config/index.html +++ b/hassio/addon_config/index.html @@ -85,7 +85,7 @@

Add-on Docker file

-

All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture.

+

All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture. Add tzdata if you need run in correct timezone.

FROM %%BASE_IMAGE%%
 
 ENV LANG C.UTF-8
diff --git a/hassio/run_local/index.html b/hassio/run_local/index.html
index b1d81522bd..1dc372ebb5 100644
--- a/hassio/run_local/index.html
+++ b/hassio/run_local/index.html
@@ -68,12 +68,41 @@
   
   

On a normal installation you have access to base machine and can install or add every things of script they you can call with a command_line sensor/switch. Since Hass.IO use docker and every application is strict limited to other, you can not use this old way to perform local stuff. For first view it look very limited but if you look better to that conecpt you will see that make all very stable and a wrong thing can not break your system. It will also warrenty that your system is in every time clear to eatch running thing.

-

If you need run a script to read data for a sensor or switch commands to other device, you can do that with a add-on or on HomeAssistant container with a custom component. We look now to do that in a modern way inside a add-on. For custom component you can look into [custom-component][devoloper site].

-

Before you read more on that page, please read the [addons-turtorial][add-ons turtorial]. Now you can resize your horizen to new way to do things safe.

-

First you need install a MQTT broker. You can use our [mqtt-addon][mqtt broker add-on]. Make sure you use logins and disable anonymos access if you want control sensible systems. We provide no Hass.IO way to exchange data, that will be not realy good for security and is also to slow to exchange data between containers or stop and go stuff.

+

If you need run a script to read data for a sensor or switch commands to other device, you can do that with a add-on or on HomeAssistant container with a custom component. We look now to do that in a modern way inside a add-on. For custom component you can look into devoloper site.

+

Before you read more on that page, please read the add-ons turtorial. Now you can resize your horizen to new way to do things safe.

+

First you need install a MQTT broker. You can use our mqtt broker add-on. Make sure you use logins and disable anonymos access if you want control sensible systems. We provide no Hass.IO way to exchange data, that will be not realy good for security and is also to slow to exchange data between containers or stop and go stuff.

Sensors

Short story of that caption: We loop in our script to fetch data push to mqtt and wait until next processing is ready. Here is a basic example and struct for that process.

-

+

Our Dockerfile need to install:

+
RUN apk --no-cache add tzdata jq mosquitto-clients
+
+
+

Now we can process it with run.sh:

+
#!/bin/bash
+set -e
+
+CONFIG_PATH=/data/options.json
+
+# possible options for processing
+MQTT_SERVER=$(jq --raw-output '.server' $CONFIG_PATH)
+MQTT_PORT=$(jq --raw-output '.port' $CONFIG_PATH)
+TOPIC=$(jq --raw-output '.topic' $CONFIG_PATH)
+USER=$(jq --raw-output '.user' $CONFIG_PATH)
+PASSWORD=$(jq --raw-output '.password' $CONFIG_PATH)
+WAIT_TIME=$(jq --raw-output '.seconds' $CONFIG_PATH)
+
+# read data
+while true
+do
+  if OUTPUT="$(/read_my_sensor.sh)"
+  then
+    mosquitto_pub -h "$MQTT_SERVER" -p "$MQTT_PORT" -t "$TOPIC" -m "$OUTPUT" || true
+  else
+    echo "$(data) [ERROR] can't read sensor: $OUTPUT"
+  fi
+
+  sleep "$WAIT_TIME"
+done
 

Commands

diff --git a/sitemap.xml b/sitemap.xml index b5802b481c..fb4af170f9 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3460,62 +3460,62 @@ https://home-assistant.io/demo/frontend.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/index.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-05-24T14:06:31+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-05-24T14:06:32+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-05-24T14:06:32+00:00 +2017-05-24T14:27:20+00:00 https://home-assistant.io/static/mdi-demo.html -2017-05-24T14:06:32+00:00 +2017-05-24T14:27:20+00:00