Unable to find action with the name 'light.dim_relative'

Struggling to implement relative dimming. esphome throws the following error. When I hover over my yaml it provides an explanation of the light.dim_relative action but fails on compiling.

  on_clockwise: 
    then: 
      - 
        Unable to find action with the name 'light.dim_relative'.
        light.dim_relative: 
        id: buro
        relative_brightness: 5%
        transition_lenght: 0.01s
  on_anticlockwise: 
    then: 
      - 
        Unable to find action with the name 'light.dim_relative'.
        light.dim_relative: 
        id: buro
        relative_brightness: -5%
        transition_lenght: 0.01s

My config:

sensor:
  - platform: rotary_encoder
    name: "Rotary Encoder"
    pin_b:
      number: 26
      mode: INPUT_PULLUP
    pin_a:
      number: 25
      mode: INPUT_PULLUP
#    max_value: 100
#    min_value: 0
#    resolution: 1
    on_clockwise:
      then:
      - light.dim_relative:
        id: buro
        relative_brightness: 5%
        transition_lenght: 0.01s
    on_anticlockwise:
      then:
      - light.dim_relative:
        id: buro
        relative_brightness: -5%
        transition_lenght: 0.01s

Perhaps buro does not support dim_relative. You left out the light definition.

2 Likes