diff --git a/atom.xml b/atom.xml index c26669eeb3..30a46223b7 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 7c140c84e3..b50ab62cd6 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 2fa3676ad2..29bbc949c8 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 2b32db424d..d43c38607f 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 8a98bc7194..917ce460b7 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 7b95f4c023..d30fa9a481 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+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 d8bfc1e54c..7e6e024a05 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 2ce0b9f4a2..7389b6f304 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]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 07c4cd18df..09b6e1d76c 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 8e069b7ef8..2753844215 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 66d1bafe55..7c38e26d9a 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index dfbc84f267..c6b099c87d 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+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 7a8507014d..a2da02ca78 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 1e44e65d36..f6e5b8c69e 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index bda3bb8e49..935db0f199 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 7f9d77fe9d..20db9a00fd 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 81acb8d66c..c38fb41787 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index dc1431d9a8..263736a8d5 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-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index c3ae4f261f..40d23c419c 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index e24f74b3b5..297963c06a 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-08-18T05:52:47+00:00 + 2016-08-18T05:58:03+00:00 https://home-assistant.io/ diff --git a/components/input_slider/index.html b/components/input_slider/index.html index 57c9ae5d7e..cdda465e92 100644 --- a/components/input_slider/index.html +++ b/components/input_slider/index.html @@ -115,79 +115,85 @@
  • step (Optional): Step value for the slider.
  • -

    Automation Examples

    +

    Automation Examples

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

    -
    
    -# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
    +
    +
    +# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
     
    -# Define input_slider
    -input_slider:
    -  bedroom_brightness:
    -    name: Brightness
    -    initial: 254
    -    min: 0
    -    max: 254
    -    step: 1
    +# Define input_slider
    +input_slider:
    +  bedroom_brightness:
    +    name: Brightness
    +    initial: 254
    +    min: 0
    +    max: 254
    +    step: 1
     
    -# Automation.     
    -automation:    
    -  - alias: Bedroom Light - Adjust Brightness
    -    trigger:
    -      platform: state
    -      entity_id: input_slider.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
    -        data_template:
    -          entity_id: light.bedroom
    -          brightness: '{{ trigger.to_state.state | int }}'
    +# Automation.     
    +automation:    
    +  - alias: Bedroom Light - Adjust Brightness
    +    trigger:
    +      platform: state
    +      entity_id: input_slider.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
    +        data_template:
    +          entity_id: light.bedroom
    +          brightness: '{{ trigger.to_state.state | int }}'
     
    -
    +
    + +

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

    -
    
    -# Example configuration.yaml entry using 'input_slider' in an action in an automation
    +
    +
    +# Example configuration.yaml entry using 'input_slider' in an action in an automation
     
    -# Define 'input_select'
    -input_select:
    -  scene_bedroom:
    -    name: Scene
    -    options:
    -      - Select
    -      - Concentrate
    -      - Energize
    -      - Reading
    -      - Relax
    -      - 'OFF'
    -    initial: 'Select'
    +# Define 'input_select'
    +input_select:
    +  scene_bedroom:
    +    name: Scene
    +    options:
    +      - Select
    +      - Concentrate
    +      - Energize
    +      - Reading
    +      - Relax
    +      - 'OFF'
    +    initial: 'Select'
         
    -# Define input_slider
    -input_slider:
    -  bedroom_brightness:
    -    name: Brightness
    -    initial: 254
    -    min: 0
    -    max: 254
    -    step: 1
    +# Define input_slider
    +input_slider:
    +  bedroom_brightness:
    +    name: Brightness
    +    initial: 254
    +    min: 0
    +    max: 254
    +    step: 1
     
    -# Automation.     
    -automation:    
    -  - alias: Bedroom Light - Custom
    -    trigger:
    -      platform: state
    -      entity_id: input_select.scene_bedroom
    -      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.
    -        data_template:
    -          entity_id: light.bedroom
    -          brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
    +# Automation.     
    +automation:
    +  - alias: Bedroom Light - Custom
    +    trigger:
    +      platform: state
    +      entity_id: input_select.scene_bedroom
    +      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.
    +        data_template:
    +          entity_id: light.bedroom
    +          brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
     
    -
    +
    + + diff --git a/sitemap.xml b/sitemap.xml index 9fe749bca9..c532de8675 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2088,62 +2088,62 @@ https://home-assistant.io/demo/frontend.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/index.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-08-18T05:52:02+00:00 + 2016-08-18T05:57:07+00:00