- 积分
- 480
- 金钱
- 395
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 480
- 金钱
- 395
- HASS币
- 0
|
问个小白的问题,我添加小米空气净化器2s写了如下代码生成一个yaml配置文件:fan:
- platform : xiaomi_miio
name : Xiaomi Air Purifier 2
host : 192.168.10.198
token : 008a49829fe93b73eca659d1efd6e8d2
model : zhimi.airpurifier.ma2
放入pack文件夹,启动hass报错如下:
2020-04-06 15:44:36 INFO (MainThread) [homeassistant.bootstrap] Config directory: /config
| stdout
|
07:44:36
| 2020-04-06 15:44:36 ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] while parsing a block collection
| stdout
|
07:44:36
| in "/config/packages/2s.yaml", line 2, column 3
| stdout
|
07:44:36
| expected <block end>, but found '<block mapping start>'
| stdout
|
07:44:36
| in "/config/packages/2s.yaml", line 3, column 5
| stdout
|
07:44:36
| 2020-04-06 15:44:36 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: while parsing a block collection
| stdout
|
07:44:36
| in "/config/packages/2s.yaml", line 2, column 3
| stdout
|
07:44:36
| expected <block end>, but found '<block mapping start>'
| stdout
|
[backcolor=rgb(222, 236, 252) !important]07:44:36
| in "/config/packages/2s.yaml", line 3, column 5. Activating safe mode
| stdout
|
,不知道怎么解决
还有一个问题,是不是米家的东西不需要在hass另外添加组件,直接写好配置文件就能用的?》
|
|