Hey there,
is it impossible to call 2 services within a universal media player command?
Getting:
Invalid config for [media_player.universal]: expected a dictionary for dictionary value @ data[‘commands’][‘turn_on’]. Got [OrderedDict([(‘service’, ‘remote.send_command’), (‘target’, OrderedDict([(‘entity_id’, ‘remote.broadlink_wohnzimmer_remote’)])), (‘data’, OrderedDict([(‘device’, ‘tv’), (‘command’, ‘an’)]))]), OrderedDict([(‘service’, ‘input_boolean.turn_on’), (‘target’, OrderedDict([(‘entity_id’, ‘input_boolean.tv_status_manuell’)]))])]. (See ?, line ?).
Code:
media_player:
- platform: universal
name: TV unten
state_template: "{{ states('binary_sensor.tv_status_ping') or states('input_boolean.tv_status_manuell')}}"
commands:
turn_on:
- service: remote.send_command
target:
entity_id: remote.broadlink_wohnzimmer_remote
data:
device: tv
command: an
- service: input_boolean.turn_on
target:
entity_id: input_boolean.tv_status_manuell
device_class: tv