1
1

Move subconfigs to subdir

Este cometimento está contido em:
Florian Brinker
2020-01-14 20:03:19 +01:00
ascendente b48668dec6
cometimento 4d70f40a01
28 ficheiros modificados com 33 adições e 26 eliminações

5
config/alerts/humidity.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,5 @@
#motion_battery:
# entity_id: binary_sensor.humidity_alarm_parents_bathroom
# repeat: 30
# notifiers:
# - telegram_fb

73
config/alexa.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,73 @@
# Display Categories: https://developer.amazon.com/de/docs/device-apis/alexa-discovery.html#display-categories
smart_home:
endpoint: https://api.amazonalexa.com/v3/events
client_id: !secret alexa_client_id
client_secret: !secret alexa_client_secret
filter:
include_entities:
- light.ambilight
- light.kuchen_theke
- light.esstisch
- light.office
- switch.livingroom_stimmungslicht
- switch.livingroom_music
- switch.livingroom_netflix
- switch.harmony_firetv
- switch.harmony_steamlink
- switch.harmony_playstation
- switch.harmony_denon_power
- switch.desktop_wol
- switch.wallboard_display
- switch.tplink1
# include_domains:
# - switch
# exclude_entities:
# - switch.outside
entity_config:
# switch.stairs:
# display_categories: LIGHT
# ACHTUNG: WHITELIST EBENFALLS ERGÄNZEN!
light.ambilight:
name: Ambilight
description: Wohnzimmer - TV Ambilight
light.kuchen_theke:
name: Küche
description: Küche - Theken-Lichter
light.esstisch:
name: Esstisch
description: Esstisch-Lichter
light.office:
name: Büro
description: Büro - Deckenlampe
light.stimmungslicht:
name: Stimmungslicht
description: Wohnzimmer - Stimmungslicht
switch.livingroom_music:
name: Musik
description: Wohnzimmer - Musik
switch.livingroom_netflix:
name: Netflix
description: Wohnzimmer - Netflix
switch.harmony_firetv:
name: Fernseher
description: Harmony - FireTV
switch.harmony_steamlink:
name: Konsole
description: Harmony - SteamLink
switch.harmony_playstation:
name: Playstation
description: Harmony - Playstation
switch.harmony_denon_power:
name: Receiver
description: Harmony - Denon AVR
switch.desktop_wol:
name: Computer
description: Computer im Büro
switch.wallboard_display:
name: Display
description: Wallboard Display
switch.tplink1:
name: Kamera
description: Wohnzimmer Kamera
# ACHTUNG: WHITELIST EBENFALLS ERGÄNZEN!

46
config/automations/alarm.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,46 @@
- alias: alarm disarm
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'disarmed'
action:
- service: notify.telegram_fb
data_template:
title: "*Alarm DEAKTIVIERT!*"
message: "Der Alarm wurde *deaktiviert*."
- service: script.shinobi_active
- alias: alarm pending
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'pending'
action:
- service: notify.telegram_fb
data_template:
title: "*Alarm wird aktiviert...*"
message: "Der Alarm wird in kürze scharf geschaltet!"
- alias: alarm away
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'armed_away'
action:
- service: notify.telegram_fb
data_template:
title: "*Alarm SCHARF!*"
message: "Der Alarm ist im *Unterwegs*-Modus."
- service: script.shinobi_active_with_motion
- alias: alarm night
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: 'armed_night'
action:
- service: notify.telegram_fb
data_template:
title: "*Alarm SCHARF!*"
message: "Der Alarm ist im *Nacht*-Modus."
- service: script.shinobi_active_with_motion

11
config/automations/hassio.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,11 @@
- alias: Update notifications
trigger:
- platform: state
entity_id: updater.updater
action:
service: notify.telegram_fb
data_template:
title: Neuer Home Assistant Release
message: |
Home Assistant {{ states.updater.updater.state }} ist nun verfügbar.
Changelog: https://github.com/home-assistant/home-assistant/releases

Ver ficheiro

