I have a couple of scenes setup that switches the input of my Marantz receiver via a denonavr component:
[code]# scene.yaml
name: Movie Time
entities:
light.Living_Room_Lights:
state: “on”
brightness: 1
light.Bedroom_Lights:
state: “off”
media_player.living_room_receiver:
source: “Android TV”
name: Main PC
entities:
light.Living_Room_Lights:
state: “on”
brightness: 128
media_player.living_room_receiver:
source: “AUX1”
name: Game in PS3
entities:
light.Living_Room_Lights:
state: “on”
brightness: 32
media_player.living_room_receiver:
source: “PS3”[/code]
What would I use to set the volume level to – let’s say, 0.8 (0 dB) for “Movie Time” scene? In “Game in PS3” scene, I want to set to 0.7 which is -10 dB in my receiver.
I once get “extra data source not allowed” in the log when I tried “volume_level: 0.8” below the “source:” line.
Sitnalta
(Sitnalta)
February 5, 2017, 9:16am
2
Did you find a solution for this?
outrun
(Lukas Ecklmayr)
February 5, 2017, 5:09pm
3
He Guys,
i think the scene-component is the not optimal for that. There a limit for one servicecall for each entity_id:
Look at the note at the Scene-Documentation:
I’m using an input_select with automations for that.
Here is an example for that:
Input Select for my Remote:
fernbedinung:
name: Fernbedinung
options:
- Aus
- Fernsehen
- PS4
- Wii spielen
- Smart TV
- SNES
- Musik hören
- Kodi
initial: Aus
icon: mdi:remote
Automation for my Remote:
- alias: Aus
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Aus"
action:
- service: media_player.turn_off
entity_id: media_player.tv
- service: media_player.turn_off
entity_id: media_player.denon
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- alias: Fernsehen
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Fernsehen"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: "TV AUDIO"
- service: script.vierafernsehen
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- delay: '00:00:10'
- service: input_slider.select_value
data:
entity_id: input_slider.volume_setpoint
value: 32
- alias: PS4
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "PS4"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: PS4
- service: script.vieraswitchhdmi
- service: script.vierareturn
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- delay: '00:00:10'
- service: input_slider.select_value
data:
entity_id: input_slider.volume_setpoint
value: 30
- alias: Wii
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Wii spielen"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: Wii
- service: script.vieraswitchhdmi
- service: script.vierareturn
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- delay: '00:00:10'
- service: input_slider.select_value
data:
entity_id: input_slider.volume_setpoint
value: 27
- alias: SNES
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "SNES"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: SNES
- service: script.vieraswitchhdmi
- service: script.vierareturn
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- delay: '00:00:10'
- service: input_slider.select_value
data:
entity_id: input_slider.volume_setpoint
value: 27
- alias: Musik
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Musik hören"
action:
- service: switch.turn_on
entity_id: switch.alexa_bluetooth
- service: media_player.turn_off
data_template:
entity_id: >
{%- if is_state("media_player.tv", "off") %}
{%- else -%}
media_player.tv
{%- endif %}
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: Bluetooth
- delay: '00:00:10'
- service: input_slider.select_value
data:
entity_id: input_slider.volume_setpoint
value: 50
- alias: PC
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Kodi"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: Blu-ray
- service: script.vieraswitchhdmi
- service: script.vierareturn
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
- alias: SmartTV
trigger:
platform: state
entity_id: input_select.fernbedinung
to: "Smart TV"
action:
- service: media_player.turn_on
entity_id: media_player.tv
- service: media_player.turn_on
entity_id: media_player.denon
- service: media_player.select_source
data:
entity_id: media_player.denon
source: "TV AUDIO"
- service: script.vieraamazonvideo
- delay: '00:00:03'
- service: script.startamazonvideoapp
- service: switch.turn_off
entity_id: switch.alexa_bluetooth
My input_slider for the Volume @ my Denon uses RESTfull Command component
Heres my Config for that:
Input_slider:
volume_setpoint:
name: Denon Volume
initial: 25
min: 1
max: 50
step: 1
RESTfull Command:
denon_volume:
url: 'http://192.168.0.150/goform/formiPhoneAppDirect.xml?MV{{ states.input_slider.volume_setpoint.state | int}}'
Automation for Volume:
- alias: Denon Volume
trigger:
platform: state
entity_id: input_slider.volume_setpoint
action:
- service: rest_command.denon_volume
If someone ask, why i not use a servicecall for Denon-Volume. I also try to use Alexa for setting Volume at my denon and this seemed to be the best way for achieving that.
So long
BR
Lukas
2 Likes
All the input stuff that you listed are automatically listed by denonavr component. I don’t know if Hue emulation bridge can work with input_select as I like to execute different scenes that changes inputs and modifies the volume level.
But thanks.
outrun
(Lukas Ecklmayr)
February 5, 2017, 6:00pm
5