qq1838051
发表于 2021-1-31 08:56:57
https://github.com/ha0y/xiaomi_miot_raw/releases/download/v1.0/toolkit.zip无法下载,高手请指教!!!!!!在线等
hasbacct002
发表于 2021-1-30 20:20:18
卖牛奶的小男孩 发表于 2021-1-27 17:14
要template那个,谢谢啦,我怎么弄都不显示功率
sensor:
- platform: template
sensors:
plug_power:
friendly_name: "插座功率"
unit_of_measurement: '°C'
value_template: "{{state_attr('switch.smart_ble_plug', 'power')}}"
plug_temp:
friendly_name: "插座温度"
unit_of_measurement: '°C'
value_template: "{{state_attr('switch.smart_ble_plug', 'temperature')}}"
不好意思哈 这几天没看论坛 不知道你还需不需要
zxl_hass
发表于 2021-1-30 20:20:13
学到了,马上回去试试
kingwell
发表于 2021-1-30 19:41:36
能不能支持下多模?老毛子对蓝牙mesh不是很有兴趣。
yancey
发表于 2021-1-30 16:50:10
下载了 Github 上的 Tool 文件夹下的文件,我的环境下跑起来一直报证书的错误:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/aiohttp/connector.py", line 971, in _wrap_create_connection
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host sts.api.io.mi.com:443 ssl:True certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')]
登录失败
后面在xiaomi_cloud.py三个步骤的请求里面加上了 verify_ssl=False,就可以了。
fenytk
发表于 2021-1-30 14:51:12
风扇灯的风扇部分:
现在用大佬插件实现开关和挡位调速,piid 4 模式未实现
fan:
- platform: xiaomi_miot_raw
name: testfan
host: 192.168.x.xx
token: f33c5xxxxxxxxxxx
mapping:
switch_status:
siid: 3
piid: 1
#oscillate:#不支持摇头,注释掉即可
#siid: 3
#piid: 3
speed:
siid: 3
piid: 2
params:
switch_status:
power_on: True
power_off: False
#oscillate:
# on: True
# off: False
speed:
1: 轻柔
25: 微风
50: 自然风
75: 强风
100: 全速
scan_interval: 5
我的风扇灯可以 反转和无级调速的,请问反转可以实现吗,尝试用摇头功能替换piid,不行。
请输入设备model:huayi.light.fanwy
已发现以下设备
--------------------------------------
序号 model urn
1 huayi.light.fanwy urn:miot-spec-v2:device:light:0000A001:huayi-fanwy:1
2 huayi.light.fanwy2 urn:miot-spec-v2:device:light:0000A001:huayi-fanwy2:1
3 huayi.light.fanwy3 urn:miot-spec-v2:device:light:0000A001:huayi-fanwy3:1
请确认哪个是你的设备,输入序号:1
设备描述:Light
设备属性:
siid 1: Device Information
piid 1: Device Manufacturer 可读取
数据类型:string
piid 2: Device Model 可读取
数据类型:string
piid 3: Device Serial Number 可读取
数据类型:string
piid 4: Current Firmware Version 可读取
数据类型:string
siid 2: Light
piid 1: Switch Status 可读取 可控制
数据类型:bool
piid 2: Brightness 可读取 可控制
数据类型:uint8
取值范围:
piid 3: 色温 可读取 可控制
数据类型:uint32
取值范围:
siid 3: Fan
piid 1: Switch Status 可读取 可控制
数据类型:bool
piid 2: 风机档位 可读取 可控制
数据类型:uint8
取值范围:
piid 3: 电机正反向-true-正转,false-反转 可读取 可控制
数据类型:bool
piid 4: 模式 可读取 可控制
数据类型:uint8
取值范围:
1: 正常风
2: 自然风
yzxwxl
发表于 2021-1-29 19:15:57
本帖最后由 yzxwxl 于 2021-1-29 19:17 编辑
27hh 发表于 2021-1-28 12:52
你插件版本旧了,升级到最新版本
今天的版本,log还是
Logger: homeassistant.config
Source: config.py:415
First occurred: 下午5:11:42 (1 occurrences)
Last logged: 下午5:11:42
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_rawdocker安装的Home Assistant 0.118.4
ltbl
发表于 2021-1-29 18:23:05
Home Assistant 2021.1.5版本已经无法加入miot集成了。
ilongjiang
发表于 2021-1-28 22:39:10
运行autoconfig.py一闪而过怎么回事
goldstep
发表于 2021-1-28 15:45:43
太强了,米家所有wifi设备接入hass越来越接近现实了