133 lines
3.7 KiB
YAML
133 lines
3.7 KiB
YAML
# Configure a default setup of Home Assistant (frontend, api, etc)
|
|
default_config:
|
|
|
|
# Text to speech
|
|
tts:
|
|
- platform: google_translate
|
|
|
|
group: !include groups.yaml
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
shell_command: !include shell_commands.yaml
|
|
|
|
switch:
|
|
- platform: wake_on_lan
|
|
name: "mini PC"
|
|
host: "192.168.178.138"
|
|
mac: "9c:6b:00:8b:3c:20"
|
|
turn_off:
|
|
service: shell_command.turn_off_remote_pc
|
|
- platform: template
|
|
switches:
|
|
comfyui:
|
|
friendly_name: "comfyui"
|
|
turn_on:
|
|
service: shell_command.start_comfy_ui
|
|
turn_off:
|
|
service: shell_command.stop_comfy_ui
|
|
|
|
#MQTT Broker for milight hub:
|
|
mqtt:
|
|
sensor:
|
|
- name: 'Temperature'
|
|
state_topic: 'living/sensor1'
|
|
unit_of_measurement: '°C'
|
|
value_template: '{{ value_json.temperature }}'
|
|
|
|
- name: 'Humidity'
|
|
state_topic: 'living/sensor1'
|
|
unit_of_measurement: '%'
|
|
value_template: '{{ value_json.humidity }}'
|
|
|
|
- name: 'Temperature 2'
|
|
state_topic: 'living/sensor2'
|
|
unit_of_measurement: '°C'
|
|
value_template: '{{ value_json.temperature }}'
|
|
|
|
|
|
- name: 'Humidity 2'
|
|
state_topic: 'living/sensor2'
|
|
unit_of_measurement: '%'
|
|
value_template: '{{ value_json.humidity }}'
|
|
|
|
- name: 'Humidity 3'
|
|
state_topic: 'living/sensor2'
|
|
unit_of_measurement: '%'
|
|
value_template: '{{ value_json.soilhumidity }}'
|
|
|
|
- name: 'Battery'
|
|
state_topic: 'living/sensor2'
|
|
unit_of_measurement: 'mV'
|
|
value_template: '{{ value_json.battery }}'
|
|
|
|
switch:
|
|
- name: "Schalter 1 Schreibtisch"
|
|
command_topic: living/plug
|
|
payload_on: "83029"
|
|
payload_off: "83028"
|
|
|
|
- name: "Schalter 2 HerrBert"
|
|
command_topic: living/plug
|
|
payload_on: "86101"
|
|
payload_off: "86100"
|
|
|
|
- name: "Schalter 3 Schlafzimmer TV"
|
|
command_topic: living/plug
|
|
payload_on: "70741"
|
|
payload_off: "70740"
|
|
|
|
- name: "Steckdose 4"
|
|
command_topic: living/plug
|
|
payload_on: "21589"
|
|
payload_off: "21588"
|
|
|
|
- name: "Pumpe"
|
|
command_topic: greenhousino/pump
|
|
state_topic: greenhousino/pumpstate
|
|
payload_on: "90000"
|
|
payload_off: "off"
|
|
|
|
influxdb:
|
|
host: ubuntu
|
|
port: 8086
|
|
ssl: false
|
|
token: "MjGXMQ8jLgHIZO9XnsvNS2PcmHGPpBv8Sw4bOQ3zHlPXWqho7XdB2noCJTCvrLeyUutlzeVFGessITIohVGJsg=="
|
|
api_version: 2
|
|
max_retries: 3
|
|
organization: 2d63e573ec9147ee
|
|
bucket: homeassistant
|
|
tags:
|
|
source: HA
|
|
tags_attributes:
|
|
- friendly_name
|
|
default_measurement: units
|
|
|
|
# enable the recorder integration (optional)
|
|
recorder:
|
|
|
|
|
|
http:
|
|
# For extra security set this to only accept connections on localhost if NGINX is on the same machine
|
|
# Uncommenting this will mean that you can only reach Home Assistant using the proxy, not directly via IP from other client
|
|
ip_ban_enabled: false
|
|
login_attempts_threshold: 100
|
|
use_x_forwarded_for: true
|
|
# You must set the trusted proxy IP address so that Home Assistant will properly accept connections
|
|
# Set this to your NGINX machine IP, or localhost if hosted on the same machine.
|
|
trusted_proxies: 192.168.178.0/24
|
|
|
|
auth_header:
|
|
username_header: X-authentik-username
|
|
# Optionally set this if you're not using authentik proxy or oauth2_proxy
|
|
# username_header: X-Forwarded-Preferred-Username
|
|
# Optionally set this if you don't want to bypass the login prompt
|
|
#allow_bypass_login: false
|
|
# Optionally enable debug mode to see the headers Home-Assistant gets
|
|
debug: true
|
|
# Optionally, if something is not working right, add this block below to get more information
|
|
logger:
|
|
default: info
|
|
logs:
|
|
custom_components.auth_header: debug
|