Add Alexa TTS, split main config, add bathroom window alert
Tá an tiomantas seo le fáil i:
@@ -1,5 +0,0 @@
|
||||
#motion_battery:
|
||||
# entity_id: binary_sensor.humidity_alarm_parents_bathroom
|
||||
# repeat: 30
|
||||
# notifiers:
|
||||
# - telegram_fb
|
||||
12
config/alerts/windows.yaml
Comhad gnáth
12
config/alerts/windows.yaml
Comhad gnáth
@@ -0,0 +1,12 @@
|
||||
bathroom_window_open:
|
||||
name: Badezimmer-Fenster geöffnet
|
||||
message: "Zur Info: Das *Badezimmer-Fenster* ist noch *offen*!"
|
||||
done_message: "Zur Info: Das *Badezimmer-Fenster* ist wieder *geschlossen*."
|
||||
entity_id: binary_sensor.lumi_bathroom_window_magnet
|
||||
state: "on"
|
||||
repeat: 10
|
||||
can_acknowledge: false
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
- alexa_kitchen
|
||||
@@ -1,31 +0,0 @@
|
||||
- alias: Dachboden Luftfeuchtigkeit
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{% if (states.sensor.attic_humidity.state|float) > 64 or (states.sensor.attic_humidity.state|float) < 35 %}true{% endif %}"
|
||||
action:
|
||||
service: notify.android
|
||||
data:
|
||||
title: 'Bitte den *Dachboden* lüften!'
|
||||
message: 'Die Luftfeuchtigkeit liegt mit einem Wert von *{{ states.sensor.attic_humidity.state }}%* außerhalb des Grenzbereichs.'
|
||||
|
||||
#- alias: Badezimmer Luftfeuchtigkeit
|
||||
# trigger:
|
||||
# platform: numeric_state
|
||||
# entity_id: sensor.bathroom_hygrometer_humidity
|
||||
# value_template: '{{ state|float }}'
|
||||
# below: 35
|
||||
# above: 65
|
||||
# action:
|
||||
# service: notify.telegram_group
|
||||
# data:
|
||||
# title: 'Bitte das Badezimmer lüften!'
|
||||
# message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.'
|
||||
- alias: Badezimmer Luftfeuchtigkeit
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{% if states.sensor.bathroom_hygrometer_humidity and ((states.sensor.bathroom_hygrometer_humidity.state|float) > 55 or (states.sensor.bathroom_hygrometer_humidity.state|float) < 35) %}true{% endif %}"
|
||||
action:
|
||||
service: notify.telegram_group
|
||||
data:
|
||||
title: 'Bitte das *Badezimmer* lüften!'
|
||||
message: 'Die Luftfeuchtigkeit liegt mit einem Wert von *{{ states.sensor.bathroom_hygrometer_humidity.state }}%* außerhalb des Grenzbereichs.'
|
||||
9
config/cameras.yaml
Comhad gnáth
9
config/cameras.yaml
Comhad gnáth
@@ -0,0 +1,9 @@
|
||||
- platform: reolink_dev
|
||||
host: !secret cam_livingroom_ip
|
||||
username: !secret cam_livingroom_user
|
||||
password: !secret cam_livingroom_password
|
||||
name: livingroom
|
||||
stream: main
|
||||
protocol: rtmp
|
||||
channel: 0
|
||||
scan_interval: 30
|
||||
51
config/influxdb.yaml
Comhad gnáth
51
config/influxdb.yaml
Comhad gnáth
@@ -0,0 +1,51 @@
|
||||
host: !secret influxdb
|
||||
database: home_assistant
|
||||
username: !secret influxdb_user
|
||||
password: !secret influxdb_password
|
||||
max_retries: 3
|
||||
include:
|
||||
entities:
|
||||
- sensor.hygro_bathroom_parents_humidity
|
||||
- sensor.hygro_bathroom_parents_temperature
|
||||
- sensor.hygro_bathroom_kids_humidity
|
||||
- sensor.hygro_bathroom_kids_temperature
|
||||
- sensor.humidity_4 # Wohnzimmer
|
||||
- sensor.temperature_3 # Wohnzimmer
|
||||
- sensor.humidity_15 # Büro
|
||||
- sensor.temperature_14 # Büro
|
||||
- sensor.attic_humidity_2
|
||||
- sensor.attic_temperature_2
|
||||
# Youtube
|
||||
- sensor.youtube_beauty
|
||||
- sensor.youtube_beauty_videos
|
||||
- sensor.youtube_beauty_views
|
||||
- sensor.youtube_mtb
|
||||
- sensor.youtube_mtb_videos
|
||||
- sensor.youtube_mtb_views
|
||||
# Bitly
|
||||
- sensor.bitly_blog_bb
|
||||
- sensor.bitly_instagram_bb
|
||||
- sensor.bitly_impressum_bb
|
||||
- sensor.bitly_youtube_bb
|
||||
# Instagram
|
||||
- sensor.instagram_beauty
|
||||
- sensor.instagram_beauty_follows
|
||||
- sensor.instagram_beauty_media
|
||||
- sensor.instagram_fb
|
||||
- sensor.instagram_fb_follows
|
||||
- sensor.instagram_fb_media
|
||||
- sensor.instagram_franky
|
||||
- sensor.instagram_franky_follows
|
||||
- sensor.instagram_franky_media
|
||||
- sensor.instagram_mtb
|
||||
- sensor.instagram_mtb_follows
|
||||
- sensor.instagram_mtb_media
|
||||
- sensor.instagram_medieval
|
||||
- sensor.instagram_medieval_follows
|
||||
- sensor.instagram_medieval_media
|
||||
- sensor.instagram_lotte
|
||||
- sensor.instagram_lotte_follows
|
||||
- sensor.instagram_lotte_media
|
||||
- sensor.instagram_codedwithlove
|
||||
- sensor.instagram_codedwithlove_follows
|
||||
- sensor.instagram_codedwithlove_media
|
||||
7
config/lights.yaml
Comhad gnáth
7
config/lights.yaml
Comhad gnáth
@@ -0,0 +1,7 @@
|
||||
- platform: hyperion
|
||||
name: Ambilight
|
||||
host: !secret ambilight_ip
|
||||
hdmi_priority: 900
|
||||
- platform: switch
|
||||
name: Stimmungslicht
|
||||
entity_id: switch.livingroom_stimmungslicht
|
||||
@@ -1,6 +1,3 @@
|
||||
dummy:
|
||||
sequence:
|
||||
|
||||
ambilight_off:
|
||||
alias: Ambilight schwarz schalten
|
||||
sequence:
|
||||
@@ -123,26 +120,4 @@ harmony_volume_down:
|
||||
command:
|
||||
- VolumeDown
|
||||
device: 42849850 #Denon
|
||||
num_repeats: 5
|
||||
|
||||
# Wallboard
|
||||
|
||||
wallboard_hdmi_on:
|
||||
sequence:
|
||||
- service: shell_command.ssh
|
||||
data:
|
||||
sshkey: !secret sshkey_wallboard_hdmi
|
||||
host: !secret wallboard_ip
|
||||
user: !secret wallboard_ssh_user
|
||||
port: !secret wallboard_ssh_port
|
||||
command_or_param: 1
|
||||
|
||||
wallboard_hdmi_off:
|
||||
sequence:
|
||||
- service: shell_command.ssh
|
||||
data:
|
||||
sshkey: !secret sshkey_wallboard_hdmi
|
||||
host: !secret wallboard_ip
|
||||
user: !secret wallboard_ssh_user
|
||||
port: !secret wallboard_ssh_port
|
||||
command_or_param: 0
|
||||
num_repeats: 5
|
||||
2
config/scripts/misc.yaml
Comhad gnáth
2
config/scripts/misc.yaml
Comhad gnáth
@@ -0,0 +1,2 @@
|
||||
dummy:
|
||||
sequence:
|
||||
19
config/scripts/wallboard.yaml
Comhad gnáth
19
config/scripts/wallboard.yaml
Comhad gnáth
@@ -0,0 +1,19 @@
|
||||
wallboard_hdmi_on:
|
||||
sequence:
|
||||
- service: shell_command.ssh
|
||||
data:
|
||||
sshkey: !secret sshkey_wallboard_hdmi
|
||||
host: !secret wallboard_ip
|
||||
user: !secret wallboard_ssh_user
|
||||
port: !secret wallboard_ssh_port
|
||||
command_or_param: 1
|
||||
|
||||
wallboard_hdmi_off:
|
||||
sequence:
|
||||
- service: shell_command.ssh
|
||||
data:
|
||||
sshkey: !secret sshkey_wallboard_hdmi
|
||||
host: !secret wallboard_ip
|
||||
user: !secret wallboard_ssh_user
|
||||
port: !secret wallboard_ssh_port
|
||||
command_or_param: 0
|
||||
9
config/sensors_binary/cctv.yaml
Comhad gnáth
9
config/sensors_binary/cctv.yaml
Comhad gnáth
@@ -0,0 +1,9 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
motion_livingroom:
|
||||
friendly_name: Motion Livingroom
|
||||
device_class: motion
|
||||
entity_id: camera.livingroom
|
||||
value_template: "{{ is_state('camera.livingroom', 'motion') }}"
|
||||
delay_off:
|
||||
seconds: 30
|
||||
19
config/sensors_binary/misc.yaml
Comhad gnáth
19
config/sensors_binary/misc.yaml
Comhad gnáth
@@ -0,0 +1,19 @@
|
||||
- platform: workday
|
||||
country: DE
|
||||
province: NW
|
||||
workdays: [ mon, tue, wed, thu, fri ]
|
||||
- platform: tod
|
||||
name: Morning
|
||||
after: '05:00'
|
||||
before: '11:00'
|
||||
- platform: ping
|
||||
name: desktop_ping
|
||||
host: !secret desktop_ip
|
||||
count: 2
|
||||
scan_interval: 15
|
||||
- platform: template
|
||||
sensors:
|
||||
anyone_home:
|
||||
value_template: >-
|
||||
{{ is_state('person.florian', 'home')
|
||||
or is_state('person.jenny', 'home') }}
|
||||
6
config/sensors_binary/wallboard.yaml
Comhad gnáth
6
config/sensors_binary/wallboard.yaml
Comhad gnáth
@@ -0,0 +1,6 @@
|
||||
- platform: command_line
|
||||
name: Wallboard HDMI Status
|
||||
command: !secret wallboard_hdmi_status_cmd
|
||||
payload_on: display_power=1
|
||||
payload_off: display_power=0
|
||||
scan_interval: 60
|
||||
53
config/switches/cctv.yaml
Comhad gnáth
53
config/switches/cctv.yaml
Comhad gnáth
@@ -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 %}
|
||||
@@ -1,17 +1,5 @@
|
||||
- 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
|
||||
|
||||
harmony_music_bt:
|
||||
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
|
||||
@@ -109,67 +97,4 @@
|
||||
service: remote.turn_on
|
||||
data:
|
||||
entity_id: remote.livingroom_harmony
|
||||
activity: 'PowerOff'
|
||||
|
||||
### CCTV
|
||||
|
||||
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 %}
|
||||
|
||||
### Wallboard
|
||||
|
||||
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
|
||||
activity: 'PowerOff'
|
||||
15
config/switches/misc.yaml
Comhad gnáth
15
config/switches/misc.yaml
Comhad gnáth
@@ -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
|
||||
10
config/switches/wallboard.yaml
Comhad gnáth
10
config/switches/wallboard.yaml
Comhad gnáth
@@ -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
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir