diff --git a/atom.xml b/atom.xml index c26669eeb3..30a46223b7 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
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