我刚到家庭助理,但在码头有一些经验。我有英特尔NUC和想安装温控阀与zigbee。但我在第一步就失败了,那就是让家庭助理在码头工作,并且能够安装集成。
我想我是从本教程开始的。在此过程中,我可能会从多个教程中获得灵感。
因此,我的问题是,我没有看到检查配置报告错误的集成和停靠命令:
$ sudo docker exec homeassistant python -m homeassistant --script check_config --files
Testing configuration at /root/.homeassistant
yaml files (used / not used)
Failed config
General Errors:
- File configuration.yaml not found.
Successful config (partial)我可以看到家庭辅助容器上的配置文件,签入UI也不会引起任何问题。
$ sudo docker exec -it homeassistant bash
bash-5.1# pwd
/config
bash-5.1# ls -la | grep configuration.yaml
-rwxrwxrwx 1 1000 1000 418 Nov 11 18:42 configuration.yaml看起来类似的问题是这里,但答案已经被删除了。
这是我的compose.yaml
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home/mali/project/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
#Mosquitto
mosquitto:
container_name: mqtt
image: eclipse-mosquitto
ports:
- 1883:1883
# This port is for Webhooks
- 9001:9001
volumes:
- /home/mali/project/homeassistant/mosquitto/config:/mosquitto/config
- /home/mali/project/homeassistant/mosquitto/data:/mosquitto/data
- /home/mali/project/homeassistant/mosquitto/log:/mosquitto/log
#Zigbee2MQTT
zigbee2mqtt:
container_name: zigbee2mqtt
depends_on:
- mosquitto
image: koenkk/zigbee2mqtt
volumes:
- /home/mali/project/homeassistant/zigbee2mqtt/data:/app/data
- /run/udev:/run/udev:ro
ports:
# Frontend port
- 8080:8080
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
restart: always
privileged: true这是我的configuration.yaml文件:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
no_ip:
domain: {redacted}.no-ip.org
username: email@gmail.com
password: {redacted}请问我做错什么了?
发布于 2022-11-26 16:23:45
我看不懂:脸书:
测试配置在/root/.root助手上
它在不同的目录中寻找配置。所以我相信这是我应该使用的命令:
docker exec homeassistant python -m homeassistant --script check_config --config /confighttps://stackoverflow.com/questions/74583724
复制相似问题