I use the following switch to control my LG TV
- platform: template
switches:
tv_tiago_lgtv:
friendly_name: 'TV Tiago'
value_template: "{{ is_state('media_player.tv_tiago', 'on') }}"
turn_on:
service: media_player.turn_on
data:
entity_id: media_player.tv_tiago
turn_off:
service: media_player.turn_off
data:
entity_id: media_player.tv_tiago
icon_template: >-
{% if is_state('media_player.tv_tiago', 'on') %}
mdi:television-classic
{% else %}
mdi:television-classic-off
{% endif %}
Everything worked fine until the last update. Now, only the turning off works.
Any ideas?