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;'