#Adjusting volume on target Echo

9 messages · Page 1 of 1 (latest)

opaque osprey
#

I'm having trouble sort of "figuring" out how to do certain action that I find in documentation. For instance, I have a blueprint which will accounce on various Echo devices depending on what I select in my automation. I want to be able to adjust the volume on the target devices before the announcement. I found the following action, but I'm just not clear how to use it. I've tried putting it in scripts.yaml, but it doesn't show up as an option in my automation. It also doesn't help that YAML drives me absolutely nuts. How can I accomplish this?

alexa_turn_volume_up:
  sequence:
    - service: media_player.volume_set
      target:
        entity_id: "{{target_entities}}"
      data:
        volume_level: "0.7"
zealous cipher
#

this is the action i use for setting mltiple devices to max volume

data:
  volume_level: 1
target:
  entity_id:
    - media_player.XXXX
    - media_player.XXXX
    - media_player.XXXX
opaque osprey
#

So I'm trying this- do I want to put this in as an action in the blueprint? I'm trying to use a variable "{{target_entities}}" to define multiple devices

#

Right now I'm getting an error, so I'm obviously not doing it right

zealous cipher
#

i am not sure on the blueprint construction aspect. hopefully someone else can jump in

opaque osprey
#

Ok I got it working with our suggestion. Ideally, I'd like to set up small things like these as actions or services that I can reference over and over without rewriting them. I know there is a way, but I haven't figured it out. I put things into scripts.yaml, but I can't get them to show up anywhere.

zealous cipher
#

you can have a script with variabels you can refence

#

settngs - automations and scenes - scripts tab