lollo78
(Lollo78)
September 18, 2020, 11:20am
1
Hi, I just deleted the kodi references inside media_player.yaml to use the new Kodi integration, but now… how can I configure it to perform a System.Sutdown when I press the power button inside the Card?
Before the integration I used this piece of code:
turn_off_action:
service: kodi.call_method
data:
entity_id: media_player.kodi
method: System.Shutdown
But now?
Thx a lot
same situation for me. Any news?
tom_l
September 24, 2020, 2:08pm
3
You either have to use a script:
this works for me:
kodi_shutdown:
alias: kodi shutdown
sequence:
- service: kodi.call_method
data:
entity_id: media_player.kodi_livingroom
method: System.Shutdown
entity_id: media_player.kodi_livingroom
mode: single
Or a (shudder) device automation.
You’ll have to set them up in Automations in the UI now.
Separate turn on and off automations are required, the following is for the turn on automation.
Create new automation, press “skip” button in bottom left.
Name your automation (“turn on kodi” or whatever you’d like), it should be single mode.
Create a trigger—
Type: Device
Device: [your kodi name]
Trigger: "[your kodi name] was requested to turn on"
Then set up your actions are required. In my case, I had two actions. A script trigge…
thank you. I don’t understand why there is no power button in the media player card. for me it was very comfortable
tom_l
September 24, 2020, 2:25pm
5
There’s already a PR merged to fix that. Will probably be in the next dot release. (It was a mistake).
Super clear, thank you again
tom_l
September 24, 2020, 2:30pm
7
Actually I must have misread something somewhere (or misremembered). There is an issue open but it has not been fixed yet:
opened 03:32PM - 19 Sep 20 UTC
Checklist
I have updated to the latest available Home Assistant version.
I have cleared the cache of my browser.
I have...
bug
trentjw
(Trenton J Wilson)
September 28, 2020, 5:40am
8
missing power button kind of needing it
tom_l
September 28, 2020, 6:26am
9
The power button is available on the custom mini-media player.
trentjw
(Trenton J Wilson)
September 28, 2020, 7:46am
10
never been able to get custom cards to work on my system
just want the power button back on the media player card
tom_l
September 28, 2020, 8:09am
11
Then all you can do is wait patiently for it to be fixed.
If you want to open another topic about this I’m sure someone could help:
3 new problems with Kodi integration (HA 115.6):
the device does not turn on with the command from the card: in the integration from .yaml I had WOL, how can you fix it?
when HA restarts, if the kodi device is turned off, the entity is “unavailable”
if the device is on but inactive after a few minutes the status changes to off but the device has only remained inactive.
1 Like