2019-01-16 12:47:15 +00:00
- platform : template
switches :
2019-10-13 00:09:48 +00:00
desktop_wol :
value_template : "{{ is_state('binary_sensor.desktop_ping', 'on') }}"
turn_on :
service : shell_command.ssh
data :
sshkey : !secret sshkey_wakeonlan
host : !secret nas_ip
user : !secret nas_ssh_user
port : !secret nas_ssh_port
command_or_param : !secret desktop_mac
turn_off :
service : script.dummy
2019-01-16 12:47:15 +00:00
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_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 :
2019-10-13 00:09:48 +00:00
service : script.harmony_denon_power
2019-01-16 12:47:15 +00:00
turn_off :
2019-10-13 00:09:48 +00:00
service : script.harmony_denon_power
2019-01-16 12:47:15 +00:00
2019-10-13 00:09:48 +00:00
harmony_denon_mute :
friendly_name : Denon Stumm
2019-01-16 12:47:15 +00:00
value_template : "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on :
turn_off :
2019-10-13 00:09:48 +00:00
service : script.harmony_denon_mute
2019-01-16 12:47:15 +00:00
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 :
turn_off :
2019-10-13 00:09:48 +00:00
service : script.harmony_volume_up
harmony_volume_down :
friendly_name : Denon Leiser
value_template : "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on :
turn_off :
service : script.harmony_volume_down
2019-01-16 12:47:15 +00:00
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
2019-10-13 00:09:48 +00:00
activity : 'PowerOff'
### CCTV
cctv_motion_detection :
friendly_name : CCTV Motion Detection
value_template : "{{ (is_state('sensor.camera_mode_office', 'start') or is_state('sensor.camera_mode_office', 'recording')) and is_state('sensor.camera_motion_office', 'True') }}"
turn_on :
service : script.shinobi_active_with_motion
turn_off :
service : script.shinobi_active
cctv_active :
friendly_name : CCTV Active
value_template : "{{ is_state('sensor.camera_mode_office', 'start') or is_state('sensor.camera_mode_office', 'recording') }}"
turn_on :
service : script.shinobi_active
turn_off :
service : script.shinobi_idle