LIFX/Matter Switch - Button Automations

LIFX Button Matter Switch Blueprints – Home Assistant

Easily create automations for Single, Double, and Long Press actions on LIFX Switches on Matter in Home Assistant all in one tidy automation. May work for similar 2/4 button Generic Matter Switches (untested).

These blueprints simplify the setup for both 2-Button and 4-Button switches, allowing flexible entity naming and easy assignment of actions. The goal was to simply just make creating actions faster with less configuration.

Important - LIFX APP Setup - Ensure to setup Switch wiring configuration within the LIFX App before adding to Home Assistant by the Matter intergration.

Set β€œNo Action” within Button Settings on the LIFX App (and/or other Matter Controllers) for button presses which are controlled in Home Assistant.


:inbox_tray: Import Blueprints

:radio_button: 2-Button Switch

:radio_button: 4-Button Switch


:zap: Usage

2-Button Switch

  • Event entity naming rules:
    These blueprints listen to the event entities created by your Matter switch, such as
    event.devicename_button_31 or event.devicename_button_32.

  • The blueprint checks the event entity_id string to determine which physical button was pressed.
    It will match if the event entity_id contains any of these substrings:

    For Button 1

    • button_31 (default Matter event)
    • button_1
    • switch_1

    For Button 2

    • button_32 (default Matter event)
    • button_2
    • switch_2

:white_check_mark: Examples: event.study_switch_button_31, event.kids_switch_1, or event.button_1 will all be recognized as Button 1.


4-Button Switch

  • Event entity naming rules:
    Same logic as above, extended to 4 event entities.
    The blueprint expects event.* entities like event.devicename_button_31 … event.devicename_button_34.

    For Button 1

    • button_31 (default Matter event)
    • button_1
    • switch_1

    For Button 2

    • button_32 (default Matter event)
    • button_2
    • switch_2

    For Button 3

    • button_33 (default Matter event)
    • button_3
    • switch_3

    For Button 4

    • button_34 (default Matter event)
    • button_4
    • switch_4

:white_check_mark: Examples: event.kitchen_button_34, event.study_switch_3, or event.devicename_button_2 will all be recognized correctly.


:point_right: Once your event entities are selected in the blueprint, you can assign actions for each press type:

  • multi_press_1 β†’ Single Press
  • multi_press_2 β†’ Double Press
  • long_press β†’ Long Press

Define actions for each of the above press types per button.
Leave any action blank if not used.


:memo: Notes

  • Both blueprints include end delay (default 100 ms) to avoid false positives, e.g. long press triggering single press.
  • No actions are pre-filled β€” you can fully customize them in the automation editor.
  • Works with LIFX Switches which have been updated to Matter, with flexible support for renamed entities.

2 Likes

These are excellent. Thanks @redding!

1 Like

This also works with the IKEA BILRESA Dual Button (new Matter product from IKEA late 2025).
It’s a great help.
Thx! :slight_smile: