Hi
I am trying to add the a custom control for my soundbar. I try to modify a control I found here in the forum
(it was for light entities). The first button (On-Off) is working, but the rest no.
the code is the following
title: Soundbar
cards:
- color: 'rgb(100, 100, 100)'
color_type: card
icon: 'mdi:power'
tap_action:
action: call-service
service: script.soundbar_on_off
type: 'custom:button-card'
- color: 'rgb(223, 255, 97)'
color_type: card
icon: 'mdi:volume-plus'
tap_action:
action: call-service
service: script.soundbar_vol_up
type: 'custom:button-card'
- color: 'rgb(223, 255, 97)'
color_type: card
icon: 'mdi:volume-minus'
tap_action:
action: call-service
service: script.soundbar_vol_down
type: 'custom:button-card'
- color_type: blank-card
type: 'custom:button-card'
- color: 'rgb(100, 100, 100)'
color_type: card
icon: 'mdi:subdirectory-arrow-right'
tap_action:
action: call-service
service: script.soundbar_source_1
type: 'custom:button-card'
type: horizontal-stack
in the logs I get
Logger: homeassistant.components.script.soundbar_vol_up
Source: helpers/script.py:1097
Integration: Script (documentation, issues)
First occurred: 7:44:55 PM (18 occurrences)
Last logged: 8:04:52 PM
soundbar_vol_up: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['packet']