@@ -0,0 +1,31 @@
- 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.'

Ver ficheiro

@@ -0,0 +1,44 @@
- alias: Ambilight HDMI
trigger:
platform: state
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
to: 'on'
action:
service: light.turn_on
data:
entity_id: light.ambilight
effect: HDMI
- alias: Musik an
trigger:
platform: state
entity_id: switch.harmony_music_bt
to: 'on'
action:
- service: script.livingroom_music_scenario_on
- alias: Musik aus
trigger:
platform: state
entity_id: switch.harmony_music_bt
to: 'off'
action:
- service: script.livingroom_music_scenario_off
- alias: Ambilight aus
trigger:
platform: state
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
to: 'off'
action:
service: light.turn_off
data:
entity_id: light.ambilight
- alias: Ambilight aus wird zu an und schwarz
trigger:
platform: state
entity_id: light.ambilight
to: 'off'
action:
- service: script.ambilight_off

65
config/automations/roku.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,65 @@
- alias: Roku Ambilight HDMI
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Fwd
action:
service: light.turn_on
data:
entity_id: light.ambilight
effect: "HDMI"
- alias: Roku Ambilight Effect Rainbow
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Play
action:
service: light.turn_on
data:
entity_id: light.ambilight
effect: "Rainbow swirl"
- alias: Roku Ambilight Light
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Rev
action:
service: light.turn_on
data:
entity_id: light.ambilight
rgb_color: [255,63,0]
brightness: 255
- alias: Roku Ambilight Toggle
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Left
action:
service: light.toggle
data:
entity_id: light.ambilight
- alias: Roku Mood Light Toggle
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Right
action:
service: light.toggle
data:
entity_id: light.stimmungslicht

Ver ficheiro

@@ -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 %}

Ver ficheiro

@@ -0,0 +1,25 @@
- alias: Wallboard On
trigger:
- platform: state
entity_id: binary_sensor.anyone_home
to: 'on'
- platform: state
entity_id: sensor.harmony_activity
from: 'Fire TV sehen'
action:
service: switch.turn_on
data:
entity_id: switch.wallboard_display
- alias: Wallboard Off
trigger:
- platform: state
entity_id: binary_sensor.anyone_home
to: 'off'
- platform: state
entity_id: sensor.harmony_activity
to: 'Fire TV sehen'
action:
service: switch.turn_off
data:
entity_id: switch.wallboard_display

Ver ficheiro

@@ -0,0 +1,4 @@
person.jenny:
entity_picture: "/local/avatars/jenny-bty.jpg"
person.florian:
entity_picture: "/local/avatars/flo-mtb.jpg"

148
config/scripts.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,148 @@
dummy:
sequence:
ambilight_off:
alias: Ambilight schwarz schalten
sequence:
- service: light.turn_on
data:
entity_id: light.ambilight
rgb_color: [0,0,0]
brightness: 0
livingroom_music_on:
alias: Wohnzimmer Musik - An
sequence:
- service: switch.turn_on
data:
entity_id: switch.harmony_music_bt
- service: script.livingroom_music_scenario_on
livingroom_music_scenario_on:
alias: Wohnzimmer Musik Szenario - An
sequence:
- service: switch.turn_on # todo: nur triggern wenn noch off
data:
entity_id: switch.harmony_music_bt
- service: light.turn_on
data:
entity_id: light.ambilight
effect: "Rainbow swirl"
brightness: 130
- service: media_player.select_source
data:
entity_id: media_player.spotify
source: Wohnzimmer
# We have to wait for the AVR establishing a BT connection to the Dot
- delay:
seconds: 15
- service: media_player.media_play
data:
entity_id: media_player.spotify
livingroom_music_off:
alias: Wohnzimmer Musik - Aus
sequence:
- service: script.livingroom_music_scenario_off
- service: switch.turn_off
data:
entity_id: switch.harmony_music_bt
livingroom_music_scenario_off:
alias: Wohnzimmer Musik Szenario - Aus
sequence:
- service: media_player.media_pause
data:
entity_id: media_player.spotify
- service: light.turn_off
data:
entity_id: light.ambilight
livingroom_netflix_on:
alias: Netflix
sequence:
- service: switch.turn_on
data:
entity_id: switch.harmony_firetv
- delay:
seconds: 6
- service: media_player.select_source
data:
entity_id: media_player.fire_tv
source: com.netflix.ninja
- delay:
seconds: 3
- service: remote.send_command
data:
entity_id: remote.livingroom_harmony
command:
- Ok
device: 42849848 #FireTv
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
# 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

