-
Notifications
You must be signed in to change notification settings - Fork 7
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
When powering on state switches to "inactive" instead "on" #135
Comments
The states for the mediaplayer in Home Assistant are a bit complicated, unfortunately there is more than just On and Off. In the past I used to have On, but there were issues with that when selecting sources that could actually do playback, like NetRadio or Spotify so I revered back to using Idle. I see that the Home Assistant Yamaha integration seems to indicate On for inputs like HDMI, but Idle for inputs like NetRadio. I could add that, but not sure if that is the correct way to do it. Building automations on the On state would then still break if you happend to have a playable source selected. In my opinion Idle, Playing, Paused and On are all variants of On, but is not how Home Assistant treats it. Meanwhile, would it be possible to reverse the logic? So check on "not Off" as that would cover all the other states. |
Thanks for your quick reply! I get your point that handling this AVR and the media player in HA is a bit confusing. A Node-Red package handles it that way: "on" or "standby"; there's no distinction between playable or not playable sources. Until I tried "to get smart" for me it was only "on" or "off"; I have modified your suggestion a bit and use the state change "from Off"... so it doesn't matter which state it changes to... |
Glad you found a way to get it working for now 👍 I want to look more into the mediaplayer states at some point, but not a lot of time for that now. |
This works for my system by capturing all the different states of “on” regardless of selected source.
|
I managed to get it working by creating a "switch" in the configuration yaml.
And used it in the tile.
|
Wanted to add to this issue by telling I was first confused when my receiver wasn't turning off when I clicked the power button on the card. First read through this thread and then came up with the following automation:
It was only later that I realised that it was a feature of the card itself. Once you set |
Yeah, the toggle doesn't turn it Off when in Idle. In my opinion this is a bug in Home Assistant, it also happens with other |
Describe the bug
I'm relatively new to HA and I was happy to find a custom integration for my RX-V671 AVR.
After the initial integration everything looked fine for me. Playing around a little bit and setting up an automation where I wanted to use the state as a trigger then showed that the state for both zones Main and Zones 2 changed from "off" to "inactive" instead "off" to "on".
Behavior is independent from powering on the AVR with Yamaha WebUI, Android App, Pushbutton on the front of the AVR or using Homeassistant Media Control Card.
It's not possible to use the state change to "on" in an automation, because state changes unexpectedly to "inactive".
Steps to reproduce the behavior:
Powering it off shows expected state "off"
Standard integration shows expected and correct state for "on" and "off"
HA has been restarted several times since integration was set up.
Diagnostics
Anonymized the serial_url...
config_entry-yamaha_ynca-78bf481c90a5a6cffc8990660c186983.json (1).txt
Home Assistant version information:
The text was updated successfully, but these errors were encountered: