I can’t turn Kodi/HTPC off after migrating my Kodi configuration from YAML to UI.
This is my old config:
- platform: kodi
host: 192.168.0.36
username: !secret kodi_username
password: !secret kodi_password
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: 00:01:2e:1f:c4:50
turn_off_action:
service: kodi.call_method
data:
entity_id: media_player.kodi
method: System.Shutdown
enable_websocket: 'false'
timeout: 7
After following the documentation for creating on/off automations, these are the resulting automations:
- id: '1604398438605'
alias: Kodi ON
description: WOL for Kodi/ht
trigger:
- platform: device
device_id: 9ef48db7cfca59f4e368ab64673b7ba8
domain: kodi
entity_id: media_player.kodi
type: turn_on
condition: []
action:
- service: wake_on_lan.send_magic_packet
data:
mac: 00:01:2e:1f:c4:50
mode: single
- id: '1604398977874'
alias: Kodi OFF
description: ''
trigger:
- platform: device
device_id: 9ef48db7cfca59f4e368ab64673b7ba8
domain: kodi
entity_id: media_player.kodi
type: turn_off
condition: []
action:
- service: kodi.call_method
data:
method: System.Shutdown
entity_id: media_player.kodi
mode: single
Using the entity cards power button to turn it on works - the card says “idle” after my HTPC has started. At this point I can’t turn it off by clicking the power button on the card, as this seems to still trigger the turn-on-automation (I’m seeing the “triggered” time update on that automation but not the turn-off-one).
Any advice on this?
1 post - 1 participant