Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install integraton - finds name but not device #9

Closed
sanderlv opened this issue Dec 25, 2021 · 10 comments
Closed

Cant install integraton - finds name but not device #9

sanderlv opened this issue Dec 25, 2021 · 10 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@sanderlv
Copy link

sanderlv commented Dec 25, 2021

Version of the custom_component

0.3.0

Configuration

Add your logs here.

Add your logs here.

image

Describe the bug

I can install the custom component via HACS. I can choose the integration. But I cannot install it.

Debug log


Add your logs here.

I have succesfully used "midea_dehumidfier" custom component for about 2 years but wanted to switch to yours because of the "tank full" sensor. But I have no luck with yours. This one I use:
https://github.com/barban-dev/homeassistant-midea-dehumidifier

@nbogojevic
Copy link
Owner

Do you know the IP of your dehumidifier on local network? You can enter it in the field above and it should be recognized.

Normally, the integration looks on local network for devices that answer to query packet. It may be that your dehumidifier is not on same subnet, and in that case this integration can't discover, but if you know IP, you can provide it manually.

If you activate debug logs for the library via configuration.yaml, it may help diagnose the problem

# ...
logger:
  # ... your regular logger conf
  logs:
    custom_components.midea_dehumidifier_lan: debug
    midea_beautiful_dehumidifier: debug
# ...

@sanderlv
Copy link
Author

It is on same subnet and I know IP... tried that but no luck

@nbogojevic
Copy link
Owner

If you can get some logs, we may look further. You can also have a look at https://github.com/nbogojevic/midea-beautiful-dehumidifier it has some command line tools for investigating.

@user45876
Copy link

user45876 commented Dec 25, 2021

I am having the same issue. The ip is known and online. This is getting logged in HA. Device is a comfee branded Midea MDDF-16DEN7-WF Dehumidifier.

This seems to be the error:
ProtocolError: ProtocolException Only version 3 is supported, was id=17592186xxxxxx ip=192.168.240.159:6444 version=2

This is the whole log in home assistant:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: aiohttp.server

Source: custom_components/midea_dehumidifier_lan/config_flow.py:92

Integration: Midea Dehumidifier (LAN) (documentation, issues)

First occurred: 21:57:28 (4 occurrences)
Last logged: 21:58:32

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/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 98, 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 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post return await super().post(request, flow_id) 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 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/midea_dehumidifier_lan/config_flow.py", line 263, in async_step_unreachable_appliance await self.hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/midea_dehumidifier_lan/config_flow.py", line 92, in validate_appliance discovered = get_appliance_state(ip=appliance.ip, cloud=cloud) File "/usr/local/lib/python3.9/site-packages/midea_beautiful_dehumidifier/lan.py", line 660, in get_appliance_state if appliance.identify_appliance(cloud): File "/usr/local/lib/python3.9/site-packages/midea_beautiful_dehumidifier/lan.py", line 558, in identify_appliance raise ProtocolError(f"Only version 3 is supported, was {self}") midea_beautiful_dehumidifier.exceptions.
ProtocolError: ProtocolException Only version 3 is supported, was id=17592186xxxxxx ip=192.168.240.159:6444 version=2

@nbogojevic
Copy link
Owner

@user45876 can you check the firmware of the device in your Midea app?

Meanwhile, I'm going to try to add protocol v2 support, but I'm afraid I can't test it as I have only v3 appliances. Would you be interested in beta testing it?

@user45876
Copy link

@nbogojevic Of course, I would be glad and honored.
Firmware is 056004051538 .

@nbogojevic nbogojevic added the enhancement New feature or request label Dec 27, 2021
@nbogojevic
Copy link
Owner

@user45876 version 0.4.1 should have initial support for v2. As I can't test it, I'd appreciate any feedback.

@nbogojevic nbogojevic added this to the v0.5 milestone Dec 28, 2021
@nbogojevic nbogojevic added the duplicate This issue or pull request already exists label Dec 28, 2021
@nbogojevic
Copy link
Owner

@user45876 @sanderlv let's continue discussion in #10

@user45876
Copy link

Will gladly come back to you tomorrow 😇

@Bimboboy007
Copy link

Hello, have the same problem and also the firmware 0560004051538 on one device.
I dated to the version today but it didn't work.
Wouldn't it be easier to update the firmware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants