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

homeassistant Exception: authentication failed #3

Open
lhy741059930 opened this issue Feb 28, 2021 · 6 comments
Open

homeassistant Exception: authentication failed #3

lhy741059930 opened this issue Feb 28, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@lhy741059930
Copy link

lhy741059930 commented Feb 28, 2021

homeassistant Error

Logger: homeassistant.components.climate
Source: custom_components/midea_ac/climate.py:73
Integration: 空调 (documentation, issues)
First occurred: 下午8:20:14 (1 occurrences)
Last logged: 下午8:20:14

Error while setting up midea_ac platform for climate
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/homeassistant/helpers/entity_platform.py", line 198, in _async_setup_platform
    await asyncio.shield(task)
  File "/home/luhaiyong/.homeassistant/custom_components/midea_ac/climate.py", line 73, in async_setup_platform
    device.authenticate(device_8370_only_ac_mac, device_8370_only_wifi_ssid, device_8370_only_wifi_pw)
  File "/usr/local/lib/python3.9/site-packages/msmart/device.py", line 43, in authenticate
    self._authenticate()
  File "/usr/local/lib/python3.9/site-packages/msmart/device.py", line 46, in _authenticate
    self._lan_service.authenticate(self._mac, self._wifi_ssid, self._wifi_pw)
  File "/usr/local/lib/python3.9/site-packages/msmart/lan.py", line 68, in authenticate
    self._authenticate()
  File "/usr/local/lib/python3.9/site-packages/msmart/lan.py", line 80, in _authenticate
    raise error
  File "/usr/local/lib/python3.9/site-packages/msmart/lan.py", line 76, in _authenticate
    tcp_key = self.security.tcp_key(response, self._key)
  File "/usr/local/lib/python3.9/site-packages/msmart/security.py", line 90, in tcp_key
    raise Exception('authentication failed')
Exception: authentication failed

MyConfig
————————————————————————————
climate:

  • platform: midea_ac
    host: 192.168.8.219
    id: 162727722342346
    8370_only_ac_mac: A0681C272AA7
    8370_only_wifi_ssid: iK
    8370_only_wifi_pw: Lhy19941011.
    ————————————————————————————

Versions (版本信息)

  • Home Assistant version: Home Assistant 2021.2.3
  • Midea msmart version: 0.1.20
@lhy741059930 lhy741059930 added the bug Something isn't working label Feb 28, 2021
@lhy741059930 lhy741059930 changed the title homeassistant TypeError: __init__() missing 1 required positional argument: 'device_port' homeassistant Exception: authentication failed Feb 28, 2021
@lhy741059930 lhy741059930 reopened this Feb 28, 2021
@wachux
Copy link

wachux commented Mar 23, 2021

I have the exact same error.
Home Assistant 2021.1.5 in Docker.

@zawias
Copy link

zawias commented Jul 14, 2021

I have the exact same error.
Home Assistant core-2021.7.2

@plutec
Copy link

plutec commented Jul 15, 2021

Try with this version of msmart:

pip3 uninstall msmart
pip3 install git+https://github.com/kueblc/midea-msmart.git@support-8370

@cjlawson02
Copy link

I have this problem too. Home Assistant 2021.7.2 on Docker. Happens with the correct pip package

@maraid
Copy link

maraid commented Jul 20, 2021

Same error. I had a glance at it, but couldn't figure out the reason.

After self.request(request) in lan._authenticate() we get b'\x83p\x00\x05 \x0f\x00\x00ERROR'.
Maybe encoding should happen differently, but I'm not sure where to start. Let me know if I can help debugging this.

@eztmondom
Copy link

I had this problem, the received answer was b'\x83p\x00\x05 \x0f\x00\x00ERROR' (and authentication failed exception).
I installed this new msmart in my windows pc, but the problem is same.

The solution:
Restart the climate hardware device.

Other remark:
I noticed that I can control the climate via android app . But the dns server direct all request from module.appsmb.com:443 to my fake-cloud.service. I test the fake server with YAT, it went will (with dns redirect). That’s when I thought about restarting the climate. After reboot got the climate new server address from dns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants