434 lines
12 KiB
YAML
434 lines
12 KiB
YAML
homeassistant:
|
|
# Location required to calculate the time the sun rises and sets.
|
|
# Coordinates are also used for location for weather related components.
|
|
# Google Maps can be used to determine more precise GPS coordinates.
|
|
latitude: !secret home_latitude
|
|
longitude: !secret home_longitude
|
|
country: DE
|
|
# Impacts weather/sunrise data
|
|
elevation: !secret home_elevation
|
|
|
|
# 'metric' for Metric System, 'imperial' for imperial system
|
|
unit_system: metric
|
|
|
|
# Pick yours from here:
|
|
# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
time_zone: Europe/Berlin
|
|
|
|
# Name of the location where Home Assistant is running
|
|
name: Home
|
|
|
|
# Customization file
|
|
customize: !include customize.yaml
|
|
|
|
auth_providers:
|
|
# must be included for alexa/reverse proxy access
|
|
- type: homeassistant
|
|
- type: trusted_networks
|
|
trusted_networks:
|
|
- 192.168.178.0/24
|
|
- 172.18.0.0/16
|
|
- 172.19.0.0/16
|
|
- fd00::/8
|
|
mobile_app:
|
|
#discovery:
|
|
schedule:
|
|
weekend_schedule:
|
|
name: "Wochenende"
|
|
saturday:
|
|
- from: "04:00:00"
|
|
to: "22:00:00"
|
|
sunday:
|
|
- from: "04:00:00"
|
|
to: "22:00:00"
|
|
system_health:
|
|
person:
|
|
# Enables the frontend
|
|
frontend:
|
|
#themes: !include themes.yaml
|
|
themes: !include_dir_merge_named themes
|
|
|
|
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
|
http:
|
|
# ssl_certificate: ssl/fritz.box.crt
|
|
# ssl_key: ssl/fritz.box.key
|
|
use_x_forwarded_for: true
|
|
trusted_proxies:
|
|
- 192.168.178.0/24 # Add the IP address of the proxy server
|
|
# base_url: example.duckdns.org:8123
|
|
|
|
config:
|
|
|
|
# helper enablement
|
|
input_datetime:
|
|
input_text:
|
|
counter:
|
|
timer:
|
|
#default_config:
|
|
|
|
group: !include groups.yaml
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
|
|
media_player:
|
|
- platform: vdr
|
|
host: 192.168.178.200
|
|
timeout: 2
|
|
|
|
homematic:
|
|
local_port: 8060
|
|
interfaces:
|
|
wireless:
|
|
host: !secret ccu_host
|
|
username: !secret ccu_user
|
|
password: !secret ccu_password
|
|
callback_ip: !secret ccu_callback_ip
|
|
callback_port: 8060
|
|
ip:
|
|
host: !secret ccu_host
|
|
port: 2010
|
|
hosts:
|
|
ccu2:
|
|
host: !secret ccu_host
|
|
username: !secret ccu_user
|
|
password: !secret ccu_password
|
|
|
|
switch:
|
|
- platform: command_line
|
|
switches:
|
|
pihole_switch:
|
|
command_on: "curl -s -X GET 'http://192.168.178.202/admin/api.php?enable&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'"
|
|
command_off: "curl -s -X GET 'http://192.168.178.202/admin/api.php?disable=3600&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'"
|
|
command_state: "curl -s -X GET 'http://192.168.178.202/admin/api.php?status&auth=1eae9e87f4b4710981639ee591b7d75734811d61697092110cb748c3244e01cc'"
|
|
value_template: "{{ value_json.status == 'enabled' }}"
|
|
- platform: template
|
|
switches:
|
|
ccu_tsm:
|
|
value_template: '{{ is_state("binary_sensor.ccu_thunderstorm_mode","on") }}'
|
|
turn_on:
|
|
service: homematic.set_variable_value
|
|
data:
|
|
entity_id: homematic.ccu2
|
|
name: ThunderstormMode
|
|
value: true
|
|
turn_off:
|
|
service: homematic.set_variable_value
|
|
data:
|
|
entity_id: homematic.ccu2
|
|
name: ThunderstormMode
|
|
value: false
|
|
run_script_fernsehschauen:
|
|
turn_on:
|
|
service: script.fernsehschauenstarten
|
|
turn_off:
|
|
service: script.noop
|
|
run_script_streamingstarten:
|
|
turn_on:
|
|
service: script.streamingstarten
|
|
turn_off:
|
|
service: script.noop
|
|
run_script_musikstreamingstarten:
|
|
turn_on:
|
|
service: script.musikstreamingstarten
|
|
turn_off:
|
|
service: script.noop
|
|
run_script_radiostarten:
|
|
turn_on:
|
|
service: script.radiostarten
|
|
turn_off:
|
|
service: script.noop
|
|
- platform: wake_on_lan
|
|
mac: !secret mac_vdr
|
|
host: !secret host_vdr
|
|
name: VDR
|
|
- platform: wake_on_lan
|
|
mac: !secret mac_ds
|
|
host: !secret host_ds
|
|
name: Diskstation
|
|
|
|
|
|
emulated_hue:
|
|
host_ip: !secret ip_ha_raspi
|
|
listen_port: 8300
|
|
expose_by_default: true
|
|
exposed_domains:
|
|
- light
|
|
- switch
|
|
#
|
|
logbook:
|
|
#
|
|
alexa:
|
|
#intent_script: !include_dir_named alexa/
|
|
intent_script: !include alexa.yaml
|
|
|
|
#
|
|
zone:
|
|
name: Home
|
|
latitude: !secret home_latitude
|
|
longitude: !secret home_longitude
|
|
radius: 50
|
|
icon: mdi:account-multiple
|
|
|
|
zone 2:
|
|
name: !secret work_name
|
|
latitude: !secret work_lat
|
|
longitude: !secret work_long
|
|
radius: 300
|
|
icon: mdi:worker
|
|
|
|
map:
|
|
sun:
|
|
influxdb:
|
|
host: !secret influx_host
|
|
username: !secret influx_user
|
|
password: !secret influx_pwd
|
|
max_retries: 3
|
|
database: "home_assistant"
|
|
tags:
|
|
instance: prod
|
|
source: hass
|
|
include:
|
|
domains:
|
|
- sensor
|
|
|
|
binary_sensor: !include_dir_merge_list binary_sensors
|
|
|
|
template:
|
|
- trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.bewegung_studio_occupancy
|
|
from: "off"
|
|
to: "on"
|
|
# - platform: time_pattern
|
|
# hours: "22"
|
|
# minutes: "/5"
|
|
# seconds: "*"
|
|
binary_sensor:
|
|
name: bewegung_studio_occupancy_delayed_off
|
|
state: 'on'
|
|
auto_off: '00:20:00'
|
|
# - trigger:
|
|
# - platform: state
|
|
# entity_id: binary_sensor.bewegung_studio_occupancy
|
|
# state: 'on'
|
|
# binary_sensor:
|
|
# name: Motion detected with occupancy timeout
|
|
# state: 'on'
|
|
# auto_off: '00:15:00'
|
|
|
|
|
|
input_boolean:
|
|
vacation_mode:
|
|
name: Vacation
|
|
icon: mdi:beach
|
|
baby_bed:
|
|
name: Baby im Bett
|
|
icon: mdi:baby
|
|
input_number:
|
|
humidity_threshold:
|
|
name: Bad Luftfeuchte
|
|
initial: 68
|
|
min: 50
|
|
max: 80
|
|
step: 1
|
|
|
|
input_select:
|
|
living_room_tv:
|
|
name: Wohnzimmer TV
|
|
options:
|
|
- PowerOff
|
|
- Fernsehen
|
|
- Radio
|
|
- Musik Streaming
|
|
- Smart TV wiedergeben
|
|
initial: PowerOff
|
|
icon: mdi:monitor
|
|
bed_room_tv:
|
|
name: Schlafzimmer TV
|
|
options:
|
|
- PowerOff
|
|
- Fernsehen
|
|
- Fire TV sehen
|
|
initial: PowerOff
|
|
icon: mdi:monitor
|
|
|
|
input_button:
|
|
stream:
|
|
#camera:
|
|
# - platform: generic
|
|
# name: Babycam
|
|
# stream_source: http://babycam.fritz.box/min.php
|
|
# still_image_url: http://babycam.fritz.box/cam_pic.php
|
|
|
|
google_assistant:
|
|
project_id: homeassistantintegration-c23fa
|
|
#report_state: true
|
|
exposed_domains:
|
|
- switch
|
|
- light
|
|
- sensor
|
|
- climate
|
|
|
|
shelly:
|
|
|
|
mqtt:
|
|
sensor:
|
|
- name: shelly_outsid__temp
|
|
state_topic: "shellies/shellyht-F939CE/sensor/temperature"
|
|
unit_of_measurement: "° C"
|
|
- name: shelly_outside_hum
|
|
state_topic: "shellies/shellyht-F939CE/sensor/humidity"
|
|
unit_of_measurement: "%"
|
|
- name: shelly_outside_bat
|
|
state_topic: "shellies/shellyht-F939CE/sensor/battery"
|
|
unit_of_measurement: "%"
|
|
cover:
|
|
- name: bedroom_cover_r
|
|
command_topic: "shellies/shellyswitch25-76D19E/roller/0/command"
|
|
position_topic: "shellies/shellyswitch25-76D19E/roller/0/pos"
|
|
set_position_topic: "shellies/shellyswitch25-76D19E/roller/0/command/pos"
|
|
payload_available: "true"
|
|
payload_not_available: "false"
|
|
qos: 1
|
|
retain: false
|
|
payload_open: "open"
|
|
payload_close: "close"
|
|
payload_stop: "stop"
|
|
position_open: 100
|
|
position_closed: 0
|
|
optimistic: false
|
|
- name: bedroom_cover_l
|
|
command_topic: "shellies/shellyswitch25-C4C361/roller/0/command"
|
|
position_topic: "shellies/shellyswitch25-C4C361/roller/0/pos"
|
|
set_position_topic: "shellies/shellyswitch25-C4C361/roller/0/command/pos"
|
|
payload_available: "true"
|
|
payload_not_available: "false"
|
|
qos: 1
|
|
retain: false
|
|
payload_open: "open"
|
|
payload_close: "close"
|
|
payload_stop: "stop"
|
|
position_open: 100
|
|
position_closed: 0
|
|
optimistic: false
|
|
|
|
|
|
sensor:
|
|
- platform: systemmonitor
|
|
resources:
|
|
- type: disk_use_percent
|
|
arg: /home
|
|
- type: memory_free
|
|
- type: last_boot
|
|
- platform: template
|
|
sensors:
|
|
# batt_multisensor:
|
|
#friendly_name: 'Battery Multisensor'
|
|
#value_template: '{{ states.zwave.aeon_labs_zw074_multisensor_gen5.attributes.battery_level }}'
|
|
#unit_of_measurement: '%'
|
|
ventil_wohnzimmer:
|
|
value_template: '{{states.climate.neq1493917.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_kueche:
|
|
value_template: '{{states.climate.neq0879536.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_schlafzimmer:
|
|
value_template: '{{states.climate.neq1412900.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_bad:
|
|
value_template: '{{states.climate.keq1041886.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_kinderzimmer:
|
|
value_template: '{{states.climate.neq1411043.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_studio:
|
|
value_template: '{{states.climate.qeq1461341.attributes.valve }}'
|
|
unit_of_measurement: '%'
|
|
ventil_gaestezimmer:
|
|
value_template: "{{state_attr('climate.000a18a99700a0', 'valve' )}}"
|
|
unit_of_measurement: '%'
|
|
sun_elevation:
|
|
value_template: '{{ states.sun.sun.attributes.elevation }}'
|
|
|
|
ccu_service_meldungen:
|
|
friendly_name: 'CCU Servicemeldungen'
|
|
value_template: '{{ states.homematic.ccu2.state | int }}'
|
|
|
|
remote_wohnzimmer_activity:
|
|
value_template: '{{ states.remote.harmony_hub_wohnzimmer.attributes.current_activity }}'
|
|
friendly_name: 'Wohnzimmer Harmony'
|
|
|
|
remote_schlafzimmer_activity:
|
|
value_template: '{{ states.remote.harmony_hub_schlafzimmer.attributes.current_activity }}'
|
|
friendly_name: 'Schlafzimmer Harmony'
|
|
|
|
sunset_time:
|
|
friendly_name: 'Sonnenuntergang'
|
|
value_template: '{{ ((as_timestamp(states.sun.sun.attributes.next_setting)) | timestamp_local) [11:16] }}'
|
|
|
|
sunrise_time:
|
|
friendly_name: 'Sonnenaufgang'
|
|
value_template: '{{ ((as_timestamp(states.sun.sun.attributes.next_rising)) | timestamp_local) [11:16] }}'
|
|
|
|
- platform: vdr
|
|
host: 192.168.178.200
|
|
timeout: 2
|
|
|
|
history:
|
|
include:
|
|
domains:
|
|
- sensor
|
|
- switch
|
|
|
|
recorder:
|
|
db_url: !secret mysql_connection
|
|
purge_keep_days: 7
|
|
exclude:
|
|
domains:
|
|
- automation
|
|
- updater
|
|
- script
|
|
- scene
|
|
entities:
|
|
- sun.sun # Don't record sun data
|
|
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
|
|
- sensor.date
|
|
- sensor.pihole_ads_blocked_today
|
|
- sensor.pihole_ads_percentage_blocked_today
|
|
- sensor.pihole_dns_queries_cached
|
|
- sensor.pihole_dns_queries_forwarded
|
|
- sensor.pihole_dns_queries_today
|
|
- sensor.pihole_dns_unique_clients
|
|
- sensor.pihole_dns_unique_domains
|
|
- sensor.pihole_domains_blocked
|
|
- media_player.fire_tv_schlafzimmer
|
|
- media_player.fire_tv_wohnzimmer
|
|
- sensor.aeon_labs_zw074_multisensor_gen5_burglar
|
|
- sensor.aeon_labs_zw074_multisensor_gen5_alarm_type
|
|
- group.tradfri
|
|
- sensor.dark_sky_icon
|
|
|
|
|
|
logger:
|
|
default: warning
|
|
logs:
|
|
homeassistant.components: warning
|
|
#homeassistant.components.automation: info
|
|
homeassistant.components.influxdb: warning
|
|
homeassistant.components.homematic: warning
|
|
homeassistant.components.http.ban: error
|
|
homeassistant.components.alexa: error
|
|
homeassistant.components.scripts: error
|
|
homeassistant.components.scenes: error
|
|
homeassistant.components.webhook: info
|
|
homeassistant.components.http: warning
|
|
pyhomematic: error
|
|
custom_components.vdr.media_player: error
|
|
pyvdr.svdrp: error
|
|
pyvdr: error
|
|
homeassistant.components.wake_on_lan: debug
|
|
homeassistant.components.harmony: error
|
|
homeassistant.components.device_tracker: error
|
|
fritzconnection: info
|