diff --git a/atom.xml b/atom.xml index 68f2cac3c7..5b3ace9eda 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index fcd3a500cc..f5b882b393 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index f03b81bd5c..d8e8be264a 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index e28ab01171..a60c049bc9 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 63224a6e66..1bea1a2880 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 7b5219972f..32353963d5 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index fbd9805fea..442dcc6a9a 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+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 bf9573e7cf..46fadc03b0 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index ee2f7f5843..f9c99cfd4a 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 308ed6216e..25287ce5e1 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index d60da75525..0c672d0df9 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 8313da69fe..cba384c6e3 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 19f674c5ab..3c69c3fa2c 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index eb41188ce9..3dcfe1239f 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index e3423c23f2..961e1ece3b 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 36fbb8dfca..c437484d14 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+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 6fb80981ed..b3971f60fd 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 43657807b5..a106bbee4d 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index f667ddebc5..ae98aae8d6 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index ee3974bc61..96dbf34ead 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 9cbcadd676..c44ed6914c 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index f57b3f985f..de49522dbd 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-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 6eb03e87d9..3b56f10940 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 51b227a0e9..74c08b687e 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-10-21T19:25:20+00:00 + 2017-10-21T21:10:30+00:00 https://home-assistant.io/ diff --git a/hassio/run_local/index.html b/hassio/run_local/index.html index 2f6476fcc3..17721cef58 100644 --- a/hassio/run_local/index.html +++ b/hassio/run_local/index.html @@ -76,9 +76,10 @@

Hass.io is a managed environment, which means that you can’t install applications that can be embedded into Home Assistant using the command_line sensor/switch.

-

There are two options if you need to run a script to read data from a sensor or send commands to other devices on Hass.io.

+

There are three options if you need to run a script to read data from a sensor or send commands to other devices on Hass.io.

The first option is to write a custom component for Home Assistant. Using Python, you can communicate with your device. For more information about developing a custom component, take a look at the developer documentation.

-

The second option is to make a local add-on for Hass.io that sends the data to Home Assistant via MQTT. Before we dive into this, read up on Hass.io add-on development first.

+

The second option is to use STDIN inside add-on and use the service hassio.addon_stdin to send data. More about this options look into developer documentation for internal add-on communication. There is also describe how do you can easy access to Home-Assistant Rest API.

+

The third option is to make a local add-on for Hass.io that sends the data to Home Assistant via MQTT. Before we dive into this, read up on Hass.io add-on development first.

For security and speed, Hass.io does not provide a way for containers to communicate directly. So the first step is to set up a communication channel. We’re going to use MQTT for this using the MQTT broker add-on.

Sensors

We loop in our script to fetch data and push it to MQTT and wait until the next process is ready. Here is a basic example and structure for that process.

diff --git a/sitemap.xml b/sitemap.xml index 8f2139b59f..fd14ffd22a 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3442,7 +3442,7 @@ https://home-assistant.io/components/switch.hook/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4078,99 +4078,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/tools/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/tools/hass/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/docs/tools/scripts/ -2017-10-21T19:25:20+00:00 +2017-10-21T21:10:30+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5240,62 +5240,62 @@ https://home-assistant.io/demo/frontend.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/index.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-10-21T19:24:26+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-10-21T19:24:27+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-10-21T19:24:27+00:00 +2017-10-21T21:09:55+00:00 https://home-assistant.io/static/mdi-demo.html -2017-10-21T19:24:27+00:00 +2017-10-21T21:09:55+00:00