{ services.home-assistant.config = { "automation scene_switch" = { alias = "switch scene"; trigger = { platform = "event"; event_type = "button_pressed"; event_data = { id = [ 254 242 234 134 ]; }; }; action = { service_template = "switch.turn_on"; data_template = { entity_id = "switch.computer"; }; }; }; }; }