mypal / ha-dsair

Daikin DS-AIR Custom Component For Home Assistant
MIT License
115 stars 39 forks source link

设备无法通过端口访问 #41

Closed hging closed 1 year ago

hging commented 1 year ago

DTA117D611 网关。 请问是否需要申请特殊权限等操作,目前看网关端口没开。 感谢解答。

xrh0905 commented 1 year ago

添加没有成功吗?

JinKC commented 1 year ago

同问,DTA117D611,添加不成功。之前本来是正常的,几个月前突然就显示“不可用”。删除集成重新添加,会卡在选择要添加的传感器实体界面(一直转),然后报错。

现在显示“未加载” IMG_4249

点开“选项”显示如下 IMG_4250

不知与“金制空气” App 的升级是否有关。感谢开发者🌹

xrh0905 commented 1 year ago

日志中有任何异常吗? @JinKC

xrh0905 commented 1 year ago

是什么类型的安装? core(直接pip装) docker 还是OS 或者 Supervisor?

JinKC commented 1 year ago

日志中有任何异常吗?

此错误来自自定义集成。

Logger: aiohttp.server Source: custom_components/ds_air/ds_air_service/service.py:205 Integration: DS-AIR (documentation) First occurred: 10:54:48 (8 occurrences) Last logged: 11:46:57

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 79, 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 215, in post return await super().post(request) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 70, in post result = await self._flow_mgr.async_init( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 222, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 240, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1555, 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 205, in get_aircons return Service._new_aircons+Service._aircons+Service._bathrooms TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

JinKC commented 1 year ago

是什么类型的安装? core(直接pip装) docker 还是OS 或者 Supervisor?

docker 中的 supervisor。

之前是成功过的,忘了从什么时候开始突然就不行了,也没注意是否与 App 升级有关。

mypal commented 1 year ago

50

hging commented 1 year ago

这个最后我检查了下问题,是因为 D611 的网关是无线网关,导致实际使用的是两个 ip,但是在路由器中仅显示一个。 获取到真实 ip 后成功接入。 例如我在路由器中看到的 ip 是 192.168.0.3 实际设备的使用 ip 是 192.168.0.4 通过设备发送的网络请求发现了该问题。

mypal commented 1 year ago

这个最后我检查了下问题,是因为 D611 的网关是无线网关,导致实际使用的是两个 ip,但是在路由器中仅显示一个。 获取到真实 ip 后成功接入。 例如我在路由器中看到的 ip 是 192.168.0.3 实际设备的使用 ip 是 192.168.0.4 通过设备发送的网络请求发现了该问题。

你有传感器设备么,传感器是esp32通过WiFi接入的,也会拥有一个IP,是不是用成这个IP了