『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: anlong

[插件集成] Yeelight灯/风扇/浴霸/凉霸/米家吸顶灯接入HA插件

  [复制链接]

15

主题

636

帖子

2201

积分

金牌会员

Rank: 6Rank: 6

积分
2201
金钱
1565
HASS币
0
发表于 2020-12-1 23:05:38 | 显示全部楼层
汇报大神,
连米家和Philip合作的读写灯,都能成功添加。。。
型号 philips.light.rwread
太牛了
回复

使用道具 举报

9

主题

80

帖子

496

积分

论坛分享达人

积分
496
金钱
416
HASS币
0
发表于 2020-11-28 14:51:54 | 显示全部楼层
anlong 发表于 2020-11-27 16:35
日志看来和v2的浴霸pro还是差的挺多。比如set_bh_mode v2只有一个参数,v5有两个参数。还有fan_speed_idx ...

行我马上共享给你
回复

使用道具 举报

6

主题

267

帖子

2379

积分

论坛技术达人

积分
2379
金钱
2092
HASS币
90
 楼主| 发表于 2020-11-27 16:35:02 | 显示全部楼层
anschein 发表于 2020-11-26 17:18
我刚刚试了下要点击才会产生记录,我每个按钮都试了下现在产生的日志就很全了
2020-11-26 17:10:48 -> {" ...

日志看来和v2的浴霸pro还是差的挺多。比如set_bh_mode v2只有一个参数,v5有两个参数。还有fan_speed_idx。这个风速字段是几个模式混合在一起的。
所以如果可以的话。你可以把你的浴霸共享给我(小米ID: 143050915)。我获取完整参数后再取消共享即可。
小米MIoT插件:miot-spec.com
回复

使用道具 举报

9

主题

80

帖子

496

积分

论坛分享达人

积分
496
金钱
416
HASS币
0
发表于 2020-11-26 17:18:27 | 显示全部楼层
anlong 发表于 2020-11-25 13:48
使用vevs修改的米家,
获取vevs/logs/miio/your-did.txt日志给我

我刚刚试了下要点击才会产生记录,我每个按钮都试了下现在产生的日志就很全了
2020-11-26 17:10:48 -> {"id":6712,"method":"get_prop","params":["delayoff"]}
2020-11-26 17:10:48 <- {"code":0,"message":"ok","result":[0],"id":6712}
2020-11-26 17:10:48 -> {"id":6713,"method":"get_prop","params":["bathroom_flag"]}
2020-11-26 17:10:48 <- {"code":0,"message":"ok","result":[1],"id":6713}
2020-11-26 17:10:49 -> {"id":6714,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:10:49 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":6714}
2020-11-26 17:15:05 -> {"id":2207,"method":"get_prop","params":["delayoff"]}
2020-11-26 17:15:05 <- {"code":0,"message":"ok","result":[0],"id":2207}
2020-11-26 17:15:05 -> {"id":2208,"method":"get_prop","params":["bathroom_flag"]}
2020-11-26 17:15:05 <- {"code":0,"message":"ok","result":[1],"id":2208}
2020-11-26 17:15:06 -> {"id":2209,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:06 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2209}
2020-11-26 17:15:10 -> {"id":2210,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:10 <- {"code":0,"message":"ok","result":["swing",90],"id":2210}
2020-11-26 17:15:13 -> {"id":2211,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:13 <- {"code":0,"message":"ok","result":["swing",90],"id":2211}
2020-11-26 17:15:15 -> {"id":2212,"method":"ble_dbg_tbl_dump","params":{"table":"evtRuleTbl"}}
2020-11-26 17:15:15 <- {"code":0,"message":"ok","result":[{"mac":"a6f42227d128","evtid":4097,"pid":2682,"beaconkey":"392fca030c67a267264bdb11"}],"id":2212}
2020-11-26 17:15:16 -> {"id":2213,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:16 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2213}
2020-11-26 17:15:17 -> {"id":2214,"method":"get_prop","params":["bathroom"]}
2020-11-26 17:15:17 <- {"code":0,"message":"ok","result":[2],"id":2214}
2020-11-26 17:15:20 -> {"id":2215,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:20 <- {"code":0,"message":"ok","result":["swing",90],"id":2215}
2020-11-26 17:15:22 -> {"id":2216,"method":"get_prop","params":["save_state","init_power_opt","power"]}
2020-11-26 17:15:22 <- {"code":0,"message":"ok","result":["prop_err",2,"off"],"id":2216}
2020-11-26 17:15:23 -> {"id":2217,"method":"get_prop","params":["rc_beep_enable"]}
2020-11-26 17:15:23 <- {"code":0,"message":"ok","result":[1],"id":2217}
2020-11-26 17:15:23 -> {"id":2218,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:23 <- {"code":0,"message":"ok","result":["swing",90],"id":2218}
2020-11-26 17:15:24 -> {"id":2219,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:15:24 <- {"code":0,"message":"ok","result":[30],"id":2219}
2020-11-26 17:15:26 -> {"id":2220,"method":"get_prop","params":["power","bright","nl_br","nighttime"]}
2020-11-26 17:15:26 <- {"code":0,"message":"ok","result":["off",100,7,"enable|000000|060000|0"],"id":2220}
2020-11-26 17:15:26 -> {"id":2221,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:26 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2221}
2020-11-26 17:15:30 -> {"id":2222,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:30 <- {"code":0,"message":"ok","result":["swing",90],"id":2222}
2020-11-26 17:15:33 -> {"id":2223,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:33 <- {"code":0,"message":"ok","result":["swing",90],"id":2223}
2020-11-26 17:15:34 -> {"id":2224,"method":"set_bh_mode","params":["warmwind",2]}
2020-11-26 17:15:34 <- {"code":0,"message":"ok","result":["ok"],"id":2224}
2020-11-26 17:15:35 -> {"id":2225,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:15:35 <- {"code":0,"message":"ok","result":[30],"id":2225}
2020-11-26 17:15:36 -> {"id":2226,"method":"set_bh_mode","params":["warmwind",1]}
2020-11-26 17:15:36 <- {"code":0,"message":"ok","result":["ok"],"id":2226}
2020-11-26 17:15:36 -> {"id":2227,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:36 <- {"code":0,"message":"ok","result":["off","warmwind",100,0,0,0,0,30],"id":2227}
2020-11-26 17:15:37 -> {"id":2228,"method":"set_bh_mode","params":["coolwind",3]}
2020-11-26 17:15:37 <- {"code":0,"message":"ok","result":["ok"],"id":2228}
2020-11-26 17:15:37 -> {"id":2229,"method":"set_bh_mode","params":["coolwind",1]}
2020-11-26 17:15:37 <- {"code":0,"message":"ok","result":["ok"],"id":2229}
2020-11-26 17:15:38 -> {"id":2230,"method":"set_bh_mode","params":["drying",0]}
2020-11-26 17:15:38 <- {"code":0,"message":"ok","result":["ok"],"id":2230}
2020-11-26 17:15:39 -> {"id":2231,"method":"set_bh_mode","params":["defog",0]}
2020-11-26 17:15:39 <- {"code":0,"message":"ok","result":["ok"],"id":2231}
2020-11-26 17:15:40 -> {"id":2232,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:40 <- {"code":0,"message":"ok","result":["swing",90],"id":2232}
2020-11-26 17:15:40 -> {"id":2233,"method":"set_bh_mode","params":["fastwarm",0]}
2020-11-26 17:15:40 <- {"code":0,"message":"ok","result":["ok"],"id":2233}
2020-11-26 17:15:42 -> {"id":2234,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:42 <- {"code":0,"message":"ok","result":["swing",90],"id":2234}
2020-11-26 17:15:44 -> {"id":2235,"method":"set_bh_mode","params":["bh_off",0]}
2020-11-26 17:15:44 <- {"code":0,"message":"ok","result":["ok"],"id":2235}
2020-11-26 17:15:44 -> {"id":2236,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:15:44 <- {"code":0,"message":"ok","result":[30],"id":2236}
2020-11-26 17:15:46 -> {"id":2237,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:46 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2237}
2020-11-26 17:15:50 -> {"id":2238,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:50 <- {"code":0,"message":"ok","result":["swing",90],"id":2238}
2020-11-26 17:15:53 -> {"id":2239,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:15:53 <- {"code":0,"message":"ok","result":["swing",90],"id":2239}
2020-11-26 17:15:54 -> {"id":2240,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:15:54 <- {"code":0,"message":"ok","result":[30],"id":2240}
2020-11-26 17:15:56 -> {"id":2241,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:15:56 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2241}
2020-11-26 17:16:00 -> {"id":2242,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:00 <- {"code":0,"message":"ok","result":["swing",90],"id":2242}
2020-11-26 17:16:02 -> {"id":2243,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:02 <- {"code":0,"message":"ok","result":["swing",90],"id":2243}
2020-11-26 17:16:04 -> {"id":2244,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:04 <- {"code":0,"message":"ok","result":[30],"id":2244}
2020-11-26 17:16:06 -> {"id":2245,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:06 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2245}
2020-11-26 17:16:10 -> {"id":2246,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:10 <- {"code":0,"message":"ok","result":["swing",90],"id":2246}
2020-11-26 17:16:13 -> {"id":2247,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:13 <- {"code":0,"message":"ok","result":["swing",90],"id":2247}
2020-11-26 17:16:14 -> {"id":2248,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:14 <- {"code":0,"message":"ok","result":[30],"id":2248}
2020-11-26 17:16:16 -> {"id":2249,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:16 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2249}
2020-11-26 17:16:20 -> {"id":2250,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:20 <- {"code":0,"message":"ok","result":["swing",90],"id":2250}
2020-11-26 17:16:23 -> {"id":2251,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:23 <- {"code":0,"message":"ok","result":["swing",90],"id":2251}
2020-11-26 17:16:24 -> {"id":2252,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:24 <- {"code":0,"message":"ok","result":[30],"id":2252}
2020-11-26 17:16:26 -> {"id":2253,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:26 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2253}
2020-11-26 17:16:30 -> {"id":2254,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:30 <- {"code":0,"message":"ok","result":["swing",90],"id":2254}
2020-11-26 17:16:33 -> {"id":2255,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:33 <- {"code":0,"message":"ok","result":["swing",90],"id":2255}
2020-11-26 17:16:34 -> {"id":2256,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:34 <- {"code":0,"message":"ok","result":[30],"id":2256}
2020-11-26 17:16:36 -> {"id":2257,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:36 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2257}
2020-11-26 17:16:40 -> {"id":2258,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:40 <- {"code":0,"message":"ok","result":["swing",90],"id":2258}
2020-11-26 17:16:42 -> {"id":2259,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:42 <- {"code":0,"message":"ok","result":["swing",90],"id":2259}
2020-11-26 17:16:44 -> {"id":2260,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:44 <- {"code":0,"message":"ok","result":[30],"id":2260}
2020-11-26 17:16:46 -> {"id":2261,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:46 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2261}
2020-11-26 17:16:50 -> {"id":2262,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:50 <- {"code":0,"message":"ok","result":["swing",90],"id":2262}
2020-11-26 17:16:53 -> {"id":2263,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:16:53 <- {"code":0,"message":"ok","result":["swing",90],"id":2263}
2020-11-26 17:16:54 -> {"id":2264,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:16:54 <- {"code":0,"message":"ok","result":[30],"id":2264}
2020-11-26 17:16:56 -> {"id":2265,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:16:56 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2265}
2020-11-26 17:17:00 -> {"id":2266,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:17:00 <- {"code":0,"message":"ok","result":["swing",90],"id":2266}
2020-11-26 17:17:03 -> {"id":2267,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:17:03 <- {"code":0,"message":"ok","result":["swing",90],"id":2267}
2020-11-26 17:17:05 -> {"id":2268,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:17:05 <- {"code":0,"message":"ok","result":[30],"id":2268}
2020-11-26 17:17:06 -> {"id":2269,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:17:06 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":2269}
2020-11-26 17:17:10 -> {"id":2270,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:17:10 <- {"code":0,"message":"ok","result":["swing",90],"id":2270}
2020-11-26 17:17:13 -> {"id":2271,"method":"get_prop","params":["swing_action","swing_angle"]}
2020-11-26 17:17:13 <- {"code":0,"message":"ok","result":["swing",90],"id":2271}
2020-11-26 17:17:14 -> {"id":2272,"method":"get_prop","params":["aim_temp"]}
2020-11-26 17:17:14 <- {"code":0,"message":"ok","result":[30],"id":2272}
回复

使用道具 举报

9

主题

80

帖子

496

积分

论坛分享达人

积分
496
金钱
416
HASS币
0
发表于 2020-11-26 17:14:36 | 显示全部楼层
anlong 发表于 2020-11-25 13:48
使用vevs修改的米家,
获取vevs/logs/miio/your-did.txt日志给我

哇我仿佛打开了新大门

2020-11-26 17:10:48 -> {"id":6712,"method":"get_prop","params":["delayoff"]}
2020-11-26 17:10:48 <- {"code":0,"message":"ok","result":[0],"id":6712}
2020-11-26 17:10:48 -> {"id":6713,"method":"get_prop","params":["bathroom_flag"]}
2020-11-26 17:10:48 <- {"code":0,"message":"ok","result":[1],"id":6713}
2020-11-26 17:10:49 -> {"id":6714,"method":"get_prop","params":["power","bh_mode","fan_speed_idx","bh_cfg_delayoff","bh_delayoff","light_cfg_delayoff","delayoff","aim_temp"]}
2020-11-26 17:10:49 <- {"code":0,"message":"ok","result":["off","bh_off",0,0,0,0,0,30],"id":6714}
回复

使用道具 举报

0

主题

5

帖子

164

积分

注册会员

Rank: 2

积分
164
金钱
159
HASS币
0
发表于 2020-11-26 13:28:07 | 显示全部楼层
谢谢楼主,有个逸扬灯
回复

使用道具 举报

0

主题

45

帖子

349

积分

中级会员

Rank: 3Rank: 3

积分
349
金钱
303
HASS币
0
发表于 2020-11-25 15:15:37 | 显示全部楼层
可以!很强
回复

使用道具 举报

6

主题

267

帖子

2379

积分

论坛技术达人

积分
2379
金钱
2092
HASS币
90
 楼主| 发表于 2020-11-25 13:48:45 | 显示全部楼层
anschein 发表于 2020-11-25 10:35
大佬我的是米家浴霸pro,型号:yeelink.bhf_light.v5,用你的插件能接入但是有几个prop_err,功能基本无法控 ...

使用vevs修改的米家
获取vevs/logs/miio/your-did.txt日志给我
小米MIoT插件:miot-spec.com
回复

使用道具 举报

9

主题

80

帖子

496

积分

论坛分享达人

积分
496
金钱
416
HASS币
0
发表于 2020-11-25 10:35:40 | 显示全部楼层
大佬我的是米家浴霸pro,型号:yeelink.bhf_light.v5,用你的插件能接入但是有几个prop_err,功能基本无法控制,请问能否适配一下我这个型号呢,需要什么数据不?
回复

使用道具 举报

6

主题

267

帖子

2379

积分

论坛技术达人

积分
2379
金钱
2092
HASS币
90
 楼主| 发表于 2020-11-23 18:53:28 来自手机 | 显示全部楼层
Greece 发表于 2020-11-23 00:15
反映一个问题:  如果直接在集成中添加设备,3个服务只有send_command可以在 '开发者工具'-'服务'里找到,
手 ...

谢谢反馈
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-26 16:30 , Processed in 0.380005 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表