Dim/Brighten light on button Long Press

Glad it helped!

I’ve created an improved version of the mini button automation that:

  1. Support Single, double, triple, … many-press
  2. Dims the last controlled light by holding
  3. Uses only 1 automation and 2 text helper entities for simplicity

Please note that this blueprint is ideal if you’re using your button exclusively for light controls. For other actions, you can “own” the automation and then edit for your needs.

Features

  • Single, double, triple, … many-press: Toggle lights on/off
  • Hold: dimming the last controlled light (alternates between increasing and decreasing brightness)

Installation

  1. Click the link below to import the blueprint directly into Home Assistant:

    Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

  2. Follow the blueprint setup instructions to configure your button and lights

Enjoy!