script: denon_volume_up: sequence: - service: media_player.volume_set entity_id: media_player.denon_avr_x1600h data_template: volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float + 0.05 }}" denon_volume_down: sequence: - service: media_player.volume_set entity_id: media_player.denon_avr_x1600h data_template: volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float - 0.05 }}" denon_volume_up_1: sequence: - service: media_player.volume_set entity_id: media_player.denon_avr_x1600h data_template: volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float + 0.01 }}" denon_volume_down_1: sequence: - service: media_player.volume_set entity_id: media_player.denon_avr_x1600h data_template: volume_level: "{{ state_attr('media_player.denon_avr_x1600h', 'volume_level') | float - 0.01 }}" denon_volume_video: sequence: - service: media_player.volume_set data: volume_level: 0.5 target: device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6 denon_volume_music: sequence: - service: media_player.volume_set data: volume_level: 0.35 target: device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6 denon_volume_mute: variables: entity_id: media_player.denon_avr_x1600h sequence: - choose: - conditions: - condition: template value_template: '{{ state_attr(entity_id, ''is_volume_muted'') == false }}' sequence: - service: media_player.volume_mute data: is_volume_muted: true target: entity_id: '{{ entity_id }}' default: - service: media_player.volume_mute target: entity_id: '{{ entity_id }}' data: is_volume_muted: false mode: single