diff --git a/atom.xml b/atom.xml index fc12bd99f6..ce20636be8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
You can optionally use a value_template
to process the value of the state before testing it.
condition: numeric_state
-entity_id: sensor.temperature
-above: 17
-below: 25
-# If your sensor value needs to be adjusted
-value_template: {{ float(state.state) + 2 }}
+condition:
+ condition: numeric_state
+ entity_id: sensor.temperature
+ above: 17
+ below: 25
+ # If your sensor value needs to be adjusted
+ value_template: {{ float(state.state) + 2 }}
@@ -167,14 +168,15 @@ This allows you to mix several AND and OR conditions together.
Tests if an entity is a specified state.
-condition: state
-entity_id: device_tracker.paulus
-state: not_home
-# optional: trigger only if state was this for last X time.
-for:
- hours: 1
- minutes: 10
- seconds: 5
+condition:
+ condition: state
+ entity_id: device_tracker.paulus
+ state: not_home
+ # optional: trigger only if state was this for last X time.
+ for:
+ hours: 1
+ minutes: 10
+ seconds: 5
@@ -182,10 +184,11 @@ This allows you to mix several AND and OR conditions together.
The sun condition can test if the sun has already set or risen when a trigger occurs. The before
and after
keys can only be set to sunset
or sunrise
. They have a corresponding optional offset value (before_offset
, after_offset
) that can be added, similar to the sun trigger.
-condition: sun
-after: sunset
-# Optional offset value
-after_offset: "-1:00:00"
+condition:
+ condition: sun
+ after: sunset
+ # Optional offset value
+ after_offset: "-1:00:00"
@@ -193,8 +196,9 @@ This allows you to mix several AND and OR conditions together.
The template condition will test if the given template renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render ‘true’.
-condition: template
-value_template: '{{ states.device_tracker.iphone.attributes.battery > 50 }}'
+condition:
+ condition: template
+ value_template: '{{ states.device_tracker.iphone.attributes.battery > 50 }}'
@@ -204,14 +208,15 @@ This allows you to mix several AND and OR conditions together.
The time condition can test if it is after a specified time, before a specified time or if it is a certain day of the week
-condition: time
-# At least one of the following is required.
-after: '15:00:00'
-before: '02:00:00'
-weekday:
- - mon
- - wed
- - fri
+condition:
+ condition: time
+ # At least one of the following is required.
+ after: '15:00:00'
+ before: '02:00:00'
+ weekday:
+ - mon
+ - wed
+ - fri
@@ -222,9 +227,10 @@ Time condition windows can span across the midnight threshold. In the example ab
Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the OwnTracks platform and the iCloud platform.
-condition: zone
-entity_id: device_tracker.paulus
-zone: zone.home
+condition:
+ condition: zone
+ entity_id: device_tracker.paulus
+ zone: zone.home
diff --git a/sitemap.xml b/sitemap.xml
index 799b9a93b9..039bb40b20 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2419,62 +2419,62 @@
https://home-assistant.io/demo/frontend.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/index.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00
https://home-assistant.io/static/mdi-demo.html
-2016-12-14T23:17:22+00:00
+2016-12-15T17:19:20+00:00