Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: Sunset_if_home
- alias: 'Hemkomst'
- trigger:
- platform: numeric_state
- entity_id: sun.sun
- value_template: '{{ state.attributes.elevation }}'
- #Hur högt över horisonten solen befinner sig i grader. 0 = solnedgång
- below: 5.0
- above: -10
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: 'group.telefoner'
- state: 'home'
- - condition: time
- after: '12:00:00'
- before: '02:00:00'
- action:
- service: scene.turn_on
- entity_id: scene.normalvit
- - id: evening_light
- alias: 'Kvällsljus'
- trigger:
- platform: numeric_state
- entity_id: sun.sun
- value_template: '{{ state.attributes.elevation }}'
- #Hur högt över horisonten solen befinner sig i grader. 0 = solnedgång
- below: -10.0
- condition:
- condition: state
- entity_id: group.telefoner
- state: 'home'
- action:
- service: scene.turn_on
- entity_id: scene.dimmad_vit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement