diff --git a/atom.xml b/atom.xml index aeb752d78c..a19cde4810 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 40f7971782..4612568f2b 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 40358e71da..61e55afb3c 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 087d0f607a..a7b2aeef3d 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index f5d3c7f3fc..b727c011d6 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 5415d88b5b..95260b8ce6 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+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 baf41de254..00ae42d53a 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 391f7ebb99..e6edbe3b25 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 2cdfe0b849..8fbcbf3fcd 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index f54dbfc21d..547e290fd2 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 96197041e5..a71fcdcb96 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+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 89a36ee45a..4f7d9ee82c 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index a6db614ae2..73ccdd48cb 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 586765212d..3ad4ed9b70 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index a0b28c4803..b9b3712a3e 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index d688034745..58a2af7e52 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 3f968fcae3..d4b5a1cfc8 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-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index fd21ef7584..1efba34da1 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 74855827d8..5959536343 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-06-20T15:22:54+00:00 + 2016-06-20T21:47:53+00:00 https://home-assistant.io/ diff --git a/components/sensor.command_line/index.html b/components/sensor.command_line/index.html index 2f0f1e6dbc..4454273f23 100644 --- a/components/sensor.command_line/index.html +++ b/components/sensor.command_line/index.html @@ -170,6 +170,18 @@ +

Read value out of a remote text file

+ +

If you own a devices which are storing values in text files which are accessible over HTTP then you can use the same approach as shown in the previous section. Instead of looking at the JSON response we directly grab the sensor’s value.

+ +
+
  - platform: command_line
+    command: python3 -c "import requests; print(requests.get('http://remote-host/sensor_data.txt').text)"
+    name: File value
+
+
+
+

Use an external script

The example is doing the same as the aREST sensor but with an external Python script. It should give you an idea about interacting with devices which are exposing a RESTful API.

diff --git a/sitemap.xml b/sitemap.xml index 11fc26ff9a..0c0c7609ed 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1797,26 +1797,26 @@ https://home-assistant.io/demo/frontend.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00 https://home-assistant.io/demo/index.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-06-20T15:21:45+00:00 + 2016-06-20T21:47:15+00:00