From ceed01b8f2b0b41ab575ce512da938109a1f73c0 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Fri, 15 Oct 2021 16:13:25 +0200 Subject: [PATCH] Add activate_preset service config package. --- packages/activate_preset_svc.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/activate_preset_svc.yaml diff --git a/packages/activate_preset_svc.yaml b/packages/activate_preset_svc.yaml new file mode 100644 index 0000000..9172219 --- /dev/null +++ b/packages/activate_preset_svc.yaml @@ -0,0 +1,13 @@ +# If you want to control light presets from Home Assistant, then you can +# make use of the following service. + +api: + services: + - service: activate_preset + variables: + my_group: string + my_preset: string + then: + - preset.activate: + group: !lambda 'return my_group;' + preset: !lambda 'return my_preset;'