|
求助(格式肯定没有问题的,把语句换成别的不会报错,用上{% xxx %}就错了)
message: >
{%for sens in states.sensor%}
{{sens.name}}剩余电量{{sens.state_with_unit}}
{%endfor%}电量不足{{now().strftime('%s')|int | timestamp_custom('%Y-%m-%d %H:%M:%S')}} !!!
这句话有什么问题呢?会导致配置检测不通过:
错误信息如下:
Testing configuration at /config
2018-02-22 11:50:17 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning for the next token
found character '%' that cannot start any token
in "/config/automations.yaml", line 527, column 16
2018-02-22 11:50:17 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while scanning for the next token
found character '%' that cannot start any token
in "/config/automations.yaml", line 527, column 16 |
|