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

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

[插件集成] 小米MIoT设备自动识别接入HA插件 2024-04-30新版发布

  [复制链接]

6

主题

77

帖子

764

积分

高级会员

Rank: 4

积分
764
金钱
687
HASS币
0
发表于 2021-1-24 01:43:43 | 显示全部楼层
添加小米电饭锅后无实体,日志如下:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/xiaomi_miot/sensor.py", line 38, in async_setup_entry
    await async_setup_platform(hass, config, async_add_entities)
  File "/config/custom_components/xiaomi_miot/sensor.py", line 65, in async_setup_platform
    entities.append(MiotSensorEntity(cfg, srv))
  File "/config/custom_components/xiaomi_miot/sensor.py", line 85, in __init__
    mapping.update(miot_service.mapping())
AttributeError: 'NoneType' object has no attribute 'update'

型号chunmi.cooker.eh402
token和ip地址均确认正确
回复

使用道具 举报

6

主题

267

帖子

2377

积分

论坛技术达人

积分
2377
金钱
2090
HASS币
90
 楼主| 发表于 2021-1-24 00:25:09 | 显示全部楼层
MX10085 发表于 2021-1-22 23:56
Logger: homeassistant.components.climate
Source: custom_components/xiaomi_miot/climate.py:92
Integra ...

最新的提交已修复
小米MIoT插件:miot-spec.com
回复

使用道具 举报

1

主题

20

帖子

250

积分

论坛积极会员

积分
250
金钱
230
HASS币
0
发表于 2021-1-23 23:13:59 | 显示全部楼层
本帖最后由 evaz 于 2021-1-23 23:56 编辑

厉害了
我用的斐讯N1 ,wrt 装docker---hassio  ,执行完命令后重启添加没有出现MloT
回复

使用道具 举报

7

主题

67

帖子

1830

积分

金牌会员

Rank: 6Rank: 6

积分
1830
金钱
1763
HASS币
0
发表于 2021-1-23 21:58:24 来自手机 | 显示全部楼层
智米电暖器找不到实体
回复

使用道具 举报

10

主题

102

帖子

1537

积分

金牌会员

Rank: 6Rank: 6

积分
1537
金钱
1435
HASS币
0
发表于 2021-1-23 19:09:44 | 显示全部楼层
我的狗剩16A的添加了也识别不了
回复

使用道具 举报

14

主题

195

帖子

904

积分

高级会员

Rank: 4

积分
904
金钱
709
HASS币
0
发表于 2021-1-23 17:24:37 | 显示全部楼层
请添加为插座plug设备的支持
回复

使用道具 举报

0

主题

34

帖子

1425

积分

金牌会员

Rank: 6Rank: 6

积分
1425
金钱
1391
HASS币
0
发表于 2021-1-23 14:40:05 | 显示全部楼层
您好,请看看这个可以加进去吗

                               
登录/注册后可看大图

回复

使用道具 举报

1

主题

155

帖子

766

积分

高级会员

Rank: 4

积分
766
金钱
611
HASS币
0
发表于 2021-1-23 13:18:04 | 显示全部楼层
回复

使用道具 举报

25

主题

688

帖子

3630

积分

论坛元老

Rank: 8Rank: 8

积分
3630
金钱
2937
HASS币
219

活跃会员

发表于 2021-1-23 13:02:11 | 显示全部楼层
微波炉
raw_command get_prop
erties "[{'did': 'result', 'siid': 2, 'piid': 1}]"                                                           
INFO:miio.cliebug mode active                                                                              
Running command raw_command                                                                                 
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''                                             
DEBUG:miio.miioprotocol:Got a response: Container:                                                           
    data = Container:                                                                                       
        data = b'' (total 0)                                                                                 
        value = b'' (total 0)                                                                                
        offset1 = 32                                                                                         
        offset2 = 32                                                                                         
        length = 0                                                                                          
    header = Container:                                                                                      
        data = b'!1\x00 \x00\x00\x00\x00\x07\x9b\x93?\x00\x13Q*' (total 16)                                 
        value = Container:                                                                                   
            length = 32                                                                                      
            unknown = 0                                                                                      
            device_id = unhexlify('079b933f')                                                               
            ts = 1970-01-15 15:39:22                                                                        
        offset1 = 0                                                                                          
        offset2 = 16                                                                                         
        length = 16                                                                                          
    checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)               
DEBUG:miio.miioprotocoliscovered 079b933f with ts: 1970-01-15 15:39:22, token: b'ffffffffffffffffffffffffff
ffffff'                                                                                                      
DEBUG:miio.miioprotocol:192.168.xx.xx:54321 >>: {'id': 1, 'method': 'get_properties', 'params': [{'did': 're
sult', 'siid': 2, 'piid': 1}]}                                                                              
DEBUG:miio.miioprotocol:192.168.xx.xx:54321 (ts: 1970-01-15 15:39:23, id: 1) << {'id': 1, 'result': [{'did':
'result', 'siid': 2, 'piid': 1, 'code': -4004}], 'exe_time': 420}                                          
[{'did': 'result', 'siid': 2, 'piid': 1, 'code': -4004}]                                                     
回复

使用道具 举报

0

主题

18

帖子

765

积分

高级会员

Rank: 4

积分
765
金钱
747
HASS币
0
发表于 2021-1-23 12:24:22 | 显示全部楼层
大家的token都是哪里获取的呢?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-5 06:19 , Processed in 0.066808 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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