#Increase brightness by 1% per minute until 100%

1 messages · Page 1 of 1 (latest)

pearl flint
#

I'm trying to create a simple automation that increases a dimmer switch's brightness attribute by 1% per minute until it reaches 100%. Can't seem to figure it out. In my "Then do" section, I have a "Repeat While Kitchen Lights (Attribute: Brightness) is Below 100%", Action: Increase Kitchen Lights Brightness (doesn't give me an option for an increment value), Action: Delay for 1 minute. My understanding is that this should, for as long as the brightness is less thatn 100, increase the brightness, wait a minute, increase brightness again, wait a minute, etc. but it never seems to increment the brightness at all...help?

#

so, just ran another test...looks like it did increase brightness by 10% (guessing this is a hard-coded default increment?), but the action never repeated

kind kiln
#

Hi @pearl flint,
If you don't share your code, no one will be able to help here...

lethal yokeBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

kind kiln
#

or

lethal yokeBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

pearl flint
#
alias: new test
description: ""
triggers: []
conditions: []
actions:
  - repeat:
      sequence:
        - device_id: 1cbdf8b891a7c53841da50b6227a90eb
          domain: light
          entity_id: dde944c3b65a8263bd8a8d9125ad959f
          type: brightness_increase
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
      while:
        - condition: numeric_state
          entity_id: light.kitchen_lights_light_1
          attribute: brightness
          below: 100
mode: single

kind kiln
pearl flint
#

so, I actually built the automation in the UI...that's just the YAML it came up with

kind kiln
#

I would look up the current brightness percentage, add one to it, and send it to the light.

pearl flint
#

I'm still learning my way around HA and how to build the automations, and I can't write YAML to save my life...not quite sure how to do that

kind kiln
#

You have a good start there, use it as a base. I do do that myself. Then look in the forum or the blueprint exchange for someone using brightness percent stuff and use that.. Templates can be tested in the developer tab - templates.

lethal yokeBOT
pearl flint
#

cool, thanks!

kind kiln
#

If you are lucky someone will toss something together for you here, but I struggle working like that for others, my first 2 guesses are usually wrong. At this point I often know where to find the answer and know that there is an answer, but not the exact answer.

pearl flint
#

I'm sure it's probably something simple and I'm just not familiar enough with HA to know it off the top of my head

smoky escarp
#

brightness is 255

#

not 100

#

255 = 100%