#Error with the power off button
1 messages · Page 1 of 1 (latest)
What kind of card is it? Not all cards support full tweaking.
You could maybe make a custom media player in yaml as DOCUMENTED HERE that way you can link all its features to the the "main" media player but for the turn off command you could have it run a script instead. then you can tell cards to use your templated one instead.
It is the mini media player https://github.com/kalkih/mini-media-player
I will try that, thnx!
Think the easiest way is to just hide the power button and add a shortcut button to the card that will call the script.
I haven’t found a way to hide it,
I had found a way to change the standard execution to toggle instead of media_player.turn_off/media_player.turn_on
How did you change the behavior?
Under the hide key you can specify what you want hidden.
I have changed it from toggle_power: false to toggle_power: true.
Thnx for the tip for hiding, but when I want to add a button its not gonna be on the same place?