27hh 发表于 2021-1-28 15:41:47

yzxwxl 发表于 2021-1-27 18:46
哪位有云读取的配置,参考一下,

https://github.com/ha0y/xiaomi_miot_raw/blob/add-miot-support/config_example/cover.yaml

27hh 发表于 2021-1-28 12:52:53

yzxwxl 发表于 2021-1-28 12:40
Logger: homeassistant.config
Source: config.py:415
First occurred: 下午6:27:11 (1 occurrences)


你插件版本旧了,升级到最新版本

yzxwxl 发表于 2021-1-28 12:40:07

27hh 发表于 2021-1-23 22:00
我们两个插件的原理是一样的,我的不行他的就不行

Logger: homeassistant.config
Source: config.py:415
First occurred: 下午6:27:11 (1 occurrences)
Last logged: 下午6:27:11

Invalid config for : is an invalid option for . Check: sensor.xiaomi_miot_raw->update_from_cloud. (See /config/packages/sensor.yaml, line 6). Please check the docs at https://github.com/ha0y/xiaomi_miot_raw
配置:
配置:
sensor:
###小米榨汁机
- platform: xiaomi_miot_raw
    name: cstzhazhiji
    host: 192.168.31.20
    token: d444444444444444444444
    mapping:
      status:
      siid: 2
      piid: 1
      left-time:
      siid: 2
      piid: 2
      temperature:
      siid: 2
      piid: 3
    sensor_property: status
    update_from_cloud:
      userId: '1234567*'
      serviceToken: 'abCdeF/gHij='
      ssecurity: 'abcDef123=='
      did: '87654321'
大佬麻烦看一下哪不对

lipwah 发表于 2021-1-28 00:41:23

本帖最后由 lipwah 于 2021-1-28 01:16 编辑

先试下能不能接入成功

yzxwxl 发表于 2021-1-27 18:47:47

本帖最后由 yzxwxl 于 2021-1-27 19:05 编辑

Logger: homeassistant.config
Source: config.py:415
First occurred: 下午6:27:11 (1 occurrences)
Last logged: 下午6:27:11

Invalid config for : is an invalid option for . Check: sensor.xiaomi_miot_raw->update_from_cloud. (See /config/packages/sensor.yaml, line 6). Please check the docs at https://github.com/ha0y/xiaomi_miot_raw
配置:
配置:
sensor:
###小米榨汁机
- platform: xiaomi_miot_raw
    name: cstzhazhiji
    host: 192.168.31.20
    token: d444444444444444444444
    mapping:
      status:
      siid: 2
      piid: 1
      left-time:
      siid: 2
      piid: 2
      temperature:
      siid: 2
      piid: 3
    sensor_property: status
    update_from_cloud:
      userId: '1234567*'
      serviceToken: 'abCdeF/gHij='
      ssecurity: 'abcDef123=='
      did: '87654321'

yzxwxl 发表于 2021-1-27 18:46:31

哪位有云读取的配置,参考一下,:):)

卖牛奶的小男孩 发表于 2021-1-27 17:14:56

hasbacct002 发表于 2021-1-27 14:58
这部分代码我好像没怎么修改过。还是说你要的是template那个

要template那个,谢谢啦,我怎么弄都不显示功率

hasbacct002 发表于 2021-1-27 14:58:44

卖牛奶的小男孩 发表于 2021-1-27 00:36
老哥,能贴一下你的完整功率代码吗?我按大大的设置没有反应读取不了,小白表示很难 ...

switch:
- platform: xiaomi_miot_raw
    name: smart_ble_plug
    host: 192.168.x.xxx
    token: xxxxxxxxxxxxxxxxxxxxxx
    mapping:
      switch_status:
      siid: 2
      piid: 1
      temperature:
      siid: 2
      piid: 6
      power:   
      siid: 5
      piid: 6
    params:
      switch_status:
      power_on: True
      power_off: False
      power:
      value_ratio: 0.01

这部分代码我好像没怎么修改过。还是说你要的是template那个

Andy_zk 发表于 2021-1-27 03:45:22

支持智米新风yeeti排风吗

lee869882 发表于 2021-1-27 00:55:18

lee869882 发表于 2021-1-26 23:19
autoconfig.py 如何运行,在这卡住

處理完成~
页: 9 10 11 12 13 14 15 16 17 18 [19] 20 21 22 23 24 25 26 27 28
查看完整版本: Xiaomi MIoT - 小米米家设备全自动通用接入插件,无需配置文件