alias: Solaire Domotique 
description: Gestion Allumage avec les heures 
triggers:
  - type: occupied
    device_id: binary.votresensor
    entity_id: iddevotresensor
    domain: binary_sensor
    trigger: device
  conditions: []
actions:
  - choose:
      - conditions:
          - condition: time
            after: "06:00:00"
            before: "21:00:00"
        sequence:
          - data:
              brightness_pct: 100
            action: light.turn_on
            target:
              entity_id: votrelumiere
      - conditions:
          - condition: or
            conditions:
              - condition: time
                after: "21:00:00"
              - condition: time
                before: "06:00:00"
        sequence:
          - data:
              brightness_pct: 40
            action: light.turn_on
            target:
              entity_id: votrelumiere
mode: single
