Hi
I have read a lot of post on here and people say they are noobs, but I really am a noob, and have very little understanding of configuration language and processes.
I’m very new to the home automation sphere and my end goal is to use HomeKit to control all my devices. I have Hassbian installed on a Pi B3+.
I have some very basic scripts installed, but I can seem to be able to turn my Panasonic TV on and off using HomeKit.
This is what I have in my config.yaml file:
switch:
- platform: template
switches:
tv:
friendly_name: “Lounge TV”
icon_template: mdi:television
value_template: “{{ states.media_player.stuandbarnstv.state != ‘off’ }}”
turn_on:
service: media_player.turn_on
data:
entity_id: media_player.stuandbarnstv
turn_off:
service: media_player.turn_off
data:
entity_id: media_player.stuandbarnstv
I can see a switch on my HA dashboard, and I can see a switch in my HomeKit app, but neither of them do anything. In HA the switch is on by default, and when I toggle it off it goes off for a few seconds and then back on, but nothing happens to the TV. In the HomeKit app, I can toggle it off and on, but again, nothing happens.
I sure there is a simple solution (hoping so) but I fear my inexperience is letting me down.
Any suggestions?
Ta
Barns