Using multiple-entity-row in lovelace to create volume buttons to adjust an HTD media player:
- icon: mdi:volume-plus
tap_action:
action: call-service
service: script.htd_volume_up
service_data:
keypad: media_player.htd_outside_couch
Script is setup as such:
htd_volume_up:
alias: HTD Volume Up
sequence:
- service: media_player.volume_set
data:
entity_id: '{{ keypad }}'
volume_level: "{{ state_attr(keypad, 'volume_level')|float|round(2) + 5/100 }}"
When reloading scripts I’m receiving this HA Error:
Logger: homeassistant.config
Source: config.py:443
First occurred: 10:43:23 AM (1 occurrences)
Last logged: 10:43:23 AM
Invalid config for [script]: invalid template (TemplateSyntaxError: unexpected ')') for dictionary value @ data['sequence'][0]['data']. Got None. (See /config/configuration.yaml, line 317).
Maybe worth noting that using this script works fine:
htd_volume_up2:
alias: HTD Volume Up2
sequence:
- service: media_player.volume_up
target:
entity_id: '{{ keypad }}'
Thoughts? Thx in advance!