  - alias: 'Lys ved garage'
    trigger:
      platform: state
      entity_id: binary_sensor.indkorsel_sensor_motion
      to: 'on'
    condition:
      - condition: numeric_state
        entity_id: sensor.indkorsel_sensor_illuminance
        below: 90
#      - condition: time
#        before: '23:00:00'


#      - condition: state
#        entity_id: sun.sun
#        state: below_horizon
    action:
      - service: homeassistant.turn_on
        entity_id:
          - light.drivhus
          - light.paradis

  - alias: 'Sluk lys ved garage'
    trigger:
      platform: state
      entity_id: binary_sensor.indkorsel_sensor_motion
      to: 'off'
      for:
        minutes: 10
    action:
      service: homeassistant.turn_off
      data:
        entity_id:
          - light.drivhus
          - light.paradis
            


