Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Dynamisk lamelgardin
- description: ""
- triggers:
- - entity_id: sun.sun
- attribute: azimuth
- trigger: state
- id: Azimuth
- - trigger: numeric_state
- entity_id:
- - sun.sun
- below: 15
- id: Elevation
- attribute: elevation
- conditions: []
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - Azimuth
- - condition: numeric_state
- entity_id: sun.sun
- attribute: azimuth
- above: 190
- below: 270
- - condition: numeric_state
- entity_id: sun.sun
- attribute: elevation
- above: 16
- - condition: numeric_state
- entity_id: sensor.klimasensor_tvstuen_temperature
- above: 22
- - condition: or
- conditions:
- - condition: state
- entity_id: weather.forecast_home
- state: sunny
- - condition: state
- entity_id: weather.forecast_home
- state: partlycloudy
- sequence:
- - data:
- entity_id: cover.lamelgardiner_stuevinduer
- position: |
- {{ (100-((state_attr('sun.sun','azimuth')|float - 190)
- * (100 / (270 - 190))))|round(0) }}
- action: cover.set_cover_position
- - conditions:
- - condition: trigger
- id:
- - Elevation
- sequence:
- - action: cover.open_cover
- metadata: {}
- data: {}
- target:
- entity_id: cover.lamelgardiner_stuevinduer
- - data:
- message: Lamelgardiner justeret efter solens position
- title: Home Assistant
- action: notify.mobile_app_cs_mobil
- enabled: false
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement