源文件我基本都没动,就修改了token和把airpurifier.替换成fan.xiaomi_miio_
检查配置提示:
Invalid config for [automation]: required key not provided @ data['action']. Got Nonerequired key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
7.复制xiaomi_air_purifier.yaml文件到packages文件夹
8.修改token和IP地址
9.修改后的前几行:
fan:
- platform: xiaomi_airpurifier
name: Xiaomi Air Purifier 2
host: 192.168.1.206
token: 6042ccbb45811c7160fad1d9eec4d921
保存后检测配置提示:
Invalid config for [automation]: required key not provided @ data['action']. Got Nonerequired key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/Platform not found: fan.xiaomi_airpurifier
10.再次修改xiaomi air_purifier.yaml文件:
把 - platform: xiaomi_airpurifier改成: - platform: xiaomi_miio保存后检测配置提示:
Invalid config for [automation]: required key not provided @ data['action']. Got Nonerequired key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
11.把xiaomi air_purifier.yaml文件中的三处airpurifier.替换成fan.xiaomi_miio_
保存后检测配置提示:(跟没改一样)
Invalid config for [automation]: required key not provided @ data['action']. Got Nonerequired key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
5.根据你的文件逐条更改尝试,均无效、
一直提示:
Invalid config for [automation]: required key not provided @ data['action']. Got Nonerequired key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
6.如去掉group:这一段的话,我的前台界面就改变了,开关分部到好几个位置,有些开关失效同样无法重启服务