Hello, I have a Sony Bravida TV and I want to be able to increase the volume of my SONOS speakers when I increase the tv volume.
For testing I have created a input_number that goes from 0 to 100 just so that I can see if the number increases when I increase tv volume.
I have tried to make this in 3 different automations but none of them work. Here are my tries.
alias: Ny automation4
description: ""
trigger:
- platform: numeric_state
entity_id:
- media_player.sony_kd_55x89j
attribute: volume_level
above: input_number.tv_vomym
condition: []
action:
- service: input_number.increment
metadata: {}
data: {}
target:
entity_id: input_number.tv_vomym
mode: single
alias: Test2
description: Triggered when the volume up button is pressed on the Sony Bravia TV remote
trigger:
- platform: event
event_type: call_service
event_data:
domain: media_player
service: volume_up
service_data:
entity_id: media_player.sony_kd_55x89j
condition: []
action:
- service: input_number.set_value
metadata: {}
data:
value: 50
target:
entity_id: input_number.tv_vomym
mode: single
alias: test
description: ""
trigger:
- platform: state
entity_id:
- media_player.sony_kd_55x89j
attribute: volume_level
to: up
condition: []
action:
- service: input_number.set_value
metadata: {}
data:
value: 50
target:
entity_id: input_number.tv_vomym
mode: single
Does any of you know what could be the issue here?
Thanks.