home-automation-home-assistant/switches.yaml

150 rindas
4.6 KiB
YAML

2019-01-16 12:47:15 +00:00
- platform: template
switches:
harmony_music_bt:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'Musik Bluetooth'
turn_off:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'PowerOff'
harmony_firetv:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Fire TV sehen') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'Fire TV sehen'
turn_off:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'PowerOff'
harmony_steamlink:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'SteamLink') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'SteamLink'
turn_off:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'PowerOff'
harmony_playstation:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'PlayStation') }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
activity: 'PlayStation'
turn_off:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
activity: 'PowerOff'
2019-01-17 20:08:21 +00:00
harmony_denon_mute:
2019-01-20 11:08:34 +00:00
friendly_name: Denon Stumm
2019-01-16 12:47:15 +00:00
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- Mute
device: 42849850 #Denon
delay_secs: 0.6
turn_off:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- Mute
device: 42849850 #Denon
delay_secs: 0.6
2019-01-17 20:08:21 +00:00
harmony_denon_power:
2019-01-20 11:08:34 +00:00
friendly_name: Denon Power
2019-01-16 12:47:15 +00:00
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- PowerToggle
device: 42849850 #Denon
delay_secs: 0.6
turn_off:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- PowerToggle
device: 42849850 #Denon
delay_secs: 0.6
harmony_volume_down:
friendly_name: Denon Leiser
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- VolumeDown
device: 42849850 #Denon
delay_secs: 0.6
turn_off:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- VolumeDown
device: 42849850 #Denon
delay_secs: 0.6
harmony_volume_up:
2019-01-20 11:08:34 +00:00
friendly_name: Denon Lauter
2019-01-16 12:47:15 +00:00
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- VolumeUp
device: 42849850 #Denon
delay_secs: 0.6
turn_off:
service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- VolumeUp
device: 42849850 #Denon
delay_secs: 0.6
livingroom_music:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
turn_on:
service: script.livingroom_music_on
turn_off:
service: script.livingroom_music_off
livingroom_netflix:
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Fire TV sehen') }}"
turn_on:
service: script.livingroom_netflix_on
turn_off:
service: remote.turn_on
data:
entity_id: remote.livingroom_harmony
activity: 'PowerOff'