home-automation-home-assistant/configuration.yaml

313 lines
7.0 KiB
YAML

homeassistant:
name: Home
latitude: !secret home_lat
longitude: !secret home_long
elevation: !secret home_elevation
unit_system: metric
time_zone: Europe/Berlin
customize: !include_dir_merge_named config/customizations/
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- ::1
- 192.168.0.0/16
- fd00::/8
frontend:
themes: !include_dir_merge_named themes/
http:
ip_ban_enabled: true
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- ::1
lovelace:
mode: yaml
zone:
- name: !secret work_name_f
latitude: !secret work_lat_f
longitude: !secret work_long_f
radius: 250
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:
config:
updater:
#discovery:
conversation:
tts:
- platform: google_translate
service_name: google_say
history:
logbook:
map:
recorder:
influxdb:
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
#deconz:
# host: !secret deconz_ip
# port: !secret deconz_port
zha:
usb_path: /dev/ttyACM0
radio_type: deconz
database_path: /config/zigbee.db
emulated_roku:
servers:
- name: Home Assistant
listen_port: 8060
mqtt:
broker: !secret mqtt_broker_ip
username: !secret mqtt_username
password: !secret mqtt_password
mqtt_eventstream:
publish_topic: homeassistant/master
subscribe_topic: homeassistant-slaves/#
ignore_event:
- call_service
- state_changed
mobile_app:
telegram_bot:
- platform: broadcast
api_key: !secret telegram_bot
parse_mode: markdown
allowed_chat_ids:
- !secret telegram_chat_fb
- !secret telegram_chat_group
notify:
- name: telegram_group
platform: telegram
chat_id: !secret telegram_chat_group
- name: telegram_fb
platform: telegram
chat_id: !secret telegram_chat_fb
# - name: android
# platform: fcm-android
media_player:
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: androidtv
device_class: firetv
name: Fire TV
host: !secret firetv_ip
adbkey: !secret adbkey
get_sources: true
remote:
- platform: harmony
name: Livingroom Harmony
host: !secret harmonyhub_ip
delay_secs: 0.3
sun:
person:
- name: Jenny
id: jenny
- name: Florian
id: florian
device_trackers:
- device_tracker.fb_mobile_bt
- device_tracker.mobile_fb
device_tracker:
light:
- platform: hyperion
name: Ambilight
host: !secret ambilight_ip
hdmi_priority: 900
- platform: switch
name: Stimmungslicht
entity_id: switch.livingroom_stimmungslicht
binary_sensor:
- 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: 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
- platform: template
sensors:
anyone_home:
value_template: >-
{{ is_state('person.florian', 'home')
or is_state('person.jenny', 'home') }}
- 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
weather:
- platform: openweathermap
api_key: !secret openweathermap
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
stream:
camera:
- 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
input_datetime:
bedroom_alarm_clock_time:
name: Wecker
has_date: false
has_time: true
alarm_control_panel:
- platform: manual
name: Home Alarm
code: !secret alarm_code
code_arm_required: true
delay_time: 20
pending_time: 30
trigger_time: 120
disarm_after_trigger: false
disarmed:
trigger_time: 0
armed_home:
pending_time: 0
delay_time: 0
armed_night:
pending_time: 0
delay_time: 0
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:
chronograf:
title: 'Chronograf'
url: !secret url_chronograf
icon: mdi:monitor-dashboard
esphome:
title: 'ESPHome'
url: !secret url_esphome
icon: mdi:chip
tplink:
discovery: false
switch:
- host: !secret tplink_ip
alert: !include_dir_merge_list config/alerts/
alexa: !include config/alexa.yaml
automation: !include_dir_merge_list config/automations/
scene: !include_dir_merge_list config/scenes/
script: !include config/scripts.yaml
sensor: !include_dir_merge_list config/sensors/
switch: !include config/switches.yaml