Hei
In home assistant ver 115 has kodi integratin changed and now My kodi TV script wont work anymore.
This is my config.
media_player:
- platform: kodi
host: 192.168.1.12
port: 80
name: TV
turn_on_action:
- service: switch.turn_on
data:
entity_id: switch.htpc_socket_htpc
- delay: '00:00:59'
# - service: script.turn_on
# entity_id: script.kodi_start_fireplace
- service: media_player.play_media
data_template:
entity_id: media_player.tv
media_content_type: CHANNEL
## http://kodi:[email protected]/jsonr
media_content_id: 103
{% if (now().hour < 15) or ((now().h
103
{% elif (now().hour < 18) %}
103
{% elif (now().hour < 20) %}
103
{% elif (now().hour == 20) and (now(
103
{% elif (now().hour == 20) or ((now(
103
{% else %}
103
{% endif %}
turn_off_action:
- service: kodi.call_method
data:
entity_id: media_player.tv
method: System.Shutdown
- delay: '00:00:45'
- service: switch.turn_off
data:
entity_id: switch.htpc_socket_htpc
In HA kodi docs(https://www.home-assistant.io/integrations/kodi/) says that I need to make automation and trigger to use turn_off_action turn_on_action.
How can I make this kodi TV automation work again?