Add Alexa TTS, split main config, add bathroom window alert

This commit is contained in:
Florian Brinker
2020-01-14 22:15:27 +01:00
orang tua 4d70f40a01
melakukan 704fd5c199
20 mengubah file dengan 1293 tambahan dan 293 penghapusan

53
config/switches/cctv.yaml Normal file
Melihat File

@@ -0,0 +1,53 @@
- platform: template
switches:
camera_livingroom_email:
value_template: "{{ is_state_attr('camera.livingroom', 'email_enabled', true) }}"
turn_on:
service: camera.enable_email
data:
entity_id: camera.livingroom
turn_off:
service: camera.disable_email
data:
entity_id: camera.livingroom
icon_template: >-
{% if is_state_attr('camera.livingroom', 'email_enabled', true) %}
mdi:email
{% else %}
mdi:email-outline
{% endif %}
camera_livingroom_ftp:
value_template: "{{ is_state_attr('camera.livingroom', 'ftp_enabled', true) }}"
turn_on:
service: camera.enable_ftp
data:
entity_id: camera.livingroom
turn_off:
service: camera.disable_ftp
data:
entity_id: camera.livingroom
icon_template: >-
{% if is_state_attr('camera.livingroom', 'ftp_enabled', true) %}
mdi:filmstrip
{% else %}
mdi:filmstrip-off
{% endif %}
camera_livingroom_ir_lights:
value_template: "{{ is_state_attr('camera.livingroom', 'ir_lights_enabled', true) }}"
turn_on:
service: camera.enable_ir_lights
data:
entity_id: camera.livingroom
turn_off:
service: camera.disable_ir_lights
data:
entity_id: camera.livingroom
icon_template: >-
{% if is_state_attr('camera.livingroom', 'ir_lights_enabled', true) %}
mdi:flashlight
{% else %}
mdi:flashlight-off
{% endif %}

Melihat File

@@ -0,0 +1,100 @@
- 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'
harmony_denon_power:
friendly_name: Denon Power
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
service: script.harmony_denon_power
turn_off:
service: script.harmony_denon_power
harmony_denon_mute:
friendly_name: Denon Stumm
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
turn_off:
service: script.harmony_denon_mute
harmony_volume_up:
friendly_name: Denon Lauter
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
turn_on:
turn_off:
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
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'

15
config/switches/misc.yaml Normal file
Melihat File

@@ -0,0 +1,15 @@
- platform: template
switches:
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

Melihat File

@@ -0,0 +1,10 @@
- platform: template
switches:
wallboard_display:
friendly_name: Wallboard Display Toggle
value_template: "{{ is_state('binary_sensor.wallboard_hdmi_status', 'on') }}"
turn_on:
service: script.wallboard_hdmi_on
turn_off:
service: script.wallboard_hdmi_off