5
config/sensors/devices.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,5 @@
- platform: template
sensors:
device_mobile_fb_battery:
value_template: '{{ states.device_tracker.mobile_fb.attributes.battery }}'
unit_of_measurement: '%'

9
config/sensors/livingroom.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,9 @@
- platform: template
sensors:
harmony_activity:
value_template: >
{% if is_state("remote.livingroom_harmony", 'on') %}
{{ states.remote.livingroom_harmony.attributes.current_activity }}
{% else %}
PowerOff
{% endif %}

19
config/sensors/misc.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,19 @@
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
- 'beat'
- platform: dnsip
- platform: deutsche_bahn
from: "Salzbergen"
to: "Münster HBF"
- platform: template
sensors:
salzbergen_to_munster_hbf_ontime:
value_template: '{{ states.sensor.salzbergen_to_munster_hbf.attributes.ontime }}'

44
config/sensors/mqtt.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,44 @@
- platform: mqtt
name: hygro_bathroom_parents_temperature
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_bathroom_parents_humidity
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: hygro_bathroom_kids_temperature
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_bathroom_kids_humidity
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: hygro_hwr_temperature
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_temperature/state"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: hygro_hwr_humidity
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_humidity/state"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: "mobile_fb_battery"
state_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
unit_of_measurement: '%'
value_template: "{{ value_json.level }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
- platform: mqtt
name: "mobile_fb_callstate"
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
value_template: "{{ value_json.state }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"

220
config/sensors/social.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,220 @@
# Youtube
# beauty
- platform: rest
scan_interval: 300
name: youtube_beauty
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
unit_of_measurement: Subscribers
force_update: true
- platform: rest
scan_interval: 900
name: youtube_beauty_videos
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
force_update: true
- platform: rest
scan_interval: 600
name: youtube_beauty_views
resource: !secret youtube_beauty
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
force_update: true
# mtb
- platform: rest
scan_interval: 300
name: youtube_mtb
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
unit_of_measurement: Subscribers
force_update: true
- platform: rest
scan_interval: 900
name: youtube_mtb_videos
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
force_update: true
- platform: rest
scan_interval: 600
name: youtube_mtb_views
resource: !secret youtube_mtb
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
force_update: true
# Bit.ly
# http://bit.ly/blog-jbb
- platform: rest
scan_interval: 300
name: bitly_blog_bb
resource: !secret bitly_blog_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
# http://bit.ly/insta-jbb
- platform: rest
scan_interval: 300
name: bitly_instagram_bb
resource: !secret bitly_instagram_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
#http://bit.ly/impressum-jbb
- platform: rest
scan_interval: 300
name: bitly_impressum_bb
resource: !secret bitly_impressum_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
# http://bit.ly/youtube-bb
- platform: rest
scan_interval: 300
name: bitly_youtube_bb
resource: !secret bitly_youtube_bb
value_template: '{{ value_json.data.link_clicks }}'
force_update: true
# Instagram
#beauty
- platform: rest
scan_interval: 300
name: instagram_beauty
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_beauty_follows
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_beauty_media
resource: !secret instagram_beauty
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# franky
- platform: rest
scan_interval: 300
name: instagram_franky
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_franky_follows
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_franky_media
resource: !secret instagram_franky
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# fb
- platform: rest
scan_interval: 300
name: instagram_fb
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_fb_follows
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_fb_media
resource: !secret instagram_fb
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# mtb
- platform: rest
scan_interval: 300
name: instagram_mtb
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_mtb_follows
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_mtb_media
resource: !secret instagram_mtb
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# medieval
- platform: rest
scan_interval: 300
name: instagram_medieval
resource: !secret instagram_medieval
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_medieval_follows
resource: !secret instagram_medieval
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_medieval_media
resource: !secret instagram_medieval
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# lotte
- platform: rest
scan_interval: 300
name: instagram_lotte
resource: !secret instagram_lotte
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_lotte_follows
resource: !secret instagram_lotte
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_lotte_media
resource: !secret instagram_lotte
value_template: '{{ value_json.data.counts.media }}'
force_update: true
# codedwithlove
- platform: rest
scan_interval: 300
name: instagram_codedwithlove
resource: !secret instagram_codedwithlove
value_template: '{{ value_json.data.counts.followed_by }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 900
name: instagram_codedwithlove_follows
resource: !secret instagram_codedwithlove
value_template: '{{ value_json.data.counts.follows }}'
force_update: true
- platform: rest
scan_interval: 600
name: instagram_codedwithlove_media
resource: !secret instagram_codedwithlove
value_template: '{{ value_json.data.counts.media }}'
force_update: true

