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.
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.