-
|
I am using the mass.queue service to play spotify because the implementation requires the ability to clear the queue when ever a trigger event occurs (the implementation is a experience room for autistic grandson and using NFC tags to allow hom to kick of an event - he will start and stop events all the time). I wasnt able to determine how to clear the queue using the play_media but know how to do it with mass.queue. All that to say I have an automation that defines the variables for each tag as follows: and then a set of conditions that kick off a script based on the c_type variable. THe conditional code follows: the script that is kicked off by the audio c_type variable is: My problem seems to be the variable isn't being passed in a format the mass.queue service accepts. If I hardcode a playlist name in the script everything works (but is not an acceptable solution for maintainability ) I don't think this is a MASS issue but thought I'd try here in case there is some restriction on MASS accepting passed variables . I've also posted in in HASS Forum (https://community.home-assistant.io/t/pass-variable-from-automation-to-script-not-working/605506) because I've been fooling around with this for 3 days with no luck. Any help greatly appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Any chance you can fix the indenting so the yaml is easier to read? |
Beta Was this translation helpful? Give feedback.
-
|
for some reason the trigger definition didnt format right |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
https://community.home-assistant.io/t/pass-variable-from-automation-to-script-not-working/605506/4