From e41f493acd0c140285699a1296861244ff039ff8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 25 Jun 2016 08:49:03 +0000 Subject: [PATCH] Site updated at 2016-06-25 08:49:03 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/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 +- .../index.html | 95 +++++++++++++++++++ sitemap.xml | 12 +-- 21 files changed, 120 insertions(+), 25 deletions(-) diff --git a/atom.xml b/atom.xml index 9a0c653e64..c10f95c358 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 1be1dbb922..d11d57d533 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 9722a6bb9f..456f1eb3ed 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index b58269bc72..d7eabc65c7 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 73d9832081..8955386912 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 473fbf9f85..16f81ebf34 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+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 77d3651f36..685dda82b1 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index cf31d71935..0c504e1985 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 0c04e7f46d..7dfa4836e4 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index acbb0a8a74..2485d0f53a 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index b8d6674788..f653e4a6e5 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+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 49935a8287..51dbc6c7a1 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 805b801372..12f20eb70e 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 4cf8d4f1ce..619005bfc1 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index fb85aa1590..96fefadfc3 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 27c3cbfd8d..95db57b3db 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 8ff8b7f7e0..b331a50dc4 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-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index a8ff2789b6..c617a228e8 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index a48fa913c1..67b9d8ca6b 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-06-24T09:52:16+00:00 + 2016-06-25T08:48:29+00:00 https://home-assistant.io/ diff --git a/cookbook/perform_actions_based_on_input_select/index.html b/cookbook/perform_actions_based_on_input_select/index.html index 2ddf162b16..79e76684c5 100644 --- a/cookbook/perform_actions_based_on_input_select/index.html +++ b/cookbook/perform_actions_based_on_input_select/index.html @@ -156,6 +156,101 @@ +

A little bit more complex example that uses input_select and template do decide what and in which Chromecast play.

+ +
+
input_select:
+  radio_station:
+    name: Radio Station
+    options:
+      - Z88.3
+      - Virgin
+      - RMC
+      - rmcHQ
+      - 105
+      - None
+    initial: None
+    icon: mdi:radio
+  radio_player:
+    name: Radio Player
+    options:
+      - Mansarda
+      - Doccia
+      - Bed
+      - Bath
+      - Salotto
+      - Salotto Video
+      - None
+    initial: None
+    icon: mdi:airplay
+
+automation:
+  - alias: Stop Streaming Radio
+    trigger:
+      - platform: state
+        entity_id: input_select.radio_station
+        to: "None"
+    action:
+      service: media_player.turn_off
+      data_template:
+        entity_id: >
+            {% if is_state("input_select.radio_player", "Mansarda") %}
+              media_player.bed_2
+            {%-elif is_state("input_select.radio_player", "Doccia") %}
+              media_player.bed_3
+            {%-elif is_state("input_select.radio_player", "Bed") %}
+              media_player.bed
+            {%-elif is_state("input_select.radio_player", "Bath") %}
+              media_player.bath
+            {%-elif is_state("input_select.radio_player", "Salotto") %}
+              media_player.salotto
+            {%-elif is_state("input_select.radio_player", "Salotto Video") %}
+              media_player.salotto_video
+            {% else %}
+              none
+            {% endif %}
+
+  - alias: Stream Radio - Template
+    trigger:
+      - platform: state
+        entity_id: input_select.radio_station
+    action:
+      - service: media_player.play_media
+        data_template:
+          entity_id: >
+            {% if is_state("input_select.radio_player", "Mansarda") %}
+              media_player.bed_2
+            {%-elif is_state("input_select.radio_player", "Doccia") %}
+              media_player.bed_3
+            {%-elif is_state("input_select.radio_player", "Bed") %}
+              media_player.bed
+            {%-elif is_state("input_select.radio_player", "Bath") %}
+              media_player.bath
+            {%-elif is_state("input_select.radio_player", "Salotto") %}
+              media_player.salotto
+            {%-elif is_state("input_select.radio_player", "Salotto Video") %}
+              media_player.salotto_video
+            {% else %}
+              none
+            {% endif %}
+          media_content_id: >
+            {% if is_state("input_select.radio_station", "Z88.3") %}
+              http://ice.zradio.org/z/high.mp3
+            {%-elif is_state("input_select.radio_station", "Virgin") %}
+              http://icecast.unitedradio.it/Virgin.mp3
+            {%-elif is_state("input_select.radio_station", "RMC") %}
+              http://icecast.unitedradio.it/RMC.mp3
+            {%-elif is_state("input_select.radio_station", "rmcHQ") %}
+              http://icecast.unitedradio.it/rmcHQ.mp3
+            {%-elif is_state("input_select.radio_station", "105") %}
+              http://icecast.unitedradio.it/Radio105.mp3
+            {% else %}
+              none
+            {% endif %}
+          media_content_type: 'audio/mp4'
+
+
+
diff --git a/sitemap.xml b/sitemap.xml index 9725c291d8..6598ebc417 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1807,26 +1807,26 @@ https://home-assistant.io/demo/frontend.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00 https://home-assistant.io/demo/index.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-06-24T09:51:33+00:00 + 2016-06-25T08:47:53+00:00