From 7e8cc236fff4bc769921f829fa5d92ea06381fa2 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 15 Dec 2016 17:22:21 +0000 Subject: [PATCH] Site updated at 2016-12-15 17:22:21 UTC --- atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/iot-data/atom.xml | 2 +- blog/categories/micropython/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- getting-started/scripts-conditions/index.html | 68 ++++++++++--------- sitemap.xml | 30 ++++---- 23 files changed, 73 insertions(+), 67 deletions(-) diff --git a/atom.xml b/atom.xml index fc12bd99f6..ce20636be8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index cf37e7b720..de2388a5f5 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 7a23c0ebf8..8d5f6d1b19 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index f60e37a2db..f695033897 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 9351373550..639b37b2c8 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index ff9492c1c5..7cefbc481c 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+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 8dce498b82..c03e844951 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 33b9db3c46..3f5793729c 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 5648b876b5..9af87946cf 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index b73982848f..1584f62703 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 8a01d7e83b..8dd52c6409 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 3444d745f6..d7918e870f 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 79b503aefd..8a3a579351 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+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 d99f926cf9..9ee5e13b58 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 0028b015ee..a15f575f18 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 347865f746..a4b162a806 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 1bee2ce43b..6a6881dc15 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 5871e12750..7320ee053c 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index a10a42f3cf..1b580875fe 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-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 4a3f30dbac..716338d25b 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 1759ef6179..2c831e8f18 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-12-14T23:18:09+00:00 + 2016-12-15T17:20:12+00:00 https://home-assistant.io/ diff --git a/getting-started/scripts-conditions/index.html b/getting-started/scripts-conditions/index.html index af2936a2e4..0088c6af9f 100644 --- a/getting-started/scripts-conditions/index.html +++ b/getting-started/scripts-conditions/index.html @@ -154,12 +154,13 @@ This allows you to mix several AND and OR conditions together.

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