homeassistant-config/config_creation/manual_config.yaml

578 lines
15 KiB
YAML
Raw Normal View History

2019-06-02 14:34:08 +02:00
# Configure a default setup of Home Assistant (frontend, api, etc)
#default_config:
frontend:
themes: !include_dir_merge_named themes
mobile_app:
person:
sun:
system_health:
2021-02-01 21:02:55 +01:00
#logbook:
2021-09-18 07:04:51 +02:00
input_boolean:
input_datetime:
input_number:
input_select:
input_text:
timer:
2019-06-02 14:34:08 +02:00
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
2021-09-18 07:04:51 +02:00
use_x_forwarded_for: true
trusted_proxies:
192.168.178.80
2019-06-02 14:34:08 +02:00
homeassistant:
name: MyHome
latitude: 49.369477
longitude: 10.9831468
2020-10-04 22:57:16 +02:00
external_url: https://ha.bauer.tech
internal_url: https://ha.bauer.tech
2019-06-30 21:16:53 +02:00
auth_mfa_modules:
- type: totp
2019-06-02 14:34:08 +02:00
2019-06-21 01:58:58 +02:00
customize:
cover.arbeitszimmer_rollo:
2019-06-21 01:58:58 +02:00
half_position: 16
cover.kinderzimmer_rollo:
2019-06-21 01:58:58 +02:00
half_position: 16
cover.schlafzimmer_rollo_gross:
half_position: 16
cover.schlafzimmer_rollo_klein:
half_position: 16
cover.esszimmer_fenster_rollo:
half_position: 25
cover.kuche_fenster_rollo:
half_position: 25
cover.wohnzimmer_fenster_rollo:
half_position: 25
cover.wohnzimmer_terrassentur_rollo:
half_position: 25
2021-10-05 13:22:27 +02:00
pyscript: !include pyscript/config.yaml
2019-11-30 17:14:40 +01:00
# enable configuration editor
config:
2020-10-04 22:57:16 +02:00
ffmpeg:
# using onvif instead
#camera:
# - platform: generic
# stream_source: rtsp://192.168.178.114:554/stream1
# name: BabyCameraHiRes
# username: camera
# password: !secret camera_pw
# verify_ssl: false
# - platform: generic
# stream_source: rtsp://192.168.178.114:554/stream2
# name: BabyCameraLowRes
# username: camera
# password: !secret camera_pw
#
2019-07-03 22:06:11 +02:00
zone:
- name: Uni
latitude: 49.573626
longitude: 11.029467
radius: 30
icon: mdi:office-building
owntracks:
max_gps_accuracy: 200
waypoints: false
discovery:
ignore:
- philips_hue
history:
exclude:
domains:
- automation
- updater
- scene
2020-06-06 18:04:06 +02:00
influxdb:
host: a0d7b954-influxdb
port: 8086
database: home_assistant
username: home_assistant
password: home_assistant
max_retries: 3
default_measurement: state
ios:
2021-09-18 07:04:51 +02:00
octoprint:
- host: 192.168.178.134
api_key: !secret octopi_api_key
name: PrusaPrinter
number_of_tools: 1
bed: true
telegram_bot:
2019-07-15 21:42:40 +02:00
- platform: webhooks
parse_mode: html
2019-07-15 22:02:40 +02:00
url: https://ha.bauer.tech
api_key: !secret telegram_token
allowed_chat_ids:
- !secret telegram_chatid_martin
2019-07-15 21:42:40 +02:00
trusted_networks:
2019-07-15 22:02:40 +02:00
- 127.0.0.1/32
- 192.168.178.80
2019-07-15 21:42:40 +02:00
- 149.154.167.197/32
- 149.154.167.198/31
- 149.154.167.200/29
- 149.154.167.208/28
- 149.154.167.224/29
- 149.154.167.232/31
notify:
- name: telegram_martin
platform: telegram
chat_id: !secret telegram_chatid_martin
2019-06-21 01:58:58 +02:00
# Custom stuff
2019-06-19 16:12:22 +02:00
dimmer:
2019-06-21 01:58:58 +02:00
cover_half:
counter:
licht_szene_oben_counter:
initial: 0
step: 1
switch:
- platform: httpsispmctl
name: esszimmer_oben_radio_steckdose
host: esszimmerradio.fritz.box
num_power_plugs: 4
2020-04-26 15:27:53 +02:00
long_click:
duration: 0.6
2020-04-26 15:27:53 +02:00
switches:
- switch.esszimmer_szene_0
- switch.esszimmer_szene_1
- switch.esszimmer_szene_2
- switch.esszimmer_szene_3
- switch.esszimmer_szene_4
- switch.esszimmer_szene_5
- switch.wohnzimmer_szene_0
- switch.wohnzimmer_szene_1
- switch.wohnzimmer_szene_2
- switch.wohnzimmer_szene_3
- switch.wohnzimmer_szene_4
- switch.wohnzimmer_szene_5
2021-10-05 13:22:27 +02:00
- switch.wohnzimmer_terrassentur_szene_2
- switch.wohnzimmer_terrassentur_szene_3
2020-04-26 15:27:53 +02:00
- switch.eingang_szene_2
- switch.eingang_szene_3
- switch.eingang_szene_4
- switch.eingang_szene_5
2019-06-19 16:12:22 +02:00
2021-10-05 13:22:27 +02:00
logger:
default: info
logs:
custom_components: info
# #custom_components.reconnecting_client: debug
#
2019-06-02 14:34:08 +02:00
# Sensors
#sensor:
# Weather prediction
# - platform: yr
tts:
2019-06-19 16:12:22 +02:00
- platform: watson_tts
watson_apikey: !secret watson_api_key
2019-06-19 16:12:22 +02:00
watson_url: https://gateway-lon.watsonplatform.net/text-to-speech/api
voice: de-DE_BirgitVoice
output_format: audio/flac
output_audio_rate: 44100
2019-06-02 14:34:08 +02:00
2020-10-04 22:57:16 +02:00
alexa:
smart_home:
locale: de-DE
#endpoint: https://api.eu.amazonalexa.com/v3/events
#client_id: amzn1.application-oa2-client.a4de8a70130c4f9383b277044f07a3af
#client_secret: !secret alexa_client_secret
filter:
include_entities:
# Light Groups
#- light.kuche_esszimmer_lichter
#- light.arbeitszimmer_lichter
# Arbeitszimmer
- light.arbeitszimmer_deckenlampe
- light.arbeitszimmer_fluter
- light.arbeitszimmer_stehlampe_unten
- light.arbeitszimmer_stehlampe_oben
- cover.arbeitszimmer_rollo
- scene.arbeitszimmer_orange
- scene.arbeitszimmer_blau_grun
- scene.arbeitszimmer_hell
# Gang
- light.gang_bogen
- light.gang_licht
- light.gang_einganglicht
# Wohnbereich
- cover.wohnzimmer_fenster_rollo
- cover.wohnzimmer_terrassentur_rollo
- cover.kuche_fenster_rollo
- cover.esszimmer_fenster_rollo
entity_config:
cover.arbeitszimmer_rollo:
display_categories: EXTERIOR_BLIND
cover.wohnzimmer_fenster_rollo:
display_categories: EXTERIOR_BLIND
cover.wohnzimmer_terrassentur_rollo:
display_categories: EXTERIOR_BLIND
cover.esszimmer_fenster_rollo:
display_categories: EXTERIOR_BLIND
2020-10-04 22:57:16 +02:00
homekit:
name: !secret homekit_name
filter:
include_entities:
2020-10-05 23:04:22 +02:00
# -- Arbeitszimmer
2020-10-04 22:57:16 +02:00
- light.arbeitszimmer_deckenlampe
- light.arbeitszimmer_fluter
- light.arbeitszimmer_stehlampe_unten
- light.arbeitszimmer_stehlampe_oben
- cover.arbeitszimmer_rollo
- scene.arbeitszimmer_orange
- scene.arbeitszimmer_blau_grun
- scene.arbeitszimmer_hell
2020-10-05 23:04:22 +02:00
# -- Gang
2020-10-04 22:57:16 +02:00
- light.gang_bogen
- light.gang_licht
- light.gang_einganglicht
2020-10-05 23:04:22 +02:00
# -- Wohnbereich
- light.wohnzimmer_deckenlampe
- light.kuche_deckenlampe
- light.esszimmer_deckenlampe_west
- light.esszimmer_deckenlampe_mitte
2020-10-04 22:57:16 +02:00
- cover.wohnzimmer_fenster_rollo
- cover.wohnzimmer_terrassentur_rollo
- cover.kuche_fenster_rollo
- cover.esszimmer_fenster_rollo
2020-10-05 23:04:22 +02:00
- light.wohnzimmer_lichter
- light.essbereich_lichter
- light.wohnbereich_deckenlampen
- scene.wohnbereich_orange
- scene.wohnbereich_blau_grun
- scene.wohnbereich_grun
- scene.wohnbereich_hell
- scene.wohnbereich_kuscheln
- light.wohnzimmer_kugel
- light.wohnzimmer_regal_links
- light.wohnzimmer_regal_rechts
- light.wohnzimmer_stehlampe
- light.wohnzimmer_stehlampe_oben
- light.kuche_links
- light.kuche_rechts
- light.kuche_vorne
# -- Draussen
- light.garten_lichter
- light.garten_spot_birke
- light.garten_spot_magnolie
- light.garten_spot_beet
- light.garten_stehleuchte
- light.aussen_terassenlicht
# -- Schlafzimmer
- light.schlafzimmer_deckenlampe
- light.schlafzimmer_fluter
- light.bett_martin
- light.bett_rebecca
- light.schlafzimmer_schrank
- cover.schlafzimmer_rollo_gross
- cover.schlafzimmer_rollo_klein
- scene.schlafzimmer_stillen
- scene.schlafzimmer_bettlicht_dunkel
- scene.schlafzimmer_blau
- scene.schlafzimmer_einschlaflicht
- scene.schlafzimmer_ganz_hell
- scene.schlafzimmer_orange
- scene.schlafzimmer_rot
- script.bedroom_music_off_20
- script.bedroom_music_off_30
- script.bedroom_music_off_45
- script.bedroom_music_off_60
- script.bedroom_waves
- script.bedroom_rain
- script.bedroom_sleep_music_long
- script.bedroom_sleep_music_short
# -- Bad
- light.bad_licht
- switch.bad_lufter
# -- Kinderzimmer
- light.kinderzimmer_deckenlampe
- cover.kinderzimmer_rollo
2020-10-04 22:57:16 +02:00
google_assistant:
project_id: homeassistant-d3afc
service_account: !include google_assistant_service_account.json
report_state: true
expose_by_default: false
entity_config:
# Arbeitszimmer
light.arbeitszimmer_deckenlampe:
room: Arbeitszimmer
light.arbeitszimmer_fluter:
room: Arbeitszimmer
light.arbeitszimmer_stehlampe_unten:
room: Arbeitszimmer
light.arbeitszimmer_stehlampe_oben:
room: Arbeitszimmer
cover.arbeitszimmer_rollo:
room: Arbeitszimmer
scene.arbeitszimmer_orange:
room: Arbeitszimmer
scene.arbeitszimmer_blau_grun:
room: Arbeitszimmer
scene.arbeitszimmer_hell:
room: Arbeitszimmer
# Gang
light.gang_bogen:
room: Gang
light.gang_licht:
room: Gang
light.gang_einganglicht:
room: Gang
# Wohnbereich
cover.wohnzimmer_fenster_rollo:
room: Wohnbereich
cover.wohnzimmer_terrassentur_rollo:
room: Wohnbereich
cover.kuche_fenster_rollo:
room: Wohnbereich
cover.esszimmer_fenster_rollo:
room: Wohnbereich
knx: !include knx_conf.yaml
2019-06-02 14:34:08 +02:00
2021-09-18 07:04:51 +02:00
homematic:
interfaces:
rf:
host: de838cd8-raspberrymatic
port: 2001
resolvenames: json
username: homeassistant
password: !secret homematic_pw
wired:
host: de838cd8-raspberrymatic
port: 2000
resolvenames: json
username: homeassistant
password: !secret homematic_pw
hmip:
host: de838cd8-raspberrymatic
port: 2010
resolvenames: json
username: homeassistant
password: !secret homematic_pw
groups:
host: de838cd8-raspberrymatic
port: 9292
resolvenames: json
username: homeassistant
password: !secret homematic_pw
path: /groups
hosts:
raspberrymatic:
host: de838cd8-raspberrymatic
username: homeassistant
password: !secret homematic_pw
2022-08-28 22:33:35 +02:00
#zwave:
# usb_path: /dev/serial/by-id/usb-0658_0200-if00
# network_key: "0xE0, 0x64, 0x50, 0x55, 0x20, 0x63, 0xC7, 0x05, 0x62, 0xD3, 0xEA, 0x91, 0x87, 0xE0, 0x1E, 0x74"
2020-01-02 21:26:37 +01:00
2019-06-02 14:34:08 +02:00
sysdweb:
- host: kitchenpi.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- lircd
- squeezelite
- shairport-sync
- dht22_sensing
2020-06-06 18:04:06 +02:00
- host: bedroompi.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- lircd
- squeezelite
- shairport-sync
- dht22_sensing
- host: esszimmerradio.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- lircd
- squeezelite
- shairport-sync
- sispmctl
- host: musikserverwohnzimmeroben.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- irserver
- squeezelite
- shairport-sync
- dht22_sensing
- logitechmediaserver
lirc_network:
- host: kitchenpi.fritz.box
port: 2222
- host: bedroompi.fritz.box
port: 2222
- host: esszimmerradio.fritz.box
2020-06-06 18:04:06 +02:00
port: 2222
- host: musikserverWohnzimmerOben.fritz.box
2019-11-30 16:56:49 +01:00
port: 8765
2020-04-19 15:59:51 +02:00
binary_sensor:
- platform: lirc_network # sensor to show for each host if it is currently connected
- platform: sysdweb
2020-10-04 22:57:16 +02:00
- platform: ffmpeg_noise
input: rtsp://camera:1238djie!d24yu@babycamera:554/stream2
extra_arguments: -filter:a highpass=f=300,lowpass=f=2500,volume=volume=2
initial_state: false
duration: 2
reset: 60
2019-06-19 16:12:22 +02:00
media_player:
2019-06-23 20:38:58 +02:00
- platform: squeezebox_telnet
host: server.fritz.box
- platform: squeezebox_telnet
host: musikserverWohnzimmerOben.fritz.box
2019-06-19 16:12:22 +02:00
2022-09-30 21:21:11 +02:00
#mqtt:
# sensor:
# - state_topic: 'monitor/kitchen/martin_handy'
# value_template: '{{ value_json.confidence }}'
# unit_of_measurement: '%'
# name: 'bluetooth_martin_handy_kitchen'
# - state_topic: 'monitor/kitchen/martin_ipad'
# value_template: '{{ value_json.confidence }}'
# unit_of_measurement: '%'
# name: 'bluetooth_martin_ipad_kitchen'
2019-11-30 17:55:30 +01:00
sensor:
- platform: template
sensors:
motion_combined:
friendly_name: Bewegung
value_template: >
2020-06-06 18:04:06 +02:00
{%- set pirs = {'Gang Mitte': states.binary_sensor.gang_bewegungsmelder_mitte,
2019-11-30 17:55:30 +01:00
'Eingang': states.binary_sensor.gang_bewegungsmelder_ost,
'Gang Hinten': states.binary_sensor.gang_bewegungsmelder_schlafzimmer,
'Gang Wohnzimmer': states.binary_sensor.gang_bewegungsmelder_wohnzimmer} %}
{% for pir_name, pir in pirs.items() %}
{% if as_timestamp(pir.last_changed) == as_timestamp(pirs.values() | map(attribute='last_changed') | max) %}
{{ pir_name }}
{% endif %}
{% endfor %}
2019-12-01 12:49:41 +01:00
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'date_time_iso'
- 'time_date'
- platform: history_stats
name: Pool Pumpe Heute
2020-10-04 22:57:16 +02:00
entity_id: switch.poolpumpesteckdose
type: time
state: 'on'
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Pool Pumpe Gestern
2020-10-04 22:57:16 +02:00
entity_id: switch.poolpumpesteckdose
type: time
state: 'on'
start: '{{ as_timestamp(now().replace(hour=0).replace(minute=0).replace(second=0)) - (60*60 * 24) }}'
end: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
2019-06-02 14:34:08 +02:00
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
2021-02-01 21:02:55 +01:00
scene: !include scenes.yaml
scene old: !include_dir_merge_list scenes
# Light groups
light:
- platform: group
2020-10-05 23:04:22 +02:00
name: Essbereich Lichter
entities:
- light.kuche_deckenlampe
- light.esszimmer_deckenlampe_west
- light.esszimmer_deckenlampe_mitte
- light.kuche_links
- light.kuche_rechts
- light.kuche_vorne
- platform: group
name: Wohnzimmer Lichter
entities:
- light.wohnzimmer_deckenlampe
- light.wohnzimmer_kugel
- light.wohnzimmer_stehlampe
- light.wohnzimmer_stehlampe_oben
- light.wohnzimmer_regal_rechts
- light.wohnzimmer_regal_links
2020-10-05 23:04:22 +02:00
- platform: group
name: Wohnbereich Deckenlampen
entities:
- light.wohnzimmer_deckenlampe
- light.kuche_deckenlampe
- light.esszimmer_deckenlampe_west
- light.esszimmer_deckenlampe_mitte
- platform: group
name: Garten Lichter
entities:
2021-10-05 13:22:27 +02:00
- light.garten_vorne
- light.garten_spot_magnolie
- light.garten_spot_beet
- light.garten_stehleuchte
- light.aussen_terassenlicht
2020-10-04 22:57:16 +02:00
- platform: group
name: Arbeitszimmer Lichter
entities:
- light.arbeitszimmer_deckenlampe
- light.arbeitszimmer_fluter
- light.arbeitszimmer_stehlampe_unten
- light.arbeitszimmer_stehlampe_oben
- platform: group
name: Wohnbereich Lichter
entities:
- light.kuche_deckenlampe
- light.esszimmer_deckenlampe_west
- light.esszimmer_deckenlampe_mitte
- light.kuche_links
- light.kuche_rechts
- light.kuche_vorne
- light.wohnzimmer_deckenlampe
- light.wohnzimmer_kugel
- light.wohnzimmer_stehlampe
- light.wohnzimmer_stehlampe_oben
- light.wohnzimmer_regal_rechts
- light.wohnzimmer_regal_links