Hello,
I created customs switches using template switch.
And now if I turn on my new created harmony switches they just jump back and turn off again and the activity in harmony is not starting. So some sort of configuration error in the switches.yaml
If I call the service via dev tools. That works fine.
What can else can I check to figure out where the problem is?
Also the PlayStation Switch turns on/off and stays that way but gives me an error:
Fehler beim Aufrufen des Service switch/turn_on. Unable to find service media_player/playstation_4
OR
Fehler beim Aufrufen des Service switch/turn_off. Unable to find service media_player/playstation_4
I also checked in the dev tools if it works and there i can turn the ps4 on/off without any problems when call that entity.
So here’s my switches.yaml
- platform: template
switches:
# Heimkino HARMONY ACTIVITY
heimkino:
value_template: "{{ is_state_attr('remote.harmony_hub', 'current_activity', 'Heimkino') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.harmony_hub
activity: "Heimkino"
turn_off:
service: remote.turn_off
data:
entity_id: remote.harmony_hub
# Netflix HARMONY ACTIVITY
netflix:
value_template: "{{ is_state_attr('remote.harmony_hub', 'current_activity', 'Netflix') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.harmony_hub
activity: "Netflix"
turn_off:
service: remote.turn_off
data:
entity_id: remote.harmony_hub
# PS4
ps4:
value_template: "{{ is_state('media_player.playstation_4', 'on') }}"
turn_on:
service: media_player.turn_on
data:
entity_id: media_player.playstation_4
turn_off:
service: media_player.turn_off
data:
entity_id: media_player.playstation_4
Anybody an Idea what I’m doing wrong?