From 7f6c668b4b2e39b837fd80db6e868753ad199724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Thu, 2 Jun 2016 08:13:00 +0200 Subject: [PATCH] Update scripts-conditions.markdown (#500) --- .../scripts-conditions.markdown | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/getting-started/scripts-conditions.markdown b/source/getting-started/scripts-conditions.markdown index 10022a1c719..1b76db53d6a 100644 --- a/source/getting-started/scripts-conditions.markdown +++ b/source/getting-started/scripts-conditions.markdown @@ -144,3 +144,23 @@ condition: zone entity_id: device_tracker.paulus zone: zone.home ``` + + +#### {% linkable_title Examples %} + +```yaml + condition: + - condition: numeric_state + entity_id: sun.sun + value_template: '{{ state.attributes.elevation }}' + below: 1 + - condition: state + entity_id: light.living_room + state: 'off' + - condition: time + before: '23:00:00' + after: '14:00:00' + - condition: state + entity_id: script.light_turned_off_5min + state: 'off' +```