首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >码头的家庭助理找不到configyration.yaml

码头的家庭助理找不到configyration.yaml
EN

Stack Overflow用户
提问于 2022-11-26 16:11:44
回答 1查看 18关注 0票数 0

我刚到家庭助理,但在码头有一些经验。我有英特尔NUC和想安装温控阀与zigbee。但我在第一步就失败了,那就是让家庭助理在码头工作,并且能够安装集成。

我想我是从本教程开始的。在此过程中,我可能会从多个教程中获得灵感。

因此,我的问题是,我没有看到检查配置报告错误的集成和停靠命令:

代码语言:javascript
复制
$ 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也不会引起任何问题。

代码语言:javascript
复制
$ 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

代码语言:javascript
复制
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文件:

代码语言:javascript
复制
# 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}

请问我做错什么了?

EN

回答 1

Stack Overflow用户

发布于 2022-11-26 16:23:45

我看不懂:脸书:

测试配置在/root/.root助手

它在不同的目录中寻找配置。所以我相信这是我应该使用的命令:

代码语言:javascript
复制
docker exec homeassistant python -m homeassistant --script check_config --config /config
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74583724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档