mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
SunEventListener documentation
This commit is contained in:
parent
99b1cbf9b5
commit
03e30ea5ed
@ -1,4 +1,17 @@
|
||||
"""asd"""
|
||||
"""
|
||||
An event in the scheduler component that will call the service
|
||||
when the sun rises or sets with an offset.
|
||||
The sun evnt need to have the type 'sun', which service to call,
|
||||
which event (sunset or sunrise) and the offset.
|
||||
|
||||
{
|
||||
"type": "sun",
|
||||
"service": "switch.turn_on",
|
||||
"event": "sunset",
|
||||
"offset": "-01:00:00"
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
|
Loading…
x
Reference in New Issue
Block a user