ARC-MX / sgcc_electricity_new

HomeAssistant 国家电网电费查询
Apache License 2.0
254 stars 37 forks source link

按照示例添加实体报错 #13

Closed wjxyy closed 3 months ago

wjxyy commented 3 months ago

编辑/homeassistant/configuration.yaml文件,重启报错 Invalid config for 'template' at configuration.yaml, line 63: required key 'platform' not provided, 当前版本Core:2024.6.3 Supervisor:2024.06.0 Operating System:12.4 Frontend:20240610.1

wjxyy commented 3 months ago

大佬目前docker容器是正常运行也获取到了数据 image

ARC-MX commented 3 months ago

请参考文档,重新设置configuration,template下面是针对多用户的

wjxyy commented 3 months ago

大佬 请问修改的configuration 是项目中的 配置文件还是haos 中的配置文件,菜鸟刚接触,添麻烦了

ARC-MX commented 3 months ago

大佬 请问修改的configuration 是项目中的 配置文件还是haos 中的配置文件,菜鸟刚接触,添麻烦了

修改homeassistant里面的配置文件 原理相当于手动添加传感器,可以百度了解一下HA如何添加传感器

wjxyy commented 3 months ago

感谢大佬