scp10011 / xiaomi_toiletlid

hass tinymu toiletlid
3 stars 3 forks source link

不能使用啊,不知道为什么? #4

Closed maybeloveu closed 4 years ago

maybeloveu commented 4 years ago

Home Assistant 0.116.4 ERROR (MainThread) [homeassistant.config] Package xiaomi_toiletlid setup failed. Integration toiletlid cannot be merged. Expected a dict. (See /config/packages/xiaomi_toiletlid.yaml:0). 我的配置: toiletlid:

scp10011 commented 4 years ago

配置格式错了吧

toiletlid:
  - platform: xiaomi_toiletlid
    name: iot-toiletlid
    host: 192.168.3.26
    token: xxxxxxxxxxxxxxxxxxxxxxx
maybeloveu commented 4 years ago

toiletlid:

maybeloveu commented 4 years ago

我的环境是hass os。直接将连个文件夹toiletlid xiaomi_toiletlid放在了custom_components下

maybeloveu commented 4 years ago

Integration toiletlid cannot be merged. 是不是说toiletlid 和xiaomi_toiletlid 两个文件夹出的问题?

maybeloveu commented 4 years ago

后来加到/config/configuration.yaml 文件里就可以了。自己在pakeges下建的文件同样的配置就不行。

scp10011 commented 4 years ago

...所有插件不都是在/config/configuration.yaml 里写吗