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.
Import Blueprints
2-Button Switch
4-Button Switch
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_31orevent.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_1switch_1
For Button 2
button_32(default Matter event)button_2switch_2
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 expectsevent.*entities likeevent.devicename_button_31β¦event.devicename_button_34.For Button 1
button_31(default Matter event)button_1switch_1
For Button 2
button_32(default Matter event)button_2switch_2
For Button 3
button_33(default Matter event)button_3switch_3
For Button 4
button_34(default Matter event)button_4switch_4
Examples: event.kitchen_button_34, event.study_switch_3, or event.devicename_button_2 will all be recognized correctly.
Once your event entities are selected in the blueprint, you can assign actions for each press type:
multi_press_1β Single Pressmulti_press_2β Double Presslong_pressβ Long Press
Define actions for each of the above press types per button.
Leave any action blank if not used.
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.