From 6a183ce8e749b6250c799d9249c2ffd32128995a Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 28 Sep 2024 21:46:53 -0400 Subject: [PATCH] feat(hass): add script of turn_on_ue --- devices/homie/modules/home-assistant/bluetooth.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devices/homie/modules/home-assistant/bluetooth.nix b/devices/homie/modules/home-assistant/bluetooth.nix index e9f227fe..73bfc40b 100644 --- a/devices/homie/modules/home-assistant/bluetooth.nix +++ b/devices/homie/modules/home-assistant/bluetooth.nix @@ -48,6 +48,19 @@ in { # Turn On the speaker automatically when openwakeword is used config = { shell_command.turn_on_ue = getExe turnOnUE; + script.turn_on_ue = { + alias = "Music - TurnOnUE"; + description = "Script for turning on the UE Boom 2 speaker."; + icon = "mdi:music"; + mode = "single"; + + sequence = [ + { + alias = "Run shell command"; + service = "shell_command.turn_on_ue"; + } + ]; + }; automation = [ {