diff --git a/atom.xml b/atom.xml index a88f62ae42..b51ccc493b 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 9dbdcf0ad8..af26b7f813 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index f736e3303c..88d4fbb337 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index b70f424ae1..0c1e84416a 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 7f295dfb01..e42b1e8602 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 4088b3bd55..dc83565bd4 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 67b8169f67..e1d006ab81 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+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 5e8dbb277e..2f7031a19d 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 854bc10bd2..0b395dad8f 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 64f0bf5823..c4f85ae95f 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 43ae24199c..3e143c8c3b 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 386f0ec625..5be114d231 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index bdeed10d6a..6e78f49daf 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 5bf0aa7e73..483801ff1b 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 5981aac33c..0b38c6e63b 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 760c9b7e98..3682355860 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+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 8b5aa459d2..2968319c83 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 68d9b702ff..3d5f2d39db 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 602c831696..1d2b51dc4e 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 16f6680bd9..9e5513fb84 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 3210f36868..ac324e88fa 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d21ed8d07d..520726e0eb 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-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 6288c6f4b7..4fd18a4a01 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 99df347a60..40739cd151 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-12-03T14:26:23+00:00 + 2017-12-03T15:14:56+00:00 https://home-assistant.io/ diff --git a/components/input_number/index.html b/components/input_number/index.html index 8152f8af48..6f61582648 100644 --- a/components/input_number/index.html +++ b/components/input_number/index.html @@ -113,10 +113,7 @@ Before version 0.55 this component was known as

Automation Examples

Here’s an example of input_number being used as a trigger in an automation.

-

-# Example configuration.yaml entry using 'input_number' as a trigger in an automation
-
-# Define input_number
+
# Example configuration.yaml entry using 'input_number' as a trigger in an automation
 input_number:
   bedroom_brightness:
     name: Brightness
@@ -124,8 +121,6 @@ Before version 0.55 this component was known as 
     min: 0
     max: 254
     step: 1
-
-# Automation.     
 automation:
   - alias: Bedroom Light - Adjust Brightness
     trigger:
@@ -133,7 +128,7 @@ Before version 0.55 this component was known as 
       entity_id: input_number.bedroom_brightness
     action:
       - service: light.turn_on
-# Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable
+        # Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable
         data_template:
           entity_id: light.bedroom
           brightness: '{{ trigger.to_state.state | int }}'
@@ -141,10 +136,7 @@ Before version 0.55 this component was known as 
 

Another code example using input_number, this time being used in an action in an automation.

-

-# Example configuration.yaml entry using 'input_number' in an action in an automation
-
-# Define 'input_select'
+
# Example configuration.yaml entry using 'input_number' in an action in an automation
 input_select:
   scene_bedroom:
     name: Scene
@@ -156,8 +148,6 @@ Before version 0.55 this component was known as 
       - Relax
       - 'OFF'
     initial: 'Select'
-    
-# Define input_number
 input_number:
   bedroom_brightness:
     name: Brightness
@@ -165,8 +155,6 @@ Before version 0.55 this component was known as 
     min: 0
     max: 254
     step: 1
-
-# Automation.     
 automation:
   - alias: Bedroom Light - Custom
     trigger:
@@ -175,18 +163,14 @@ Before version 0.55 this component was known as 
       to: CUSTOM
     action:
       - service: light.turn_on
-# Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.
+        # Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.
         data_template:
           entity_id: light.bedroom
           brightness: '{{ states.input_number.bedroom_brightness.state | int }}'
-
 

Example of input_number 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_number' in an action in an automation
-   
-# Define input_number
+
# Example configuration.yaml entry using 'input_number' in an action in an automation
 input_number:
   target_temp:
     name: Target Heater Temperature Slider
@@ -195,33 +179,30 @@ Before version 0.55 this component was known as 
     step: 1
     unit_of_measurement: step  
     icon: mdi:target
-
-# Automation.     
 # This automation script runs when a value is received via MQTT on retained topic: setTemperature
 # It sets the value slider on the GUI. This slides also had its own automation when the value is changed.
-- alias: Set temp slider
-  trigger:
-    platform: mqtt
-    topic: "setTemperature"
-  action:
-     service: input_number.set_value
-     data_template:
-      entity_id: input_number.target_temp
-      value: '{{ trigger.payload}}'
-
- # This automation script runs when the target temperature slider is moved.
- # It publishes its value to the same MQTT topic it is also subscribed to.
-- alias: Temp slider moved
-  trigger:
-    platform: state
-    entity_id: input_number.target_temp
-  action:
-    service: mqtt.publish
-    data_template:
+automation:
+  - alias: Set temp slider
+    trigger:
+      platform: mqtt
       topic: "setTemperature"
-      retain: true
-      payload: '{{ states.input_number.target_temp.state | int }}'
-
+    action:
+      service: input_number.set_value
+      data_template:
+        entity_id: input_number.target_temp
+        value: '{{ trigger.payload}}'
+# This automation script runs when the target temperature slider is moved.
+# It publishes its value to the same MQTT topic it is also subscribed to.
+  - alias: Temp slider moved
+    trigger:
+      platform: state
+      entity_id: input_number.target_temp
+    action:
+      service: mqtt.publish
+      data_template:
+        topic: "setTemperature"
+        retain: true
+        payload: '{{ states.input_number.target_temp.state | int }}'
 
diff --git a/sitemap.xml b/sitemap.xml index f0f2bd90f0..be430e164f 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3746,7 +3746,7 @@ https://home-assistant.io/components/switch.hook/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4418,99 +4418,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/tools/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/tools/hass/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/docs/tools/scripts/ -2017-12-03T14:26:23+00:00 +2017-12-03T15:14:56+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5634,62 +5634,62 @@ https://home-assistant.io/demo/frontend.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/index.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00 https://home-assistant.io/static/mdi-demo.html -2017-12-03T14:25:38+00:00 +2017-12-03T15:14:07+00:00