Brightness value

I made an automation with a motion sensor that works.
But I would like the Brightness value to go to 70 after e.g. 22:00 and then again to 255 at 07:00 in the morning.

Then just call the different task when you want to :slight_smile: One way (out of tens of different options) would be to add a chooser with a time condition to your automation. You can all do this from the UI. Or add a template to the brightness field (smaller but more complex if you never worked with templates).

Small but incomplete example.

alias: New Automation
description: ''
mode: single
trigger:
  - platform: device
    device_id: ''
    domain: ''
    entity_id: ''
condition: []
action:
  - choose:
      - conditions:
          - condition: or
            conditions:
              - condition: time
                after: '22:00'
              - condition: time
                before: '7:00'
        sequence:
          - service: light.turn_on
            data:
              brightness_pct: 70
    default:
      - service: light.turn_on
        data:
          brightness_pct: 100

When you switch to yaml mode when editing your automation you can post this and switch back to the visual editor to add the missing pieces (like trigger and entity id’s).

top
It works as I intended
thanks

Your own answer as solution, that’s a bit awkward… :roll_eyes:

1 Like

You should pick the post with solution, not your own message :slight_smile: