#Gradual Light adjustment stopping around 40%

1 messages · Page 1 of 1 (latest)

sick flower
#

I have two automations, one turns off the lights, and the other turns them on.

This problem originated with the off version which stopped around 40% brightness just like the On version does, but the off version works fine now, so I copied it and tried reversing the settings to make the On version.

What could I do to fix the problem?

alias: Wakeup Gradual Lights On
description: ""
triggers:
  - at: "02:30:00"
    trigger: time
conditions:
  - condition: state
    entity_id: light.d23lp_light
    state: "off"
actions:
  - target:
      entity_id: light.d23lp_light
    data:
      brightness_pct: 1
    action: light.turn_on
  - repeat:
      until:
        - condition: numeric_state
          entity_id: light.d23lp_light
          attribute: brightness
          above: 99
      sequence:
        - target:
            entity_id: light.d23lp_light
          data:
            brightness_step: 2
          action: light.turn_on
        - delay:
            hours: 0
            minutes: 0
            seconds: 2
            milliseconds: 0
mode: single```
#

2 seconds is just to make the test go by faster. It would likely be set to 15 seconds, or whatever 1% brightness per tick until 100% brightness from off ends up being over a 30 minute period

proper narwhal
#

99/255 = 39%, which is why it's stopping at ~40%

sick flower
#

Works fine, but I have a new problem and I've reopened this to keep the context

I have an off automation and the on automation, but sometimes one doesn't end and keeps going, then they're infinitely trying to control the light levels.

What can I change to stop that?

proper narwhal
#

post the 2 automations

sick flower
# proper narwhal post the 2 automations
description: ""
triggers:
  - at: "19:30:00"
    trigger: time
conditions:
  - condition: state
    entity_id: light.d23lp_light
    state: "on"
actions:
  - target:
      entity_id: light.d23lp_light
    data:
      brightness: 255
    action: light.turn_on
  - repeat:
      until:
        - condition: numeric_state
          entity_id: light.d23lp_light
          attribute: brightness
          below: 1
      sequence:
        - target:
            entity_id: light.d23lp_light
          data:
            brightness_step: -2
          action: light.turn_on
        - delay:
            hours: 0
            minutes: 0
            seconds: 10
            milliseconds: 0```

```alias: Wakeup Gradual Lights On
description: ""
triggers:
  - at: "02:30:00"
    trigger: time
conditions:
  - condition: state
    entity_id: light.d23lp_light
    state: "off"
actions:
  - target:
      entity_id: light.d23lp_light
    data:
      brightness_pct: 1
    action: light.turn_on
  - repeat:
      until:
        - condition: numeric_state
          entity_id: light.d23lp_light
          attribute: brightness
          above: 254
      sequence:
        - target:
            entity_id: light.d23lp_light
          data:
            brightness_step: 2
          action: light.turn_on
        - delay:
            hours: 0
            minutes: 0
            seconds: 10
            milliseconds: 0```