From e771237a486186f685d80591c5660d7c81120a1d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 14 Oct 2015 10:38:40 +0200 Subject: [PATCH] Add content from source --- source/components/sun.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/components/sun.markdown b/source/components/sun.markdown index 684684b194b..0117dd8d764 100644 --- a/source/components/sun.markdown +++ b/source/components/sun.markdown @@ -35,6 +35,18 @@ Configuration variables: ### {% linkable_title Implementation Details %} +The suns event listener will call the service when the sun rises or sets with an offset. + +The sun event need to have the type 'sun', which service to call, which event (sunset or sunrise) and the offset. + +```json +{ + "type": "sun", + "service": "switch.turn_on", + "event": "sunset", + "offset": "-01:00:00" +} +``` #### {% linkable_title Maintains entity `sun.sun` %}