175
config/switches.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,175 @@
- 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') }}"
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'
### 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

17
config/views/cctv.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,17 @@
icon: mdi:cctv
path: cctv
cards:
- type: picture-glance
camera_image: camera.livingroom
entities:
- binary_sensor.motion_livingroom
- switch.camera_livingroom_ir_lights
# - switch.camera_livingroom_email
# - switch.camera_livingroom_ftp
title: Wohnzimmer
- type: alarm-panel
name: Alarm
entity: alarm_control_panel.home_alarm
states:
- arm_away
- arm_night

56
config/views/devices.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,56 @@
icon: mdi:cellphone-link
path: devices
cards:
- type: entities
entities:
- entity: sensor.myip
name: Öffentliche IP
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: horizontal-stack
cards:
- type: entities
title: Wake On Lan
show_header_toggle: false
entities:
- entity: switch.desktop_wol
name: Desktop-PC
icon: mdi:desktop-classic
- type: entities
title: Wallboard
show_header_toggle: false
entities:
- entity: switch.wallboard_display
name: Display
icon: mdi:tablet
- type: entities
title: Home Assistant Slaves
show_header_toggle: false
entities:
- type: weblink
name: Livingroom
url: !secret url_haslave_livingroom
icon: mdi:home-assistant
- type: weblink
name: Office
url: !secret url_haslave_office
icon: mdi:home-assistant

151
config/views/humidity.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,151 @@
icon: mdi:water-percent
path: humidity
cards:
- type: vertical-stack
cards:
- type: markdown
content: "### Elternbad"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.hygro_bathroom_parents_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.hygro_bathroom_parents_temperature
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### \"Kinderbad\""
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.hygro_bathroom_kids_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.hygro_bathroom_kids_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.lumi_bedroom_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.lumi_bedroom_temperature
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.lumi_guestroom_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.lumi_guestroom_temperature
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.hygro_hwr_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.hygro_hwr_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.lumi_office_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.lumi_office_temperature
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

