Light brightness stepping yaml example?

The new light brightness stepping in 0.106 is a great addition to HA! I’m just not sure how to incorporate it into yaml. Has anyone tried it yet? Any code samples would be appreciated!

3 Likes

This is an automation with an Aeotec Minimote (zwave remote), works OK :slight_smile:

- alias: __sys - Minimote 1 HOLD
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.minimote
      scene_id: 2
  action:
  - service: light.turn_on
    data:
      entity_id: light.lampe_sol
      brightness_step_pct: 20
2 Likes

Thanks @darkd! Worked perfectly. And I used brightness_step_pct: -20 to dim the light.

1 Like

Hello,

I’m wondering how to use brightness_step_pct in a light.toggle action (my automation only have toggle / brightness_increase and brightness_decrease). Any idea ?

Kind regards

I’m not sure how you would use a toggle to change the brightness. Isn’t a toggle better suited for on/off?

You may want to just post your current automation.