Comparar comentimentos
3 Cometimentos
e9ab5a231d
...
c1ecdac17e
Autor(a) | SHA1 | Data |
---|---|---|
Florian Brinker | c1ecdac17e | |
Florian Brinker | fe5f9caca4 | |
Florian Brinker | 2e501bc322 |
|
@ -7,14 +7,17 @@
|
||||||
!*.png
|
!*.png
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!*.md
|
!*.md
|
||||||
|
!*.skel
|
||||||
!/automations/
|
!/automations/
|
||||||
!/lovelace-views/
|
!/lovelace-views/
|
||||||
!/sensors/
|
!/sensors/
|
||||||
!/www/
|
!/www/
|
||||||
|
!/scripts/
|
||||||
|
|
||||||
# "Force" Disallow
|
# "Force" Disallow
|
||||||
.storage/
|
.storage/
|
||||||
android/
|
android/
|
||||||
|
ssh-key/
|
||||||
|
|
||||||
ip_bans.yaml
|
ip_bans.yaml
|
||||||
secrets.yaml
|
secrets.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
- light.ambilight
|
- light.ambilight
|
||||||
- light.kuchen_theke
|
- light.kuchen_theke
|
||||||
- light.esstisch
|
- light.esstisch
|
||||||
|
- light.office
|
||||||
- switch.livingroom_stimmungslicht
|
- switch.livingroom_stimmungslicht
|
||||||
- switch.livingroom_music
|
- switch.livingroom_music
|
||||||
- switch.livingroom_netflix
|
- switch.livingroom_netflix
|
||||||
|
@ -32,7 +33,10 @@
|
||||||
description: Küche - Theken-Lichter
|
description: Küche - Theken-Lichter
|
||||||
light.esstisch:
|
light.esstisch:
|
||||||
name: Esstisch
|
name: Esstisch
|
||||||
description: Küche - Esstisch-Lampen
|
description: Esstisch-Lichter
|
||||||
|
light.office:
|
||||||
|
name: Büro
|
||||||
|
description: Büro - Deckenlampe
|
||||||
light.stimmungslicht:
|
light.stimmungslicht:
|
||||||
name: Stimmungslicht
|
name: Stimmungslicht
|
||||||
description: Wohnzimmer - Stimmungslicht
|
description: Wohnzimmer - Stimmungslicht
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
# You can replace default by Light - Green, for example
|
||||||
|
- alias: 'Set theme at startup'
|
||||||
|
trigger:
|
||||||
|
- platform: homeassistant
|
||||||
|
event: start
|
||||||
|
action:
|
||||||
|
- service: frontend.set_theme
|
||||||
|
data:
|
||||||
|
name: default
|
||||||
|
- alias: 'Set HA theme for day and night'
|
||||||
|
trigger:
|
||||||
|
- platform: homeassistant
|
||||||
|
event: start
|
||||||
|
- platform: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
to: above_horizon
|
||||||
|
- platform: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
to: below_horizon
|
||||||
|
action:
|
||||||
|
- service_template: frontend.set_theme
|
||||||
|
data_template:
|
||||||
|
name: >
|
||||||
|
{% if states.sun.sun.state == "above_horizon" %}
|
||||||
|
default
|
||||||
|
{% else %}
|
||||||
|
default
|
||||||
|
{% endif %}
|
|
@ -7,6 +7,7 @@ homeassistant:
|
||||||
time_zone: Europe/Berlin
|
time_zone: Europe/Berlin
|
||||||
customize: !include_dir_merge_named customizations/
|
customize: !include_dir_merge_named customizations/
|
||||||
auth_providers:
|
auth_providers:
|
||||||
|
- type: homeassistant
|
||||||
- type: trusted_networks
|
- type: trusted_networks
|
||||||
trusted_networks:
|
trusted_networks:
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
|
@ -15,6 +16,7 @@ homeassistant:
|
||||||
- fd00::/8
|
- fd00::/8
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
|
themes: !include_dir_merge_named themes/
|
||||||
|
|
||||||
http:
|
http:
|
||||||
ip_ban_enabled: true
|
ip_ban_enabled: true
|
||||||
|
@ -28,11 +30,16 @@ lovelace:
|
||||||
mode: yaml
|
mode: yaml
|
||||||
|
|
||||||
zone:
|
zone:
|
||||||
- name: !secret work1_name
|
- name: !secret work_name_f
|
||||||
latitude: !secret work1_lat
|
latitude: !secret work_lat_f
|
||||||
longitude: !secret work1_long
|
longitude: !secret work_long_f
|
||||||
radius: 250
|
radius: 250
|
||||||
icon: mdi:briefcase
|
icon: mdi:briefcase
|
||||||
|
- name: !secret work_name_j
|
||||||
|
latitude: !secret work_lat_j
|
||||||
|
longitude: !secret work_long_j
|
||||||
|
radius: 500
|
||||||
|
icon: mdi:briefcase
|
||||||
|
|
||||||
system_health:
|
system_health:
|
||||||
|
|
||||||
|
@ -45,7 +52,8 @@ updater:
|
||||||
conversation:
|
conversation:
|
||||||
|
|
||||||
tts:
|
tts:
|
||||||
- platform: google
|
- platform: google_translate
|
||||||
|
service_name: google_say
|
||||||
|
|
||||||
history:
|
history:
|
||||||
|
|
||||||
|
@ -132,8 +140,8 @@ notify:
|
||||||
- name: telegram_fb
|
- name: telegram_fb
|
||||||
platform: telegram
|
platform: telegram
|
||||||
chat_id: !secret telegram_chat_fb
|
chat_id: !secret telegram_chat_fb
|
||||||
- name: android
|
# - name: android
|
||||||
platform: fcm-android
|
# platform: fcm-android
|
||||||
|
|
||||||
device_tracker:
|
device_tracker:
|
||||||
|
|
||||||
|
@ -174,25 +182,11 @@ binary_sensor:
|
||||||
name: Morning
|
name: Morning
|
||||||
after: '05:00'
|
after: '05:00'
|
||||||
before: '11:00'
|
before: '11:00'
|
||||||
- platform: mqtt
|
- platform: ping
|
||||||
state_topic: /home/camera/yihome1/motion/state
|
name: desktop_ping
|
||||||
name: YiHome1 Alarm
|
host: !secret desktop_ip
|
||||||
payload_on: 1
|
count: 2
|
||||||
payload_off: 0
|
scan_interval: 15
|
||||||
- platform: command_line
|
|
||||||
name: backup_error_occured
|
|
||||||
command: 'if [ `wc -l < /backuplogs/run.err.log` -eq 0 ]; then echo 0; else echo 1; fi'
|
|
||||||
payload_on: 1
|
|
||||||
payload_off: 0
|
|
||||||
scan_interval: 1800
|
|
||||||
device_class: 'problem'
|
|
||||||
- platform: command_line
|
|
||||||
name: backup_sync_error_occured
|
|
||||||
command: 'if [ `wc -l < /backuplogs/sync.err.log` -eq 0 ]; then echo 0; else echo 1; fi'
|
|
||||||
payload_on: 1
|
|
||||||
payload_off: 0
|
|
||||||
scan_interval: 1800
|
|
||||||
device_class: 'problem'
|
|
||||||
|
|
||||||
weather:
|
weather:
|
||||||
- platform: openweathermap
|
- platform: openweathermap
|
||||||
|
@ -204,25 +198,15 @@ weather:
|
||||||
# bed: true
|
# bed: true
|
||||||
# number_of_tools: 1
|
# number_of_tools: 1
|
||||||
|
|
||||||
#ffmpeg:
|
ffmpeg:
|
||||||
# ffmpeg_bin: /usr/bin/ffmpeg
|
ffmpeg_bin: /usr/bin/ffmpeg
|
||||||
|
|
||||||
|
stream:
|
||||||
|
|
||||||
camera:
|
camera:
|
||||||
# - platform: yi
|
- platform: ffmpeg
|
||||||
# name: YiHome1
|
name: office
|
||||||
# host: !secret yihome1
|
input: !secret office_stream_url
|
||||||
# password: !secret yihome1_password
|
|
||||||
# ffmpeg_arguments: '-pred 1 -vf scale=800:450'
|
|
||||||
# - platform: mqtt
|
|
||||||
# name: YiHome1-Mqtt
|
|
||||||
# topic: /home/camera/yihome1/motion/photo
|
|
||||||
# - platform: mjpeg
|
|
||||||
# name: octoprint_webcam
|
|
||||||
# mjpeg_url: !secret octoprint_cam_url
|
|
||||||
# - platform: local_file
|
|
||||||
#name: elisey_shocked
|
|
||||||
#friendly_name: Schlechtes Wetter
|
|
||||||
#file_path: /local/elisey_shocked.png
|
|
||||||
|
|
||||||
input_datetime:
|
input_datetime:
|
||||||
bedroom_alarm_clock_time:
|
bedroom_alarm_clock_time:
|
||||||
|
@ -230,20 +214,35 @@ input_datetime:
|
||||||
has_date: false
|
has_date: false
|
||||||
has_time: true
|
has_time: true
|
||||||
|
|
||||||
|
shell_command:
|
||||||
|
ssh: 'ssh -o "StrictHostKeyChecking=no" -i {{ sshkey }} {{ host }} -l {{ user }} -p {{ port }} {{ command_or_param }}'
|
||||||
|
|
||||||
|
rest_command:
|
||||||
|
shinobi_monitorstates:
|
||||||
|
url: "https://{{ host }}/{{ apikey }}/monitorStates/{{ group }}/{{ preset_name }}"
|
||||||
|
|
||||||
panel_iframe:
|
panel_iframe:
|
||||||
deconz:
|
cctv:
|
||||||
title: 'Deconz'
|
title: 'CCTV'
|
||||||
url: !secret url_deconz
|
url: !secret url_cctv
|
||||||
icon: mdi:gate-and
|
icon: mdi:cctv
|
||||||
chronograf:
|
chronograf:
|
||||||
title: 'Chronograf'
|
title: 'Chronograf'
|
||||||
url: !secret url_chronograf
|
url: !secret url_chronograf
|
||||||
icon: mdi:monitor-dashboard
|
icon: mdi:monitor-dashboard
|
||||||
|
deconz:
|
||||||
|
title: 'Deconz'
|
||||||
|
url: !secret url_deconz
|
||||||
|
icon: mdi:gate-and
|
||||||
|
esphome:
|
||||||
|
title: 'ESPHome'
|
||||||
|
url: !secret url_esphome
|
||||||
|
icon: mdi:chip
|
||||||
|
|
||||||
#alert: !include alerts.yaml
|
#alert: !include_dir_merge_list alerts/
|
||||||
alexa: !include alexa.yaml
|
alexa: !include alexa.yaml
|
||||||
automation: !include_dir_merge_list automations/
|
automation: !include_dir_merge_list automations/
|
||||||
#scene: !include scenes.yaml
|
#scene: !include scenes.yaml
|
||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
sensor: !include_dir_merge_list sensors/
|
sensor: !include_dir_merge_list sensors/
|
||||||
switch: !include switches.yaml
|
switch: !include switches.yaml
|
||||||
|
|
|
@ -1,10 +1,21 @@
|
||||||
icon: mdi:cctv
|
icon: mdi:cctv
|
||||||
path: cctv
|
path: cctv
|
||||||
cards:
|
cards:
|
||||||
- type: picture-entity
|
- type: entities
|
||||||
name: Haustür
|
show_header_toggle: false
|
||||||
entity: camera.yihome1
|
entities:
|
||||||
- type: picture-entity
|
- entity: switch.cctv_active
|
||||||
name: Haustür Alarm Image
|
name: Kameras aktiviert
|
||||||
entity: binary_sensor.yihome1_alarm
|
icon: mdi:power
|
||||||
camera_image: camera.yihome1_alarm
|
- entity: switch.cctv_motion_detection
|
||||||
|
name: Aufnahmen bei Bewegung
|
||||||
|
icon: mdi:motion-sensor
|
||||||
|
- type: picture-glance
|
||||||
|
title: Büro
|
||||||
|
camera_image: camera.office
|
||||||
|
camera_view: live
|
||||||
|
entities:
|
||||||
|
- entity: switch.cctv_motion_detection
|
||||||
|
icon: mdi:motion-sensor
|
||||||
|
- entity: switch.cctv_active
|
||||||
|
icon: mdi:power
|
||||||
|
|
|
@ -6,22 +6,30 @@ cards:
|
||||||
- entity: sensor.myip
|
- entity: sensor.myip
|
||||||
name: Öffentliche IP
|
name: Öffentliche IP
|
||||||
icon: mdi:earth
|
icon: mdi:earth
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
title: Florian
|
||||||
|
show_header_toggle: false
|
||||||
|
entities:
|
||||||
|
- entity: device_tracker.mobile_fb
|
||||||
|
name: Standort
|
||||||
|
- entity: sensor.device_mobile_fb_battery
|
||||||
|
name: Handy-Akku
|
||||||
|
icon: mdi:battery
|
||||||
|
- type: entities
|
||||||
|
title: Jenny
|
||||||
|
show_header_toggle: false
|
||||||
|
entities:
|
||||||
|
- entity: device_tracker.mobile_fb
|
||||||
|
name: Standort
|
||||||
|
- entity: sensor.device_mobile_fb_battery
|
||||||
|
name: Handy-Akku
|
||||||
|
icon: mdi:battery
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Florian
|
title: Wake On Lan
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- entity: device_tracker.mobile_fb
|
- entity: switch.desktop_wol
|
||||||
name: Standort
|
name: Desktop-PC
|
||||||
- entity: sensor.device_mobile_fb_battery
|
icon: mdi:desktop-classic
|
||||||
name: Handy-Akku
|
|
||||||
icon: mdi:battery
|
|
||||||
- type: entities
|
|
||||||
title: Jenny
|
|
||||||
show_header_toggle: false
|
|
||||||
entities:
|
|
||||||
- entity: device_tracker.mobile_fb
|
|
||||||
name: Standort
|
|
||||||
- entity: sensor.device_mobile_fb_battery
|
|
||||||
name: Handy-Akku
|
|
||||||
icon: mdi:battery
|
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,151 @@
|
||||||
icon: mdi:water-percent
|
icon: mdi:water-percent
|
||||||
path: humidity
|
path: humidity
|
||||||
cards:
|
cards:
|
||||||
- type: history-graph
|
- type: vertical-stack
|
||||||
title: 'Badezimmer'
|
cards:
|
||||||
refresh_interval: 30
|
- type: markdown
|
||||||
entities:
|
content: "### Elternbad"
|
||||||
- entity: sensor.bathroom_hygrometer_temperature
|
- type: horizontal-stack
|
||||||
name: Temperatur
|
cards:
|
||||||
- entity: sensor.bathroom_hygrometer_humidity
|
- type: sensor
|
||||||
name: Luftfeuchtigkeit
|
entity: sensor.parents_bathroom_hygrometer_humidity
|
||||||
- type: history-graph
|
name: Luftfeuchtigkeit
|
||||||
title: 'Dachboden'
|
graph: line
|
||||||
refresh_interval: 30
|
unit: "%"
|
||||||
entities:
|
detail: 2
|
||||||
- entity: sensor.attic_temperature
|
hours_to_show: 12
|
||||||
name: Temperatur
|
- type: sensor
|
||||||
- entity: sensor.attic_heatIndex
|
entity: sensor.parents_bathroom_hygrometer_temperature
|
||||||
name: Gefühlt
|
name: Temperatur
|
||||||
- entity: sensor.attic_humidity
|
graph: line
|
||||||
name: Luftfeuchtigkeit
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### \"Kinderbad\""
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.kids_bathroom_hygrometer_humidity
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.kids_bathroom_hygrometer_temperature
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### Schlafzimmer"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.humidity_12
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.temperature_11
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### Gästezimmer"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.humidity_18
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.temperature_17
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: vertical-stack
|
||||||
|
cards:
|
||||||
|
- type: markdown
|
||||||
|
content: "### Wohnzimmer"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.humidity_4
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.temperature_3
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### Hauswirtschaftsraum"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.hwr_hygrometer_humidity
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.hwr_hygrometer_temperature
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### Büro"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.humidity_15
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.temperature_14
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: markdown
|
||||||
|
content: "### Dachboden"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.attic_humidity_2
|
||||||
|
name: Luftfeuchtigkeit
|
||||||
|
graph: line
|
||||||
|
unit: "%"
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
- type: sensor
|
||||||
|
entity: sensor.attic_temperature_2
|
||||||
|
name: Temperatur
|
||||||
|
graph: line
|
||||||
|
unit: °C
|
||||||
|
detail: 2
|
||||||
|
hours_to_show: 12
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
title: Küche
|
|
||||||
path: kitchen
|
|
||||||
cards:
|
|
||||||
# Lights
|
|
||||||
- type: entities
|
|
||||||
entities:
|
|
||||||
- entity: light.kuchen_theke
|
|
||||||
name: Küchen-Theke
|
|
||||||
- entity: light.esstisch
|
|
||||||
name: Esstisch
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
title: Lichter
|
||||||
|
path: lights
|
||||||
|
cards:
|
||||||
|
- type: light
|
||||||
|
entity: light.kuchen_theke
|
||||||
|
name: Küchen-Theke
|
||||||
|
- type: light
|
||||||
|
entity: light.office
|
||||||
|
name: Büro
|
||||||
|
- type: light
|
||||||
|
entity: light.stimmungslicht
|
||||||
|
name: Stimmungslicht
|
||||||
|
- type: light
|
||||||
|
entity: light.ambilight
|
||||||
|
name: Ambilight
|
||||||
|
- type: light
|
||||||
|
entity: light.esstisch
|
||||||
|
name: Esstisch
|
|
@ -3,14 +3,15 @@ path: overview
|
||||||
cards:
|
cards:
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: weather-forecast
|
- type: custom:weather-card
|
||||||
entity: weather.openweathermap
|
entity: weather.openweathermap
|
||||||
# - type: iframe
|
name: Wetter
|
||||||
# url: !secret iframe_windy
|
|
||||||
# aspect_ratio: 75%
|
|
||||||
- type: iframe
|
- type: iframe
|
||||||
url: !secret iframe_earth
|
url: !secret iframe_windy
|
||||||
aspect_ratio: 75%
|
aspect_ratio: 75%
|
||||||
|
# - type: iframe
|
||||||
|
# url: !secret iframe_earth
|
||||||
|
# aspect_ratio: 75%
|
||||||
- type: conditional
|
- type: conditional
|
||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.workday_sensor
|
- entity: binary_sensor.workday_sensor
|
||||||
|
@ -24,36 +25,6 @@ cards:
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.salzbergen_to_munster_hbf
|
- entity: sensor.salzbergen_to_munster_hbf
|
||||||
name: Abfahrt
|
name: Abfahrt
|
||||||
- type: vertical-stack
|
|
||||||
cards:
|
|
||||||
- type: glance
|
|
||||||
title: Temperatur
|
|
||||||
show_name: true
|
|
||||||
show_state: true
|
|
||||||
entities:
|
|
||||||
- entity: sensor.bathroom_hygrometer_temperature
|
|
||||||
name: Badezimmer
|
|
||||||
icon: mdi:thermometer
|
|
||||||
- entity: sensor.temperature_3
|
|
||||||
name: Wohnzimmer
|
|
||||||
icon: mdi:thermometer
|
|
||||||
- entity: sensor.attic_temperature
|
|
||||||
name: Dachboden
|
|
||||||
icon: mdi:thermometer
|
|
||||||
- type: glance
|
|
||||||
title: Luftfeuchtigkeit
|
|
||||||
show_name: true
|
|
||||||
show_state: true
|
|
||||||
entities:
|
|
||||||
- entity: sensor.bathroom_hygrometer_humidity
|
|
||||||
name: Badezimmer
|
|
||||||
icon: mdi:water-percent
|
|
||||||
- entity: sensor.humidity_4
|
|
||||||
name: Wohnzimmer
|
|
||||||
icon: mdi:water-percent
|
|
||||||
- entity: sensor.attic_humidity
|
|
||||||
name: Dachboden
|
|
||||||
icon: mdi:water-percent
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: glance
|
- type: glance
|
||||||
|
@ -64,4 +35,4 @@ cards:
|
||||||
aspect_ratio: 75%
|
aspect_ratio: 75%
|
||||||
default_zoom: 15
|
default_zoom: 15
|
||||||
entities:
|
entities:
|
||||||
- zone.home
|
- zone.home
|
||||||
|
|
78
scripts.yaml
78
scripts.yaml
|
@ -1,3 +1,6 @@
|
||||||
|
dummy:
|
||||||
|
sequence:
|
||||||
|
|
||||||
ambilight_off:
|
ambilight_off:
|
||||||
alias: Ambilight schwarz schalten
|
alias: Ambilight schwarz schalten
|
||||||
sequence:
|
sequence:
|
||||||
|
@ -76,4 +79,77 @@ livingroom_netflix_on:
|
||||||
command:
|
command:
|
||||||
- Ok
|
- Ok
|
||||||
device: 42849848 #FireTv
|
device: 42849848 #FireTv
|
||||||
delay_secs: 0.6
|
delay_secs: 0.6
|
||||||
|
|
||||||
|
### Harmony Helper-Scripts
|
||||||
|
|
||||||
|
harmony_denon_power:
|
||||||
|
alias: Denon Power
|
||||||
|
sequence:
|
||||||
|
- service: remote.send_command
|
||||||
|
data:
|
||||||
|
entity_id: remote.livingroom_harmony
|
||||||
|
command:
|
||||||
|
- PowerToggle
|
||||||
|
device: 42849850 #Denon
|
||||||
|
|
||||||
|
harmony_denon_mute:
|
||||||
|
alias: Denon Stumm
|
||||||
|
sequence:
|
||||||
|
- service: remote.send_command
|
||||||
|
data:
|
||||||
|
entity_id: remote.livingroom_harmony
|
||||||
|
command:
|
||||||
|
- Mute
|
||||||
|
device: 42849850 #Denon
|
||||||
|
|
||||||
|
harmony_volume_up:
|
||||||
|
alias: Denon Lauter
|
||||||
|
sequence:
|
||||||
|
- service: remote.send_command
|
||||||
|
data:
|
||||||
|
entity_id: remote.livingroom_harmony
|
||||||
|
command:
|
||||||
|
- VolumeUp
|
||||||
|
device: 42849850 #Denon
|
||||||
|
num_repeats: 5
|
||||||
|
|
||||||
|
harmony_volume_down:
|
||||||
|
alias: Denon Leiser
|
||||||
|
sequence:
|
||||||
|
- service: remote.send_command
|
||||||
|
data:
|
||||||
|
entity_id: remote.livingroom_harmony
|
||||||
|
command:
|
||||||
|
- VolumeDown
|
||||||
|
device: 42849850 #Denon
|
||||||
|
num_repeats: 5
|
||||||
|
|
||||||
|
# CCTV
|
||||||
|
|
||||||
|
shinobi_idle:
|
||||||
|
sequence:
|
||||||
|
- service: rest_command.shinobi_monitorstates
|
||||||
|
data:
|
||||||
|
host: !secret shinobi_host
|
||||||
|
apikey: !secret shinobi_api_key
|
||||||
|
group: !secret shinobi_group
|
||||||
|
preset_name: Inactive (Idle)
|
||||||
|
|
||||||
|
shinobi_active:
|
||||||
|
sequence:
|
||||||
|
- service: rest_command.shinobi_monitorstates
|
||||||
|
data:
|
||||||
|
host: !secret shinobi_host
|
||||||
|
apikey: !secret shinobi_api_key
|
||||||
|
group: !secret shinobi_group
|
||||||
|
preset_name: Active + Motion Detection OFF
|
||||||
|
|
||||||
|
shinobi_active_with_motion:
|
||||||
|
sequence:
|
||||||
|
- service: rest_command.shinobi_monitorstates
|
||||||
|
data:
|
||||||
|
host: !secret shinobi_host
|
||||||
|
apikey: !secret shinobi_api_key
|
||||||
|
group: !secret shinobi_group
|
||||||
|
preset_name: Active + Motion Detection ON
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR=$(dirname "$(readlink -f "$0")")
|
||||||
|
|
||||||
|
SECRETS_FILE="$DIR/../secrets.yaml"
|
||||||
|
SKEL_FILE="$SECRETS_FILE.skel"
|
||||||
|
|
||||||
|
if [ ! -f $SECRETS_FILE ]; then
|
||||||
|
echo "File missing: \"$SECRETS_FILE\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
touch $SKEL_FILE
|
||||||
|
echo "" > $SKEL_FILE
|
||||||
|
|
||||||
|
while read LINE; do
|
||||||
|
# do nothing with empty lines
|
||||||
|
if [[ $LINE = *:* ]]; then
|
||||||
|
LINE="${LINE%%:*}: "
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$LINE" >> $SKEL_FILE
|
||||||
|
done < $SECRETS_FILE
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR=$(dirname "$(readlink -f "$0")")
|
||||||
|
|
||||||
|
KEYFILE="$DIR/../ssh-key/homeassistant-wakeonlan-sshkey"
|
||||||
|
TARGET="$HOME/.ssh/authorized_keys"
|
||||||
|
|
||||||
|
if [ ! -f $KEYFILE ]; then
|
||||||
|
echo "You need to create the SSH-Key-File first: \"$KEYFILE\""
|
||||||
|
echo "Use: \"ssh-keygen -t ed25519 -C homeassistant-wakeonlan-sshkey -f $KEYFILE\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! which wakeonlan > /dev/null; then
|
||||||
|
echo "You need to install \"wakeonlan\" first. Otherwise the ssh-key will be useless."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
SSHKEY=$(<"$KEYFILE.pub")
|
||||||
|
echo "command=\"wakeonlan \$SSH_ORIGINAL_COMMAND\" $SSHKEY" >> $TARGET
|
||||||
|
|
||||||
|
echo "Installed the ssh key into \"$TARGET\"."
|
|
@ -0,0 +1,90 @@
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
adbkey:
|
||||||
|
|
||||||
|
url_cctv:
|
||||||
|
url_chronograf:
|
||||||
|
url_deconz:
|
||||||
|
url_esphome:
|
||||||
|
|
||||||
|
# Zones
|
||||||
|
home_lat:
|
||||||
|
home_long:
|
||||||
|
home_elevation:
|
||||||
|
|
||||||
|
work_name_f:
|
||||||
|
work_lat_f:
|
||||||
|
work_long_f:
|
||||||
|
|
||||||
|
work_name_j:
|
||||||
|
work_lat_j:
|
||||||
|
work_long_j:
|
||||||
|
|
||||||
|
# Remote services
|
||||||
|
alexa_client_id:
|
||||||
|
alexa_client_secret:
|
||||||
|
|
||||||
|
deconz_ip:
|
||||||
|
deconz_port:
|
||||||
|
|
||||||
|
influxdb:
|
||||||
|
influxdb_user:
|
||||||
|
influxdb_password:
|
||||||
|
|
||||||
|
mqtt_broker_ip:
|
||||||
|
mqtt_username:
|
||||||
|
mqtt_password:
|
||||||
|
|
||||||
|
# Remote control
|
||||||
|
ambilight_ip:
|
||||||
|
firetv_ip:
|
||||||
|
harmonyhub_ip:
|
||||||
|
|
||||||
|
octoprint_ip:
|
||||||
|
octoprint_api_key:
|
||||||
|
octoprint_cam_url:
|
||||||
|
|
||||||
|
spotify_client_id:
|
||||||
|
spotify_client_secret:
|
||||||
|
|
||||||
|
shinobi_host:
|
||||||
|
shinobi_api_key:
|
||||||
|
shinobi_group:
|
||||||
|
|
||||||
|
office_stream_url:
|
||||||
|
office_details_url:
|
||||||
|
|
||||||
|
# Weather
|
||||||
|
openweathermap:
|
||||||
|
|
||||||
|
# Wake On Lan
|
||||||
|
nas_ip:
|
||||||
|
nas_ssh_user:
|
||||||
|
nas_ssh_port:
|
||||||
|
sshkey_wakeonlan:
|
||||||
|
desktop_ip:
|
||||||
|
desktop_mac:
|
||||||
|
desktop_wol_cmd:
|
||||||
|
|
||||||
|
iframe_earth:
|
||||||
|
#iframe_windy:
|
||||||
|
iframe_windy:
|
||||||
|
|
||||||
|
# Notifications
|
||||||
|
telegram_bot:
|
||||||
|
telegram_chat_fb:
|
||||||
|
telegram_chat_group:
|
||||||
|
|
||||||
|
# Social data
|
||||||
|
instagram_beauty:
|
||||||
|
instagram_franky:
|
||||||
|
instagram_fb:
|
||||||
|
instagram_mtb:
|
||||||
|
|
||||||
|
youtube_beauty:
|
||||||
|
youtube_mtb:
|
||||||
|
|
||||||
|
bitly_blog_bb:
|
||||||
|
bitly_instagram_bb:
|
||||||
|
bitly_impressum_bb:
|
||||||
|
bitly_youtube_bb:
|
|
@ -0,0 +1,8 @@
|
||||||
|
- platform: rest
|
||||||
|
resource: !secret office_details_url
|
||||||
|
name: Camera Mode Office
|
||||||
|
value_template: '{{ value_json.mode }}'
|
||||||
|
- platform: rest
|
||||||
|
resource: !secret office_details_url
|
||||||
|
name: Camera Motion Office
|
||||||
|
value_template: '{{ value_json.details|string|regex_search("\"detector\":\"1\"", ignorecase=FALSE) }}'
|
|
@ -9,20 +9,4 @@
|
||||||
name: "mobile_fb_callstate"
|
name: "mobile_fb_callstate"
|
||||||
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
||||||
value_template: "{{ value_json.state }}"
|
value_template: "{{ value_json.state }}"
|
||||||
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
||||||
|
|
||||||
- platform: mqtt
|
|
||||||
name: "Attic Humidity"
|
|
||||||
state_topic: "home/attic/homenodeTiny1/humidity"
|
|
||||||
force_update: true
|
|
||||||
unit_of_measurement: "%"
|
|
||||||
- platform: mqtt
|
|
||||||
name: "Attic Temperature"
|
|
||||||
state_topic: "home/attic/homenodeTiny1/temperature"
|
|
||||||
force_update: true
|
|
||||||
unit_of_measurement: "°C"
|
|
||||||
- platform: mqtt
|
|
||||||
name: "Attic HeatIndex"
|
|
||||||
state_topic: "home/attic/homenodeTiny1/heatIndex"
|
|
||||||
force_update: true
|
|
||||||
unit_of_measurement: "°C"
|
|
106
switches.yaml
106
switches.yaml
|
@ -1,5 +1,18 @@
|
||||||
- platform: template
|
- platform: template
|
||||||
switches:
|
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:
|
harmony_music_bt:
|
||||||
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
|
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
|
@ -52,81 +65,34 @@
|
||||||
entity_id: remote.livingroom_harmony
|
entity_id: remote.livingroom_harmony
|
||||||
activity: 'PowerOff'
|
activity: 'PowerOff'
|
||||||
|
|
||||||
harmony_denon_mute:
|
|
||||||
friendly_name: Denon Stumm
|
|
||||||
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
|
|
||||||
turn_off:
|
|
||||||
service: remote.send_command
|
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- Mute
|
|
||||||
device: 42849850 #Denon
|
|
||||||
|
|
||||||
harmony_denon_power:
|
harmony_denon_power:
|
||||||
friendly_name: Denon Power
|
friendly_name: Denon Power
|
||||||
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
service: remote.send_command
|
service: script.harmony_denon_power
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- PowerToggle
|
|
||||||
device: 42849850 #Denon
|
|
||||||
turn_off:
|
turn_off:
|
||||||
service: remote.send_command
|
service: script.harmony_denon_power
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- PowerToggle
|
|
||||||
device: 42849850 #Denon
|
|
||||||
|
|
||||||
harmony_volume_down:
|
harmony_denon_mute:
|
||||||
friendly_name: Denon Leiser
|
friendly_name: Denon Stumm
|
||||||
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
service: remote.send_command
|
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- VolumeDown
|
|
||||||
device: 42849850 #Denon
|
|
||||||
num_repeats: 5
|
|
||||||
turn_off:
|
turn_off:
|
||||||
service: remote.send_command
|
service: script.harmony_denon_mute
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- VolumeDown
|
|
||||||
device: 42849850 #Denon
|
|
||||||
num_repeats: 5
|
|
||||||
|
|
||||||
harmony_volume_up:
|
harmony_volume_up:
|
||||||
friendly_name: Denon Lauter
|
friendly_name: Denon Lauter
|
||||||
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
service: remote.send_command
|
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
|
||||||
command:
|
|
||||||
- VolumeUp
|
|
||||||
device: 42849850 #Denon
|
|
||||||
num_repeats: 5
|
|
||||||
turn_off:
|
turn_off:
|
||||||
service: remote.send_command
|
service: script.harmony_volume_up
|
||||||
data:
|
|
||||||
entity_id: remote.livingroom_harmony
|
harmony_volume_down:
|
||||||
command:
|
friendly_name: Denon Leiser
|
||||||
- VolumeUp
|
value_template: "{{ state_attr('remote.livingroom_harmony', 'current_activity') != 'PowerOff' }}"
|
||||||
device: 42849850 #Denon
|
turn_on:
|
||||||
num_repeats: 5
|
turn_off:
|
||||||
|
service: script.harmony_volume_down
|
||||||
|
|
||||||
livingroom_music:
|
livingroom_music:
|
||||||
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
|
value_template: "{{ is_state_attr('remote.livingroom_harmony', 'current_activity', 'Musik Bluetooth') }}"
|
||||||
|
@ -143,4 +109,22 @@
|
||||||
service: remote.turn_on
|
service: remote.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: remote.livingroom_harmony
|
entity_id: remote.livingroom_harmony
|
||||||
activity: 'PowerOff'
|
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
|
|
@ -1,11 +1,16 @@
|
||||||
# Icons @ https://materialdesignicons.com/
|
# Icons @ https://materialdesignicons.com/
|
||||||
title: Making Home Great Again
|
title: Making Home Great Again
|
||||||
|
|
||||||
views:
|
views:
|
||||||
- !include lovelace-views/overview.yaml
|
- !include lovelace-views/overview.yaml
|
||||||
- !include lovelace-views/kitchen.yaml
|
- !include lovelace-views/lights.yaml
|
||||||
- !include lovelace-views/livingroom.yaml
|
- !include lovelace-views/livingroom.yaml
|
||||||
- !include lovelace-views/humidity.yaml
|
- !include lovelace-views/humidity.yaml
|
||||||
- !include lovelace-views/spotify.yaml
|
- !include lovelace-views/spotify.yaml
|
||||||
- !include lovelace-views/instagram.yaml
|
- !include lovelace-views/instagram.yaml
|
||||||
- !include lovelace-views/devices.yaml
|
- !include lovelace-views/devices.yaml
|
||||||
# - !include lovelace-views/cctv.yaml
|
- !include lovelace-views/cctv.yaml
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- url: https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/weather-card.min.js
|
||||||
|
type: module
|
||||||
|
|
Carregando…
Criar uma nova questão referindo esta