本帖最后由 airwb 于 2022-12-8 20:46 编辑
最近ha连续报错
Logger: homeassistant.components.command_line
Source: components/command_line/__init__.py:48
Integration: command_line (documentation, issues)
First occurred: 19:02:49 (97 occurrences)
Last logged: 20:38:50
Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
不太懂啥意思,通过英文翻译,可能是命令行错误,但不知道怎么进一步查找问题,麻烦坛子大佬指明解决方案
下面是yaml文件中的代码
# CPU 温度
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
代码是抄作业抄的,是不是代码有问题?
|