Automate Light bulb Brightness based on time

If I were you, I’d do the adaptive lighting and I’d be able to help you through it but if you only have one light, it’s overkill. Here’s an automation that will turn the bulb on to a different brightrness based on time:

alias: New Automation
description: ''
trigger:
  - type: motion
    platform: device
    device_id: f79e37a0f0e524d47ca63601157f00df
    entity_id: binary_sensor.bathroom_1_motion_sensor
    domain: binary_sensor
condition: []
action:
  - if:
      - type: is_motion
        condition: device
        device_id: f79e37a0f0e524d47ca63601157f00df
        entity_id: binary_sensor.bathroom_1_motion_sensor
        domain: binary_sensor
      - condition: time
        before: '07:00:00'
        after: '00:00:00'
    then:
      - service: light.turn_on
        data:
          brightness_pct: 1
        target:
          entity_id: light.bathroom_1_vanity
  - if:
      - type: is_motion
        condition: device
        device_id: f79e37a0f0e524d47ca63601157f00df
        entity_id: binary_sensor.bathroom_1_motion_sensor
        domain: binary_sensor
      - condition: time
        before: '00:00:00'
        after: '07:00:00'
    then:
      - service: light.turn_on
        data:
          brightness_pct: 100
        target:
          entity_id: light.bathroom_1_vanity
mode: single
1 Like