Giter VIP home page Giter VIP logo

ha-dsair's Issues

有没有可能支持卫浴机的换气开关

由于卫浴机的换气使用频率很高,而且有比较大的和人在传感器的联动需求,能否考虑加入这个功能

这个项目让我轻松接入了大金**空调到HA,再次表示感谢

HA 最新版本报错

Logger: homeassistant.config_entries
Source: custom_components/ds_air/init.py:51
Integration: DS-AIR (documentation)
First occurred: 22:33:54 (1 occurrences)
Last logged: 22:33:54

Error setting up entry 金制空气 for ds_air
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ds_air/init.py", line 51, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

关于风速显示的问题

首先感谢作者的插件, 接入空调并暴露给 Homekit 后, 无法在 Home 中调整风速, 在 HA 中是没有问题的。
我看了下 state, 猜测是不是因为中文的关系导致无法在 Homekit 中进行 mapping?

当前的我这边的 state 显示如下:
fan_modes: 最弱, 稍弱, 中等, 稍强, 最强, 自动

为什么这个不能添加两次呀

我再添加一次里面提示只能在ha设置一个大金服务器,但是家里有两台服务器 有没有办法让两台都连接这个服务呀

HA 0.111.4 没有了那个 ClimateDevice, 改成了 ClimateEntity 。

我手工修改了代码中的这个类名称,但还是有警告

日志详细信息( WARNING )
Logger: homeassistant.components.climate
Source: main.py:356
Integration: 空调 (documentation, issues)
First occurred: 2020年6月27日 下午8:38:28 (1 occurrences)
Last logged: 2020年6月27日 下午8:38:28

Setup of climate platform ds_air is taking over 10 seconds.

后台日记输出为:

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 82, in run
res = self._sock.recv()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 68, 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 60, in result_factory
result.load_bytes(subbody)
File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 292, in load_bytes
device = EnumDevice((8, d.read4()))
File "/usr/local/lib/python3.7/enum.py", line 310, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.7/enum.py", line 564, in new
raise exc
File "/usr/local/lib/python3.7/enum.py", line 548, in new
result = cls.missing(value)
File "/usr/local/lib/python3.7/enum.py", line 577, in missing
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: (8, 25) is not a valid EnumDevice

然后我在EnumDevice里增加了 8,25,错误变成

2020-06-30 01:17:16 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for ds_air which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
-------b------ b'\x04\x00\x7f\x00\x00\x05\x0c\x04\x01\x00\x01'
flag: 127
========d.pos==== 11
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 82, in run
res = self._sock.recv()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 68, 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 486, in load_bytes
self.humidity = EnumControl.Humidity(d.read1())
File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 92, in read1
s = struct.unpack('<B', self._b[pos:pos + 1])[0]
struct.error: unpack requires a buffer of 1 bytes

decode错误, b的长度是11, read 需要 11+1=12 ,读不到数据了

之后我注释掉了读取湿度的那个部分,出现下列错误

$$$$$$$ 36 8 18 4 1 b'\t101190104?\x01\x00<"\x01\x04\x02\r\x00'
$$$$$$$$$$$$$ 41 8 23 6 1 b'\x04\x04\x01\x00\xa7\x18\x87\x0b\x01\x00\xa7\x18\x87\x0c\x01\x00\xa7\x18\x87\x0e\x01\x00\xa7\x18\x87'
$$$$$$$$$$$$$ 17 8 24 6 1 b'\x00'
$$$$$$$$$$$$$ 27 8 23 3 1 b'\x04\x00\x7f\x00\x00\x05\x0c\x04\x01\x00\x01'
-------b------ b'\x04\x00\x7f\x00\x00\x05\x0c\x04\x01\x00\x01'
flag: 127
========== 4 0 Switch.OFF Mode.COLD AirFlow.AUTO 1036 1
$$$$$$$$$$$$$ 27 8 23 3 1 b'\x0b\x00\x7f\x00\x00\x05\x0c\xdc\x00\x00\x01'
-------b------ b'\x0b\x00\x7f\x00\x00\x05\x0c\xdc\x00\x00\x01'
flag: 127
========== 11 0 Switch.OFF Mode.COLD AirFlow.AUTO 56332 0
$$$$$$$$$$$$$ 27 8 23 3 1 b'\x0c\x00\x7f\x00\x00\x00\x0c\xfa\x00\x00\x01'
-------b------ b'\x0c\x00\x7f\x00\x00\x00\x0c\xfa\x00\x00\x01'
flag: 127
========== 12 0 Switch.OFF Mode.COLD AirFlow.SUPER_WEAK 64012 0
$$$$$$$$$$$$$ 27 8 23 3 1 b'\x0e\x00\x7f\x00\x00\x04\x0c\xfa\x00\x00\x01'
-------b------ b'\x0e\x00\x7f\x00\x00\x04\x0c\xfa\x00\x00\x01'
flag: 127
========== 14 0 Switch.OFF Mode.COLD AirFlow.SUPER_STRONG 64012 0
2020-06-30 05:59:37 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform ds_air is taking over 10 seconds.
2020-06-30 05:59:42 ERROR (MainThread) [homeassistant.components.updater] Timeout fetching Home Assistant update data
$$$$$$$$$$$$$ 21 8 18 2 0 b'\x01\x00\x10\x04\x01'
$$$$$$$$$$$$$ 21 8 18 2 0 b'\x02\x00\x10\x04\x01'
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 87, in run
i.do()
AttributeError: 'NoneType' object has no attribute 'do'

