本帖最后由 buttercat 于 2022-7-21 09:24 编辑
遇到同样的问题,env "ESPHOME_DASHBOARD_USE_PING=true" 没用
我用的解决方法是与esphome 一起装一个 flungo/avahi 并且 enable REFLECTOR_ENABLE_REFLECTOR
识别esphome device online 正常
这个是我的 docker-compose yaml
esphome:
container_name: esphome
image: esphome/esphome
network_mode: host
# ports:
# - 6052
volumes:
- ./esphome/config:/config:rw
- ./esphome/cache:/cache:rw
environment:
# - ESPHOME_DASHBOARD_USE_PING="true"
- PLATFORMIO_CORE_DIR=/cache/platformio
- PLATFORMIO_GLOBALLIB_DIR=/cache/platformio/lib
- PLATFORMIO_SETTING_ENABLE_TELEMETRY=No
- PLATFORMIO_SETTING_CHECK_PLATFORMIO_INTERVAL=665
- PLATFORMIO_SETTING_CHECK_PLATFORMS_INTERVAL=666
- PLATFORMIO_SETTING_CHECK_LIBRARIES_INTERVAL=667
user: "${PUID}:${PGID}"
restart: unless-stopped
avahi:
container_name: avahi
image: flungo/avahi:latest
restart: "always"
network_mode: bridge
environment:
- EFLECTOR_ENABLE_REFLECTOR=yes
|