Increase speed of Hue dimmer?

I have a Hue dimmer switch controlling a lightbulb, with an automation to dim the bulb up/down in 20% increments as you hold the dim up/down buttons. But it’s rather slow. You have to hold the button for about 1 second for it to register. So to dim from 100% down to 20% you have to hold it for about 4 seconds. Is there any way to make this faster? I’d like it to behave more like a traditional dimmer, where it goes in smaller (1%) increments as long as you hold the button and then stops immediately when you let go.
By the way I added the 1 second transition to avoid big jumps in brightness, but removing that does not speed this up at all.

- alias: Dining - dim up
  trigger:
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_long_press
    subtype: dim_up
  action:
  - service: light.turn_on
    data:
      brightness_step_pct: 20
      transition: 1
    target:
      entity_id: light.chandelier_huelight
  mode: single

Try something like this Dim Lights THE RIGHT WAY In Home Assistant - TUTORIAL - YouTube

action:
  - choose:
      - conditions:
          - condition: trigger
            id: dim-up-l1
        sequence:
          - repeat:
              while:
                - condition: trigger
                  id: dim-up-l1
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step: 5
                  target:
                    entity_id: light.chandelier_huelight
                - delay:
                    hours: 0
                    minutes: 0
                    seconds: 0
                    milliseconds: 200
      - conditions:
          - condition: trigger
            id: dim-down-l1
        sequence:
          - repeat:
              while:
                - condition: trigger
                  id: dim-down-l1
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step: -5
                  target:
                    entity_id: light.chandelier_huelight
                - delay:
                    hours: 0
                    minutes: 0
                    seconds: 0
                    milliseconds: 200
mode: restart

Awesome, thank you for this ninja trick! I learned a lot from that video. I ended up using the following.
It seems like the lag between pressing the button and seeing the light respond varies from time to time. I suspect this is because the Zigbee light may take longer than 200ms to respond. But this is a huge improvement over what I had.

alias: Dining switch dimming
trigger:
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_long_press
    subtype: dim_down
    id: dim-down
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_long_press
    subtype: dim_up
    id: dim-up
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_long_release
    subtype: dim_up
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_long_release
    subtype: dim_down
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_short_release
    subtype: dim_up
    id: dim-up-single
  - device_id: f124b53a9d697116ece46e5de71273ef
    domain: zha
    platform: device
    type: remote_button_short_release
    subtype: dim_down
    id: dim-down-single
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: dim-down
        sequence:
          - repeat:
              while:
                - condition: trigger
                  id: dim-down
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step: -10
                  target:
                    entity_id: light.chandelier_huelight
                - delay:
                    milliseconds: 200
      - conditions:
          - condition: trigger
            id: dim-up
        sequence:
          - repeat:
              while:
                - condition: trigger
                  id: dim-up
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step: 10
                  target:
                    entity_id: light.chandelier_huelight
                - delay:
                    milliseconds: 200
      - conditions:
          - condition: trigger
            id: dim-up-single
        sequence:
          - service: light.turn_on
            data:
              brightness_step: 25
            target:
              entity_id: light.chandelier_huelight
      - conditions:
          - condition: trigger
            id: dim-down-single
        sequence:
          - service: light.turn_on
            data:
              brightness_step: -25
            target:
              entity_id: light.chandelier_huelight
mode: restart
2 Likes

I found this thread trying to solve the same issue and I have a problem with the loop never ending. Can anyone spot what’s wrong here?

alias: seqrepeattest
description: seqrepeattest
trigger:
  - platform: device
    domain: mqtt
    device_id: d7be3cdd4627110879ece4b209dcabf0
    type: action
    subtype: dial_rotate_left_step
    discovery_id: 0x001788010d12e163 action_dial_rotate_left_step
    id: leftstep
condition:
  - condition: trigger
    id: leftstep
action:
  - repeat:
      while:
          - condition: trigger
            id: leftstep
      sequence:
        - service: light.turn_on
          data:
            brightness_step_pct: -5
          target:
            entity_id: light.ljosakrona
        - delay:
            milliseconds: 200
mode: restart

EDIT: Solved here