Deprecated const

2024-01-22 03:51:26 stdout �[33m2024-01-22 11:51:26.130 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.290 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT_COOL was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT_COOL instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.285 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.281 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_DRY was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.275 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.270 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_FAN_ONLY was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.FAN_ONLY instead, please report it to the author of the 'ds_air' custom integration�[0m
2024-01-22 03:51:24 stdout �[33m2024-01-22 11:51:24.266 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from ds_air, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please report it to the author of the 'ds_air' custom integration�[0m

homekit 中湿度显示的问题

通过 HA 将空调接入 HK 中,已经绑定了温度传感器,温度会自动变化,但是湿度始终显示默认值 50,这个湿度可以绑定空调吗?请教一下相关文档或者解决方案。

重启后无法再次启用插件

刚升级HA到2022.11,重启过程中ds-air失败,然后重启失败; 尝试过降级版本重启也一样会失败
重启过程中的报错日志如下:

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 218, in post return await super().post(request) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper result = await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post result = await self._flow_mgr.async_init( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 225, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 243, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1625, in async_create_flow return HANDLERS[entry.domain].async_get_options_flow(entry) File "/config/custom_components/ds_air/config_flow.py", line 81, in async_get_options_flow return DsAirOptionsFlowHandler(config_entry) File "/config/custom_components/ds_air/config_flow.py", line 93, in __init__ self._climates = list(map(lambda state: state.alias, Service.get_aircons())) File "/config/custom_components/ds_air/ds_air_service/service.py", line 204, in get_aircons return Service._new_aircons+Service._aircons+Service._bathrooms TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

然后尝试在重启过程中删除插件, 然后顺利重启进入系统, 重新添加插件, 安装成功后输入网关信息后就一直在初始化转圈圈, 然后就死在这里了...日志如下

Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/config/custom_components/ds_air/ds_air_service/service.py", line 134, in run Service.poll_status() File "/config/custom_components/ds_air/ds_air_service/service.py", line 292, in poll_status for i in Service._new_aircons: TypeError: 'NoneType' object is not iterable

如何禁用掉homekit里面的制热模式,只保留制冷模式?

目前的情况:
1、金制空气app里面有4种模式:制冷、制热、除湿、送风
2、home assistant里面有3种模式:制冷、除湿、送风
3、homekit里面只有2种模式:制冷、制热

问题:由于身处广东,没有制热需求,为了减少家人误操作,有没有什么方法可以在homekit只保留制冷模式?

开关键消失,失灵

本周突然发现Homekit上没有关机键了,无法控制空调关机。温度和风速依然可以调节。
风速调整到零依然是有风的,没有关机。
上周还是没问题的,突然变化了,奇怪关机键消失了。 谢谢

请教一下,连不上8008端口是什么情况?

之前是好的,有一天重启了一下大金的网关,就再也连不上了,下面debug日志,请大神指点一下这是什么情况?
(网关的IP是对的,能PING通)

2023-10-27 12:08:43.431 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: ds_air
2023-10-27 12:09:43.533 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: ds_air
2023-10-27 12:10:43.633 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: ds_air
2023-10-27 12:11:43.738 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: ds_air
2023-10-27 12:12:41.373 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 金制空气 for ds_air
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ds_air/init.py", line 49, in async_setup_entry
await hass.async_add_executor_job(Service.init, host, port, scan_interval)
asyncio.exceptions.CancelledError: Global task timeout
2023-10-27 12:12:41.395 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2023-10-27 13:28:33.393 DEBUG (SyncWorker_2) [custom_components.ds_air.ds_air_service.service] connected error192.168.124.13:8008
2023-10-27 13:28:33.393 DEBUG (SyncWorker_2) [custom_components.ds_air.ds_air_service.service] [Errno 111] Connection refused
2023-10-27 13:28:35.151 DEBUG (SyncWorker_7) [custom_components.ds_air.ds_air_service.service] connected error192.168.124.13:8008
2023-10-27 13:28:35.152 DEBUG (SyncWorker_7) [custom_components.ds_air.ds_air_service.service] [Errno 111] Connection refused
2023-10-27 13:28:36.433 DEBUG (SyncWorker_2) [custom_components.ds_air.ds_air_service.service] connected error192.168.124.13:8008
2023-10-27 13:28:36.433 DEBUG (SyncWorker_2) [custom_components.ds_air.ds_air_service.service] [Errno 111] Connection refused

接入HA后一些小问题

Dear mypal
感谢你的努力,我已经在HA使用上了你开发的集成,并顺利接入HomeKit。
我使用的网关是DTA117D611,在配置时我选择的是DTA117C611,配置好以后并没有什么大的问题。
但是我仍然遇到了一些小问题,不知道有没有解决的办法:
1.我的家中并没有Aqara或者其他温度传感器,所以home kit始终显示我的环境为21度?
2.在进入homekit调节温度的界面后,有的主机可以显示“关闭,制冷,制热”,有的只有“开/关”?

期待你的回复。

Mypal先生我的ha dsair不能用了

Logger: aiohttp.server
Source: custom_components/ds_air/ds_air_service/service.py:204
Integration: DS-AIR (documentation)
First occurred: 15:02:15 (13 occurrences)
Last logged: 19:00:42

`此错误来自自定义集成。

Logger: aiohttp.server
Source: custom_components/ds_air/ds_air_service/service.py:204
Integration: DS-AIR (documentation)
First occurred: 15:02:15 (13 occurrences)
Last logged: 19:00:42

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 218, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 225, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 243, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1625, in async_create_flow
return HANDLERS[entry.domain].async_get_options_flow(entry)
File "/config/custom_components/ds_air/config_flow.py", line 81, in async_get_options_flow
return DsAirOptionsFlowHandler(config_entry)
File "/config/custom_components/ds_air/config_flow.py", line 93, in init
self._climates = list(map(lambda state: state.alias, Service.get_aircons()))
File "/config/custom_components/ds_air/ds_air_service/service.py", line 204, in get_aircons
return Service._new_aircons+Service._aircons+Service._bathrooms
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
`

一直在初始化
Home Assistant 2022.11.1
Supervisor 2022.10.2
Operating System 9.3
前端版本: 20221102.1 - latest

又来热乎的报错了...

插件已经是最新版(非release),HA 是 2023.2.0

[homeassistant.helpers.frame] Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for ds_air using this method at custom_components/ds_air/init.py, line 50: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

添加集成失败

Home Assistant 2023.4.6
前端版本: 20230411.1 - latest

在添加集成的时候发生错误,提示:

无法加载配置向导: {"message":"Invalid handler specified"}

HVACAction.DRYING, None, None, HVACAction.PREHEATING, HVACAction.DRYING]

Logger: homeassistant.loader
Source: custom_components/ds_air/ds_air_service/ctrl_enum.py:302
Integration: DS-AIR ([documentation](https://github.com/mypal/ha-dsair))
First occurred: 22:22:41 (4 occurrences)
Last logged: 22:24:09

Unexpected exception importing platform custom_components.ds_air.config_flow
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 779, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 796, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/ds_air/__init__.py", line 12, in <module>
    from .const import CONF_GW, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_GW, DOMAIN
  File "/config/custom_components/ds_air/const.py", line 5, in <module>
    from .ds_air_service.ctrl_enum import EnumSensor
  File "/config/custom_components/ds_air/ds_air_service/ctrl_enum.py", line 302, in <module>
    HVACAction.DRYING, None, None, HVACAction.PREHEATING, HVACAction.DRYING]
  File "/usr/local/lib/python3.10/enum.py", line 437, in __getattr__
    raise AttributeError(name) from None
AttributeError: PREHEATING

Uncaught thread exception

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 25, 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 88, in result_factory
    result.load_bytes(subbody)
  File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 180, in load_bytes
    self._sensor_type = d.read1()
  File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 100, in read1
    s = struct.unpack('<B', self._b[pos:pos + 1])[0]
struct.error: unpack requires a buffer of 1 bytes

code version: master
device version: DTA117C611

风向功能无效

本来想用这个锁死风向自动模式,然而除了左右都没用,而且任意风向操作集成内风向都会变成左右,具体不明。网关型号DTA117D611

DTA117D611选择了C611端口也是默认一直转圈安装不了

ha版本是最新的。插件也是下载的最新 debug日志如下 一直转圈安装不了
ModuleNotFoundError: No module named 'custom_components.hass-xiaodu-main.logbook'
2023-11-14 12:28:07.786 DEBUG (MainThread) [custom_components.ds_air] 192.168.110.17:8008 DTA117C611 5
2023-11-14 12:28:07.816 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] connected
2023-11-14 12:28:07.823 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] send hex: 0x0210000d0001000100000000000000000100a003
2023-11-14 12:28:07.824 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:28:07.825 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] �[31mHandShakeParam:�[0m {
2023-11-14 12:28:07.826 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] cmd_id: 1
2023-11-14 12:28:07.826 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_HAND_SHAKE
2023-11-14 12:28:07.827 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] cnt: 1
2023-11-14 12:28:07.827 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] has_result: True
2023-11-14 12:28:07.828 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.829 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:07.829 DEBUG (SyncWorker_9) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:07.838 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x0211000d0000000100000000000000000001000203
2023-11-14 12:28:07.839 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.841 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mAckResult:�[0m {
2023-11-14 12:28:07.842 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 1
2023-11-14 12:28:07.842 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:28:07.842 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.843 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 0
2023-11-14 12:28:07.843 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:07.845 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x021e000d0000000100000000000000000000a0323032333131313431323238303703
2023-11-14 12:28:07.846 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.847 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mHandShakeResult:�[0m {
2023-11-14 12:28:07.847 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 1
2023-11-14 12:28:07.848 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_HAND_SHAKE
2023-11-14 12:28:07.848 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.848 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 0
2023-11-14 12:28:07.849 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:07.852 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] send hex: 0x0213000d00010002000000000000000001300001ffff03
2023-11-14 12:28:07.852 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:28:07.854 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mGetRoomInfoParam:�[0m {
2023-11-14 12:28:07.854 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 2
2023-11-14 12:28:07.855 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_GET_ROOM_INFO
2023-11-14 12:28:07.855 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cnt: 2
2023-11-14 12:28:07.856 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] has_result: True
2023-11-14 12:28:07.856 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.856 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] room_ids: [
2023-11-14 12:28:07.857 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] 0: 65535]
2023-11-14 12:28:07.857 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:07.858 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM
2023-11-14 12:28:07.858 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] type: 1}
2023-11-14 12:28:07.860 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] send hex: 0x0211000d000100030000000819000000015900ff03
2023-11-14 12:28:07.860 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:28:07.861 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mSensor2InfoParam:�[0m {
2023-11-14 12:28:07.862 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 3
2023-11-14 12:28:07.862 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SENSOR2_INFO
2023-11-14 12:28:07.862 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cnt: 3
2023-11-14 12:28:07.863 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] has_result: True
2023-11-14 12:28:07.863 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.864 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:07.864 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SENSOR}
2023-11-14 12:28:07.867 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x0211000d0000000200000000000000000001000203
2023-11-14 12:28:07.868 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.870 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mAckResult:�[0m {
2023-11-14 12:28:07.870 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 2
2023-11-14 12:28:07.870 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:28:07.871 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.871 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 0
2023-11-14 12:28:07.872 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:07.872 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x022a040d00010002000000000000000000300015001501000304312d303009e8b49fe4ba8ce5868508382d34372e706e67010012000000010004312d3030042002751002000304312d303116e4b880e6a5bce5aea2e58e852de6b299e58f91e58cba08382d34372e706e67010012000000010004312d303104e000751003000304312d303209e8b49fe4ba8ce5a49608382d34372e706e67010012000000010004312d3032048800751004000304312d30330ce4ba8ce6a5bce6aca1e58da708382d34372e706e67010017000000010004312d3033048848c01105000304312d30340ce4ba8ce6a5bce4b8bbe58da708382d34372e706e67010017000000010004312d303404e8cec01106000304312d303509e794b5e5bdb1e999a208382d34372e706e67010017000000010004312d303504c4cdc41107000304312d30360ce4b889e6a5bce4b8bbe58da708382d34372e706e67010017000000010004312d303604f45cc01108000304312d30370fe4ba8ce6a5bce8b5b7e5b185e5aea408382d34372e706e67010012000000010004312d303704dcdc0c4009000304312d30380ce59b9be6a5bce4b9a6e688bf08382d34372e706e67010017000000010004312d303804e221c0110a000304312d30390fe4b889e6a5bce58dabe7949fe997b408382d34372e706e67010017000000010004312d30390412ebc4110b000304312d31300fe4b889e6a5bce69bb4e8a1a3e5aea408382d34372e706e67010017000000010004312d3130041267c2110c000304312d313109e6a38be7898ce5aea408382d34372e706e67010017000000010004312d31310486f7c4110d000304312d313206e58ea8e688bf08382d34372e706e67010012000000010004312d31320435a0c0110e000304312d313306e88cb6e5aea408382d34372e706e67010012000000010004312d3133042d2371100f000304312d313406e59cb0e69a9608382d34372e706e67010016000000010004312d3134046369e0b010000304312d31350fe59cb0e4b88be5aea4e59cb0e69a9608382d34372e706e67010016000000010004312d3135041b45e0b011000304322d303006e9a490e58e8508382d34372e706e67010012000000010004322d3030046f87751012000304322d30310fe59b9be6a5bce6a5bce6a2afe997b408382d34372e706e67010012000000010004322d3031041f14751013000304322d303216e4b880e6a5bce5aea2e58e852de585a5e997a8e58cba08382d34372e706e67010012000000010004322d303204df00751014000304322d303309e58fb0e79083e5aea408382d34372e706e67010012000000010004322d303304ff0074102100030b73656e736f72736b6974320ce79b91e6b58be4b8ade5bf8308382d33332e706e6701001900000002000c
2023-11-14 12:28:07.873 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.874 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mNoneType:�[0m {}
2023-11-14 12:28:07.874 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x63386339613365333263343009e5bdb1e99fb3e5aea40c63386339613365333265613809e581a5e8baabe688bf03
2023-11-14 12:28:07.875 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.876 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mNoneType:�[0m {}
2023-11-14 12:28:07.920 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x0211000d00000003000000000000000000010002030292000d0001000300000008190000000059000102213e0300c8c9a3e32c4009e5bdb1e99fb3e5aea47f00e400c6010c0090010102000000011801ff7fff7fff7f4b000000e8030000023c000a0001010116000800213e0301c8c9a3e32ea809e581a5e8baabe688bf7f00e400fb010a0088020103000000011801ff7fff7fff7f4b000000e8030000023c000a000101011600080003
2023-11-14 12:28:07.923 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.924 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mAckResult:�[0m {
2023-11-14 12:28:07.925 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 3
2023-11-14 12:28:07.925 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:28:07.926 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.927 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 0
2023-11-14 12:28:07.927 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:07.927 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:07.933 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mSensor2InfoResult:�[0m {
2023-11-14 12:28:07.934 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 3
2023-11-14 12:28:07.934 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SENSOR2_INFO
2023-11-14 12:28:07.935 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] count: 2
2023-11-14 12:28:07.936 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] mode: 1
2023-11-14 12:28:07.936 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:07.936 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] room_id: 33
2023-11-14 12:28:07.936 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sensor_type: 3
2023-11-14 12:28:07.937 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sensors: [
2023-11-14 12:28:07.937 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] 0: �[31mSensor:�[0m {
2023-11-14 12:28:07.937 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] alias: 影音室
2023-11-14 12:28:07.938 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2: 400
2023-11-14 12:28:07.938 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2_lower: 0
2023-11-14 12:28:07.939 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2_upper: 1000
2023-11-14 12:28:07.939 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] connected: True
2023-11-14 12:28:07.939 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] hcho: 0
2023-11-14 12:28:07.940 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] hcho_upper: 10
2023-11-14 12:28:07.940 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity: 454
2023-11-14 12:28:07.940 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity_lower: 32767
2023-11-14 12:28:07.941 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity_upper: 32767
2023-11-14 12:28:07.941 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] id: 0
2023-11-14 12:28:07.941 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] mac: c8c9a3e32c40
2023-11-14 12:28:07.942 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] name: 影音室
2023-11-14 12:28:07.942 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25: 12
2023-11-14 12:28:07.942 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25_lower: 0
2023-11-14 12:28:07.943 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25_upper: 75
2023-11-14 12:28:07.943 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] room_id: 33
2023-11-14 12:28:07.944 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sensor_type: 3
2023-11-14 12:28:07.944 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sleep_mode_count: 1
2023-11-14 12:28:07.945 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] start_time: 0
2023-11-14 12:28:07.945 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] stop_time: 0
2023-11-14 12:28:07.945 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] switch_on_off: True
2023-11-14 12:28:07.945 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp: 228
2023-11-14 12:28:07.946 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp_lower: 32767
2023-11-14 12:28:07.946 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp_upper: 280
2023-11-14 12:28:07.946 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] time_millis: 1699936087.9223351
2023-11-14 12:28:07.947 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] tvoc: 2
2023-11-14 12:28:07.947 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] tvoc_upper: 60
2023-11-14 12:28:07.948 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] type1: 127
2023-11-14 12:28:07.948 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] type2: 0
2023-11-14 12:28:07.948 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] unique_id: daikin_33_0
2023-11-14 12:28:07.948 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] unit_id: 0
2023-11-14 12:28:07.949 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] voc: STEP_1
2023-11-14 12:28:07.951 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] voc_lower: 2}
2023-11-14 12:28:07.952 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] 1: �[31mSensor:�[0m {
2023-11-14 12:28:07.952 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] alias: 健身房
2023-11-14 12:28:07.953 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2: 648
2023-11-14 12:28:07.953 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2_lower: 0
2023-11-14 12:28:07.953 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] co2_upper: 1000
2023-11-14 12:28:07.954 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] connected: True
2023-11-14 12:28:07.954 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] hcho: 0
2023-11-14 12:28:07.954 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] hcho_upper: 10
2023-11-14 12:28:07.955 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity: 507
2023-11-14 12:28:07.955 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity_lower: 32767
2023-11-14 12:28:07.956 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] humidity_upper: 32767
2023-11-14 12:28:07.956 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] id: 0
2023-11-14 12:28:07.956 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] mac: c8c9a3e32ea8
2023-11-14 12:28:07.957 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] name: 健身房
2023-11-14 12:28:07.957 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25: 10
2023-11-14 12:28:07.957 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25_lower: 0
2023-11-14 12:28:07.958 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] pm25_upper: 75
2023-11-14 12:28:07.958 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] room_id: 33
2023-11-14 12:28:07.958 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sensor_type: 3
2023-11-14 12:28:07.959 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] sleep_mode_count: 1
2023-11-14 12:28:07.959 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] start_time: 0
2023-11-14 12:28:07.959 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] stop_time: 0
2023-11-14 12:28:07.960 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] switch_on_off: True
2023-11-14 12:28:07.960 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp: 228
2023-11-14 12:28:07.960 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp_lower: 32767
2023-11-14 12:28:07.961 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] temp_upper: 280
2023-11-14 12:28:07.961 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] time_millis: 1699936087.9228146
2023-11-14 12:28:07.962 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] tvoc: 3
2023-11-14 12:28:07.962 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] tvoc_upper: 60
2023-11-14 12:28:07.963 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] type1: 127
2023-11-14 12:28:07.963 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] type2: 0
2023-11-14 12:28:07.963 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] unique_id: daikin_33_1
2023-11-14 12:28:07.964 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] unit_id: 1
2023-11-14 12:28:07.964 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] voc: STEP_1
2023-11-14 12:28:07.964 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] voc_lower: 2}]
2023-11-14 12:28:07.965 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:07.965 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SENSOR}
2023-11-14 12:28:11.964 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x02000003
2023-11-14 12:28:11.965 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:28:11.966 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mHeartbeatResult:�[0m {
2023-11-14 12:28:11.967 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 0
2023-11-14 12:28:11.967 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:28:11.967 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:11.968 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:11.968 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:28:37.835 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] send hex: 0x02000003
2023-11-14 12:28:37.836 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:28:37.837 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31mHeartbeatParam:�[0m {
2023-11-14 12:28:37.837 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_id: 4
2023-11-14 12:28:37.837 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:28:37.837 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cnt: 4
2023-11-14 12:28:37.837 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] has_result: False
2023-11-14 12:28:37.838 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:28:37.838 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:28:37.838 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:29:37.840 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] send hex: 0x02000003
2023-11-14 12:29:37.841 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:29:37.842 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31mHeartbeatParam:�[0m {
2023-11-14 12:29:37.842 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_id: 5
2023-11-14 12:29:37.842 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:29:37.842 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cnt: 5
2023-11-14 12:29:37.842 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] has_result: False
2023-11-14 12:29:37.843 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:29:37.843 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:29:37.843 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:30:11.967 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] recv hex: 0x02000003
2023-11-14 12:30:11.968 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mrecv:�[0m
2023-11-14 12:30:11.969 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] �[31mHeartbeatResult:�[0m {
2023-11-14 12:30:11.969 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_id: 0
2023-11-14 12:30:11.969 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:30:11.970 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:30:11.970 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:30:11.970 DEBUG (Thread-2) [custom_components.ds_air.ds_air_service.service] target: SYSTEM}
2023-11-14 12:30:37.845 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] send hex: 0x02000003
2023-11-14 12:30:37.846 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31msend:�[0m
2023-11-14 12:30:37.847 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] �[31mHeartbeatParam:�[0m {
2023-11-14 12:30:37.847 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_id: 6
2023-11-14 12:30:37.847 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cmd_type: SYS_ACK
2023-11-14 12:30:37.847 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] cnt: 6
2023-11-14 12:30:37.848 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] has_result: False
2023-11-14 12:30:37.848 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] need_ack: 1
2023-11-14 12:30:37.848 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] subbody_ver: 1
2023-11-14 12:30:37.848 DEBUG (Thread-3) [custom_components.ds_air.ds_air_service.service] target: SYSTEM

您好关于重启ha后 ds_air无法使用的问题

首先非常感谢制作这个组建能够让家里的大金通过ha进行控制,并且我也使用了一段时间,日常工作时非常完美。
但是当我重启一次ha的时候就会出现无法载入ds_air的问题,需要重新安装并进行相关配置才可以继续使用。
具体错误如下:
Logger: homeassistant.bootstrap
Source: bootstrap.py:409
First occurred: 21:55:10 (4 occurrences)
Last logged: 21:58:11
Waiting on integrations to complete setup: ds_air

Logger: root
Source: custom_components/ds_air/ds_air_service/service.py:292
Integration: DS-AIR (documentation)
First occurred: 21:58:58 (1 occurrences)
Last logged: 21:58:58

Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 134, in run
Service.poll_status()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 292, in poll_status
for i in Service._new_aircons:
TypeError: 'NoneType' object is not iterable

ha版本为:2021.8.8 整个ha是通过esxi以虚拟机的形式安装的haos。
再次感谢您制作的组件,如果方便,望能够解决这个重启后无法使用的问题,谢谢。

开始报错了

重新装了home assistant,通过hacs添加好dsair之后,启动报错。
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/home/pi/.homeassistant/custom_components/ds_air/ds_air_service/service.py", line 134, in run
Service.poll_status()
File "/home/pi/.homeassistant/custom_components/ds_air/ds_air_service/service.py", line 292, in poll_status
for i in Service._new_aircons:
TypeError: 'NoneType' object is not iterable

选择DS-AIR, 报错了.

日志:

2021-07-25 11:22:33 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration ds_air: cannot import name 'FlowResult' from 'homeassistant.data_entry_flow' (/volume2/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/data_entry_flow.py)

求支持HD和新风

我是DTA117D611,选了DTA117C611可以接入,配置后能发现空调和传感器。
不知能否开发出新风和HD,HD是地暖模块,这些我都装了。
会简单抓包,简单python,如果我可以做些什么,请联系我。

104版本求助

104版本,按照您说的添加到了custom_components,启动没有报错,service也有了,但是没有相关的实体啊?
configuration里写的内网网关的IP和默认8008端口,想请教一下怎么排查问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.