diff --git a/atom.xml b/atom.xml index cf19d16384..676495ae37 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-08-18T05:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 06c4805a33..d305c8ab1d 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index d8b73d88bf..70ca9bb289 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index ac9ccb9e8d..507e728a38 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 8c8ac356f2..042edbf77a 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 017fd22ea0..a0091c756c 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:03:57+00:00 + 2016-08-18T05:45:31+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 d8879bd0bd..617fa1a407 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index fc927a2bbb..6359f47f39 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index e93c2a3f4e..a98ef74268 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index c720e0e9cd..4f047d1d7a 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index b23ee432b8..1598dd6dd8 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 0f2a4c27fe..668bfef598 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:03:57+00:00 + 2016-08-18T05:45:31+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 66319fb567..b731341226 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index d85f1aa404..735f0c1d6f 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 920dd76733..89f602bf28 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 06ea95746b..c682c19dd1 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 7a3dc925d8..334c463562 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 661d075406..938784bd14 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index d1be76db48..eb709791f1 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index ceab6b8972..3cdd565a82 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:03:57+00:00 + 2016-08-18T05:45:31+00:00 https://home-assistant.io/ diff --git a/components/input_slider/index.html b/components/input_slider/index.html index a3daaa96da..4c88eb2499 100644 --- a/components/input_slider/index.html +++ b/components/input_slider/index.html @@ -115,6 +115,76 @@
  • step (Optional): Step value for the slider.
  • +

    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
    +
    +# 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 }}'
    +
    + +

    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
    +
    +# 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
    +
    +# 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 f8886c4e30..8d60921292 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2088,62 +2088,62 @@ https://home-assistant.io/demo/frontend.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/index.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-08-18T05:03:05+00:00 + 2016-08-18T05:44:30+00:00