mac-zhou / midea-ac-py

Home Assistant Custom Integration for Midea Group(Hualing, Senville, Klimaire, AirCon, Century, Pridiom, Thermocore, Comfee, Toshiba, Carrier, Goodman, Friedrich, Samsung, Kenmore, Trane, Lennox, LG and much more) Air Conditioners via LAN.
MIT License
519 stars 101 forks source link

Platform error climate.midea_ac - Integration 'midea_ac' not found. #150

Closed bigbasti closed 2 years ago

bigbasti commented 2 years ago

Hello everyone,

i need some support since i cant get the integration running.

midea-discover -a XXXXXXX@outlook.com -p XXXXXXXX
INFO:msmart.cli:msmart version: 0.2.3 Currently only supports ac devices, only support MSmartHome APP.
ERROR:msmart.security:authentication failed
ERROR:msmart.lan:Authentication failed for 192.168.178.55:52031 -> 192.168.178.56:6444 retries: 0 time: 0.05
INFO:msmart.lan:Got TCP key for 192.168.178.55:52031 -> 192.168.178.56:6444 retries: 0 time: 0.44 tcp_key: 3df637edfc6229905b0063e007265bd4e44c33420ef0a25f0f0c1XXXXXXXXX
INFO:msmart.cli:*** Found a device: {'name': 'net_ac_591E', 'ssid': 'net_ac_591E', 'ip': '192.168.178.56', 'port': 6444, 'id': 42880953511552, 'version': 3, 'token': '44717049D5449D214609EECA3FA971A41BCDB80D8XXXXXXXXXX28DEFCBC21C4007D640F0C135E59EEBC2D86F4B9B6758E6022D47F94A97BE32A3D6639278CE17', 'key': '4F2C53F73F0B4EAXXXXXXXXXXF8EB3E655885C7053F84D6E9EF2FF236BF7B872', 'type': 'ac', 'sn': '000P0000000Q1B88C2920591E0000', 'model': '00Q1B', 'support': True, 'run_test': True}

I see an authentication error in the output, but my app says that there was another login so i guess the login must have worked. Anyway is copied the values from the output to create the configuration:

climate:
  - platform: midea_ac
    host: 192.168.178.56
    id: 42880953511552
    token: 44717049D5449D214609EECA3FA971A41BCDB80D8XXXXXXXXXX28DEFCBC21C4007D640F0C135E59EEBC2D86F4B9B6758E6022D47F94A97BE32A3D6639278CE17
    k1: 4F2C53F73F0B4EAXXXXXXXXXXF8EB3E655885C7053F84D6E9EF2FF236BF7B872

I pasted this config inside the configuration.yaml at root level (no indents)

Unfortunately, the HA dev tools say this config is invalid:

Platform error climate.midea_ac - Integration 'midea_ac' not found.

It does not let me restart.

Any help appreciated!

bigbasti commented 2 years ago

All of a sudden after retrying the whole process fir the 10th time or so - it started working - sorry for the spam