NiklasReiche / ad-spotify-mood-lights-sync

AppDaemon app that synchronizes rgb lights to the mood of the currently playing spotify song in Home Assistant.
MIT License
35 stars 5 forks source link

Add ability to pass a switch arg #16

Closed ykumthekar4929 closed 6 months ago

ykumthekar4929 commented 6 months ago

Adds ability to add a enable_switch arg that takes in a input boolean which allows enabling/disabling the app from a HA button.

Sample Input Boolean:

input_boolean:
  enable_mood_lights:
    name: Enable/Disable app
    icon: mdi:lights

App Config:

spotify_mood_lights_sync:
  ...
  enable_switch: input_boolean.enable_mood_lights