Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Your configuration.yaml NEEDS the one line that isn't commented below!

#script: !include scripts.yaml # This file still works it seems, as any scripts made in UI appear in this file
#script: !include_dir_named scripts/ #This just didn't work
script: !include_dir_merge_named scripts/

Example Script:

Note: MUST end in ".yaml" NOT ".yml"!

  volup:
    sequence:
      repeat:
        count: '{{ count }}'
        sequence:
          - service: media_player.volume_up
            entity_id: media_player.freesoftwareservers

'100VolDown':
  alias: VolDown100
  sequence:
  - data: {}
    entity_id: media_player.freesoftwareservers
    service: media_player.volume_down
  - data: {}
    entity_id: media_player.freesoftwareservers
    service: media_player.volume_down
x100...

Note: the ID is `100VolDown` and it MUST start with a NUMBER.

You can call in automation via:

data: {}
service: script.20volup

https://community.home-assistant.io/t/volume-down-multiple-times-in-one-service-call/197669

https://community.home-assistant.io/t/script-friendly-name/139684/4

  • No labels