Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onkyo TX-NR636 problem with source setting in HA script (YAML) on Zone 2 #152

Open
darek203 opened this issue Nov 13, 2023 · 0 comments
Open

Comments

@darek203
Copy link

darek203 commented Nov 13, 2023

Hello!

I'm trying to create a script that turn on my receiver and set its zone2 into "network_net" source. At least that is the name which I can see in developer tools.

image

For some reason it always starts it, but with the source that was previously selected, regardless of what I set in the script fir the media_content_type. What is more, whenever I had previously internet radio set (network_net) it gives me an error when launching Zone2:

Stopped because an error was encountered at 13 November 2023 12:23:24 (runtime: 2.15 seconds)
'network_net'

Strange thing is that Zone2 starts anyway and plays internet radio - I assume just because it was previously set. Here is the body of my script:

alias: Onkyo runining NET on Zone2
sequence:
  - service: media_player.turn_on
    target:
      entity_id: media_player.onkyo_tx_nr636_zone_2
    data: {}
  - service: media_player.play_media
    target:
      entity_id: media_player.onkyo_tx_nr636_zone_2
    data:
      media_content_id: "1"
      media_content_type: network_net
      
mode: single
icon: mdi:radio-tower

Any tips on how I should deal with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant