在那引入?我的configuration.yaml
homeassistant:
name: Home
latitude: !secret homeassistant_latitude
longitude: !secret homeassistant_longitude
elevation: !secret homeassistant_elevation
unit_system: metric
time_zone: Asia/Shanghai
packages: !include_dir_named packages/
allowlist_external_dirs:
['/config/']
whitelist_external_dirs:
- /config
media_dirs:
local: /media
rest: !include rest.yaml
template: !include template.yaml
frontend:
themes: !include_dir_merge_named themes
default_config:
energy:
history:
ios:
mobile_app:
media_source:
sun:
system_health:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.0.0.0/8
- 192.168.2.0/24
lovelace:
mode: yaml
resources:
# mushroom hacs
- url: /hacsfiles/chineseholiday_card/ch_calendar-card.js
type: module
- url: /hacsfiles/lovelace-colorfulclouds-weather-card/colorfulclouds-weather-card.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/lovelace-mushroom/mushroom.js
type: module
- url: /hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js
type: module
- url: /hacsfiles/stack-in-card/stack-in-card.js
type: module
- url: /hacsfiles/vertical-stack-in-card/vertical-stack-in-card.js
type: module
# tablet hacs
- url: /hacsfiles/apexcharts-card/apexcharts-card.js
type: module
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/custom-icons/custom-icons.js
type: module
- url: /hacsfiles/flipdown-timer-card/flipdown-timer-card.js
type: module
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/lovelace-hui-element/hui-element.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/PlexMeetsHomeAssistant/plex-meets-homeassistant.js
type: module
- url: /hacsfiles/secondaryinfo-entity-row/secondaryinfo-entity-row.js
type: module
- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js
type: module
- url: /hacsfiles/swipe-card/swipe-card.js
type: module
- url: /hacsfiles/vacuum-card/vacuum-card.js
type: module
- url: /hacsfiles/weather-card/weather-card.js
type: module
- url: '/local/ui/js/curtain-card.js'
type: module
dashboards:
lovelace-phone:
mode: yaml
title: 手机
icon: hass:cellphone
show_in_sidebar: true
filename: dashboards/phone/mushroom.yaml
lovelace-tablet:
mode: yaml
title: 平板
icon: hass:tablet
show_in_sidebar: true
filename: dashboards/tablet/ui-tablet.yaml
logger:
default: warning
filters:
pyhap.characteristic:
- "SecuritySystemCurrentState: value=0 is an invalid value."
- "SecuritySystemTargetState: value=0 is an invalid value."
- "TargetHeatingCoolingState: value=0 is an invalid value."
logs:
homeassistant.components.command_line: fatal
homeassistant.components.command_line.sensor: error
homeassistant.components.homekit.type_media_players: error
homeassistant.components.media_player: error
homeassistant.components.rest.sensor: error
homeassistant.components.websocket_api: fatal
homeassistant.helpers.entity: error
homeassistant.helpers.event: fatal
homeassistant.helpers.service: error
alarm_control_panel:
- platform: manual
name: Home Alarm
code: !secret alarm_code
arming_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
recorder:
#需要保存的天数
purge_keep_days: 30
#db_url: mysql://账户:密码@ip地址:端口/数据库名字
# db_url: !secret mariadb_url
#排除日志
exclude:
entities:
- media_player.yun_yin_le_homepod_mini
- media_player.yun_yin_le_mpd
timer:
laundry:
duration: "00:01:00"
tts:
- platform: edge_tts
language: zh-CN # 默认语言或声音 zh_CN(zh-CN-XiaoxiaoNeural)
- platform: baidu
app_id: !secret baidutts_id
api_key: !secret baidutts_api_key
secret_key: !secret baidutts_secret_key
|