58
config/views/instagram.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,58 @@
icon: mdi:instagram
path: instagram
cards:
- type: vertical-stack
cards:
- type: picture
image: /local/avatars/jenny-bty.jpg
- type: sensor
entity: sensor.instagram_beauty
name: brunettebeauty_91
icon: mdi:heart
graph: line
- type: glance
entities:
- entity: sensor.instagram_beauty_media
name: Beiträge
icon: mdi:image-multiple
- entity: sensor.instagram_beauty_follows
name: Abonniert
icon: mdi:account-multiple
- type: glance
title: frankyowski
show_name: false
entities:
- entity: sensor.instagram_franky
icon: mdi:heart
- entity: sensor.instagram_franky_media
icon: mdi:image-multiple
- entity: sensor.instagram_franky_follows
icon: mdi:account-multiple
- type: vertical-stack
cards:
- type: picture
image: /local/avatars/flo-mtb.jpg
- type: sensor
entity: sensor.instagram_mtb
name: _fbmtb
icon: mdi:heart
graph: line
- type: glance
entities:
- entity: sensor.instagram_mtb_media
name: Beiträge
icon: mdi:image-multiple
- entity: sensor.instagram_mtb_follows
name: Abonniert
icon: mdi:account-multiple
- type: glance
title: _fbrinker
show_name: false
entities:
- entity: sensor.instagram_fb
icon: mdi:heart
- entity: sensor.instagram_fb_media
icon: mdi:image-multiple
- entity: sensor.instagram_fb_follows
icon: mdi:account-multiple

18
config/views/lights.yaml Ficheiro normal
Ver ficheiro

@@ -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

65
config/views/livingroom.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,65 @@
title: Wohnzimmer
path: livingroom
cards:
# Lights
- type: horizontal-stack
cards:
- type: entities
entities:
- entity: light.kuchen_theke
name: Küchen-Theke
- entity: light.esstisch
name: Esstisch
- entity: light.stimmungslicht
name: Stimmungslicht
icon: mdi:lightbulb
- entity: light.ambilight
name: Ambilight
# Denon + Harmony
- type: vertical-stack
cards:
# Denon
- type: picture-glance
title: Denon AVR
entities:
- entity: switch.harmony_volume_up
icon: mdi:volume-plus
- entity: switch.harmony_volume_down
icon: mdi:volume-minus
- entity: switch.harmony_denon_mute
icon: mdi:volume-off
- entity: switch.harmony_denon_power
icon: mdi:power
image: /local/images/denon.jpg
state_image:
"PowerOff": /local/images/denon-bw.jpg
entity: sensor.harmony_activity
# Harmony
- type: picture-glance
title: Harmony
entities:
- entity: switch.harmony_firetv
icon: mdi:television
- entity: switch.harmony_music_bt
icon: mdi:bluetooth-audio
- entity: switch.harmony_steamlink
icon: mdi:steam
- entity: switch.harmony_playstation
icon: mdi:playstation
state_image:
"PowerOff": /local/images/power.jpg
"Fire TV sehen": /local/images/firetv.jpg
"Musik Bluetooth": /local/images/music.jpg
"SteamLink": /local/images/steamlink.jpg
"PlayStation": /local/images/playstation.jpg
entity: sensor.harmony_activity
# Spotify
- type: conditional
conditions:
- entity: sensor.harmony_activity
state: "Musik Bluetooth"
card:
type: media-control
entity: media_player.spotify

51
config/views/overview.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,51 @@
title: Übersicht
path: overview
cards:
- type: conditional
conditions:
- entity: binary_sensor.openclose_10
state: "on"
card:
type: entities
title: Offene Fenster
show_header_toggle: false
entities:
- entity: binary_sensor.openclose_10
name: Elternbad
icon: mdi:window-open
- type: vertical-stack
cards:
- type: custom:weather-card
entity: weather.openweathermap
name: Wetter
- type: iframe
url: !secret iframe_windy
aspect_ratio: 75%
# - type: iframe
# url: !secret iframe_earth
# aspect_ratio: 75%
- type: conditional
conditions:
- entity: binary_sensor.workday_sensor
state: "on"
- entity: binary_sensor.morning
state: "on"
card:
type: entities
title: Nächste Bahn nach Münster
show_header_toggle: false
entities:
- entity: sensor.salzbergen_to_munster_hbf
name: Abfahrt
- type: vertical-stack
cards:
- type: glance
title: Anwesenheit
entities:
- person.florian
- person.jenny
- type: map
aspect_ratio: 75%
default_zoom: 15
entities:
- zone.home

5
config/views/spotify.yaml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,5 @@
icon: mdi:spotify
path: spotify
cards:
- type: media-control
entity: media_player.spotify