homeassistant/configuration.yaml
2025-11-04 15:28:05 +01:00

94 lines
2.0 KiB
YAML

# Configure a default setup of Home Assistant (frontend, api, etc)
# default_config:
shell_command:
blue_led_off: /bin/echo none > /sys/class/leds/c2:blue:alive/trigger
# Text to speech
tts:
- platform: google_translate
language: "cs"
# Example configuration.yaml entry
google_assistant:
project_id: home-assistant-65612
service_account: !include home-assistant-65612-d69ecfd0f735.json
report_state: true
homeassistant:
packages: !include_dir_named packages
automation: !include automations.yaml
#template: !include template.yaml
sensor: !include sensors.yaml
# climate: !include GreeClimateComponent-climate.yaml
# var: !include var.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.88.102 # LXC
# - 192.168.88.110 # Docker
logger:
default: info
logs:
custom_components.xiaomi_cloud_map_extractor: debug
# MariaDB - 30 day data
recorder:
db_url: !secret mariadb_url
purge_keep_days: 7
commit_interval: 20
history:
# InfluxDB - Long-term data
influxdb:
api_version: 2
ssl: false
host: 192.168.88.112
port: 8086
token: !secret influxdb_token
organization: habad
bucket: homeassistant
tags:
source: HomeAssistant
tags_attributes:
- friendly_name
default_measurement: units
# Obývák / hlavní světlo
light:
- platform: group
name: Obývák
entities:
- light.livingroom_mainlight_aquarium
- light.livingroom_mainlight_gramophone
- light.livingroom_mainlight_library
- light.livingroom_mainlight_fireplace
camera:
- platform: xiaomi_cloud_map_extractor
host: !secret xiaomi_vacuum_host
token: !secret xiaomi_vacuum_token
username: !secret xiaomi_cloud_username
password: !secret xiaomi_cloud_password
draw: ["all"]
attributes:
- calibration_points
map_transformation:
scale: 2
rotate: 90
trim:
top: 20
bottom: 20
left: 20
right: 20
scan_interval:
seconds: 300
auto_update: false
store_map_raw: true
store_map_image: true
store_map_path: "/tmp"