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

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

正在0.111.4版本上修改mypal大神的大金空调金制空气版本的...

[复制链接]

0

主题

2

帖子

12

积分

新手上路

Rank: 1

积分
12
金钱
10
HASS币
0
发表于 2020-9-18 16:07:21 | 显示全部楼层
orangeyz 发表于 2020-8-22 07:26
楼主,加油,我已经用上了,但是家里一共有5台机器,只显示出了两台

我是4台显示了3台。。
回复

使用道具 举报

0

主题

2

帖子

12

积分

新手上路

Rank: 1

积分
12
金钱
10
HASS币
0
发表于 2020-9-18 16:08:22 | 显示全部楼层
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_write_ha_state                                                      
    self._async_write_ha_state()                                                                                                                        
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 305, in _async_write_ha_state                                                     
    sstate = self.state                                                                                                                                 
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 173, in state                                                        
    return self.hvac_mode                                                                                                                              
  File "/config/custom_components/ds_air/climate.py", line 159, in hvac_mode                                                                           
    return EnumControl.get_mode_name(self._device_info.status.mode.value)                                                                              
AttributeError: 'NoneType' object has no attribute 'value'               
回复

使用道具 举报

0

主题

29

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
141
HASS币
0
发表于 2020-9-20 22:54:35 | 显示全部楼层

已私信告诉
回复

使用道具 举报

0

主题

19

帖子

108

积分

注册会员

Rank: 2

积分
108
金钱
89
HASS币
0
发表于 2020-9-28 01:06:21 | 显示全部楼层

什么300块怎么买,买什么啊。不是直接接入吗?能不能说明白点儿。
回复

使用道具 举报

0

主题

29

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
141
HASS币
0
发表于 2020-10-6 22:53:24 | 显示全部楼层
kai666 发表于 2020-9-28 01:06
什么300块怎么买,买什么啊。不是直接接入吗?能不能说明白点儿。

闲鱼搜索 DTA117C611
回复

使用道具 举报

0

主题

87

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
金钱
1428
HASS币
0
发表于 2020-10-24 16:56:54 | 显示全部楼层
Logger: homeassistant.components.climate
Source: custom_components/ds_air/climate.py:159
Integration: 空调 (documentation, issues)
First occurred: 下午4:10:52 (1 occurrences)
Last logged: 下午4:10:52

Error while setting up ds_air platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 201, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 310, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 481, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 522, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    sstate = self.state
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 173, in state
    return self.hvac_mode
  File "/config/custom_components/ds_air/climate.py", line 159, in hvac_mode
    return EnumControl.get_mode_name(self._device_info.status.mode.value)
AttributeError: 'NoneType' object has no attribute 'value'
回复

使用道具 举报

0

主题

87

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
金钱
1428
HASS币
0
发表于 2020-10-24 16:58:08 | 显示全部楼层
Logger: root
Source: custom_components/ds_air/ds_air_service/decoder.py:525
First occurred: 下午4:10:51 (1 occurrences)
Last logged: 下午4:10:51

Uncaught thread exception
ValueError: 6 is not a valid Humidity

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/config/custom_components/ds_air/ds_air_service/service.py", line 83, in run
    res = self._sock.recv()
  File "/config/custom_components/ds_air/ds_air_service/service.py", line 69, in recv
    r, b = decoder(data)
  File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 23, in decoder
    return result_factory(struct.unpack('<BHBBBBIBIBH' + str(length - 16) + 'sB', b[:length + 4])), b[length + 4:]
  File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 77, in result_factory
    result.load_bytes(subbody)
  File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 525, in load_bytes
    self.humidity = EnumControl.Humidity(d.read1())
  File "/usr/local/lib/python3.8/enum.py", line 309, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.8/enum.py", line 600, in __new__
    raise exc
  File "/usr/local/lib/python3.8/enum.py", line 584, in __new__
    result = cls._missing_(value)
  File "/usr/local/lib/python3.8/enum.py", line 613, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 6 is not a valid Humidity
回复

使用道具 举报

0

主题

19

帖子

108

积分

注册会员

Rank: 2

积分
108
金钱
89
HASS币
0
发表于 2020-11-10 10:40:14 | 显示全部楼层
hlwqcc 发表于 2020-10-6 22:53
闲鱼搜索 DTA117C611

您意思这个还需要外加设备,是吗
回复

使用道具 举报

0

主题

19

帖子

108

积分

注册会员

Rank: 2

积分
108
金钱
89
HASS币
0
发表于 2020-11-10 10:41:59 | 显示全部楼层
hlwqcc 发表于 2020-10-6 22:53
闲鱼搜索 DTA117C611

您说的这个,我现在有啊。连接路由器的。
回复

使用道具 举报

0

主题

19

帖子

108

积分

注册会员

Rank: 2

积分
108
金钱
89
HASS币
0
发表于 2020-11-10 10:45:06 | 显示全部楼层
楼主,帖子不要沉啊。到底该怎么搞。说说啊。这么好的教程。讲一半。。。。。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-2-3 12:06 , Processed in 0.059741 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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