diff --git a/atom.xml b/atom.xml index c7a6d16e4d..dfea044d1a 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 896b3b09d4..f25ddb6ae0 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index ad504476bd..d7e6c79ce3 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 2abe321efd..16641d26f4 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 4edd928e68..207a90f2ed 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 8431f06454..21fcd9a625 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+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 f472d3f596..735eb71d72 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 6c15609a76..8847aedf6f 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index dd79b60883..b5ae07f30d 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 5c08f77cbf..71f56bd3bb 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 17cb18329f..cfde2b5101 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 4f59a7887e..b58c592152 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 30be0cc560..dc28beed63 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 63c3b17f11..aa05e406ec 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+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 191c1ced3b..9d7e82f098 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 6ad032557a..0cc26fcbf8 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index c73ae5f0d9..277b73bfca 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 963eb932a6..e3e2ff3f99 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 051f9f583c..f1eba45440 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 68e60fc571..cd42b9fd53 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-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 4b1a8f597f..c6dfedd616 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index e51c7f8125..c1ed162967 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-02-23T10:34:14+00:00 + 2017-02-23T10:37:57+00:00 https://home-assistant.io/ diff --git a/components/input_select/index.html b/components/input_select/index.html index 39321320e3..0791e12246 100644 --- a/components/input_select/index.html +++ b/components/input_select/index.html @@ -162,6 +162,52 @@ +

Example of input_select being used in a bidirectional manner, both being set by and controlled by an MQTT action in an automation.

+ +

+# Example configuration.yaml entry using 'input_select' in an action in an automation
+   
+# Define input_select
+input_select:
+  thermostat_mode:
+    name: Thermostat Mode
+    options:
+      - "auto"
+      - "off"
+      - "cool"
+      - "heat"
+    icon: mdi:target
+
+# Automation.     
+ # This automation script runs when a value is received via MQTT on retained topic: thermostatMode
+ # It sets the value selector on the GUI. This selector also had its own automation when the value is changed.
+- alias: Set Thermostat Mode Selector
+  trigger:
+    platform: mqtt
+    topic: "thermostatMode"
+   # entity_id: input_select.thermostat_mode
+  action:
+     service: input_select.select_option
+     data_template:
+      entity_id: input_select.thermostat_mode
+      option: '{{ trigger.payload }}'
+
+ # This automation script runs when the thermostat mode selector is changed.
+ # It publishes its value to the same MQTT topic it is also subscribed to.
+- alias: Set Thermostat Mode
+  trigger:
+    platform: state
+    entity_id: input_select.thermostat_mode
+  action:
+    service: mqtt.publish
+    data_template:
+      topic: "thermostatMode"
+      retain: true
+      payload: '{{ states.input_select.thermostat_mode.state }}'
+
+
+
+ diff --git a/sitemap.xml b/sitemap.xml index 3a514c20b6..3205628252 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2869,62 +2869,62 @@ https://home-assistant.io/demo/frontend.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/index.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:10+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:11+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:11+00:00 https://home-assistant.io/static/mdi-demo.html -2017-02-23T10:33:22+00:00 +2017-02-23T10:37:11+00:00