Automatiser ses volets roulants en fonction du soleil été / hiver

alias: Volet Bureau Azimut
description: Volet Bureau Azimut
trigger:
  - entity_id:
      - binary_sensor.soleil_volet_sud
    from: 'off'
    platform: state
    to: 'on'
  - platform: state
    entity_id:
      - sensor.capteur_lumiere_exterieur
    for:
      hours: 0
      minutes: 30
      seconds: 0
    from: '4000'
    to: '10000'
  - platform: state
    entity_id:
      - sensor.temperature_158d000273cd8e
  - platform: state
    entity_id:
      - sensor.sunelevation
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_select.modevoletbureau
            state: Auto
          - condition: numeric_state
            entity_id: sensor.temperature_158d000273cd8e
            above: '22'
          - condition: numeric_state
            entity_id: sensor.capteur_lumiere_exterieur
            above: '5000'
          - condition: template
            value_template: '{{ state_attr("cover.volet_bureau", "current_position") > 60 }}'
            enabled: true
          - condition: numeric_state
            entity_id: sensor.sunelevation
            below: '65'
          - condition: state
            entity_id: binary_sensor.soleil_volet_sud
            state: 'on'
        sequence:
          - device_id: 3b13f25093299df51a0aa3ddb7bf8774
            domain: cover
            entity_id: cover.volet_bureau
            type: set_position
            position: 20
    default:
      - device_id: 3b13f25093299df51a0aa3ddb7bf8774
        domain: cover
        entity_id: cover.volet_bureau
        type: set_position
        position: 100
mode: single

Salut ma petite contribution