kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.51k stars 206 forks source link

Power Button does nothing on ChromeCast Audio Groups anymore #600

Closed chriscolden closed 2 years ago

chriscolden commented 2 years ago

Hi

This use to work just fine, however now the power button doesnt work when the media_player is a chromecast audio group.

The default media card works as expected and i see the following in the log. 2022-02-04 09:49:11 INFO (SyncWorker_3) [pychromecast] Quiting current app 2022-02-04 09:49:11 INFO (SyncWorker_3) [pychromecast.controllers] Receiver:Stopping current app 'CC1AD845'

However when i press the power button on the mini-media-player card, I get nothing in the log.

If i press it on a stand alone media_player i get the following 2022-02-04 09:52:33 INFO (SyncWorker_0) [pychromecast] Quiting current app 2022-02-04 09:52:33 INFO (SyncWorker_0) [pychromecast.controllers] Receiver:Stopping current app 'CC1AD845'

There seems to be an issue in this card causing the power button not to work on audio groups only. I've seen there is another issue that was closed, but I'm opening this one, as I dont think its an issue with media_player component i'm using as it wouldn't work in the default card if that was the case.

Thanks Chris

chriscolden commented 2 years ago

adding toggle_power: false

resolves the issue for anyone else having this problem.