本帖最后由 riceball 于 2022-4-24 20:29 编辑
没有加日志就加上:
# Example configuration entry
logger:
level: DEBUG
远程查看日志: 如果没有用 HA ESPHome 编译,那么就在 HA ESPHome addon上 新建一个设备,名字与你esp配置的name一样就成. 点 logs
或者:
esphome logs bluegateway2M.yaml
NFO Reading configuration bluegateway2M.yaml...
Found multiple options, please choose one:
[1] /dev/ttyUSB0 (USB Serial)
[2] Over The Air (blegateway2.local)
(number): 2
INFO Starting log output from blegateway2.local using esphome API
本地PC查看, 连上TTL:
esphome logs bluegateway2M.yaml --device /dev/ttyUSB0
|