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

Air conditioner detected, no temperatue new settings accepted, on off switch is missing #56

Closed
HAUSER3 opened this issue May 21, 2022 · 10 comments

Comments

@HAUSER3
Copy link

HAUSER3 commented May 21, 2022

2x air conditioner recognized with 103 dongle, "shareed or split" air conditioners are not recognized, no new settings (temperature changeis not transmitted to air conditioning) are accepted,
mode change is accepted, on/off switch is missing

So far great work!

at log:
2022-05-22 12:17:09 WARNING (SyncWorker_2) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'
2022-05-22 12:17:10 WARNING (SyncWorker_2) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'

@marcoahp
Copy link

marcoahp commented May 27, 2022

Try with this change to climate.py from toxicOn, worked for me, but still with some fails, because at boot climate shows powered on while the AC is powered off :

def set_hvac_mode(self, hvac_mode: str) -> None:
        """Set new target hvac mode."""
        midea_mode = next((i[0] for i in _MODES_MAPPING if i[1] == hvac_mode), None)
        if midea_mode is None:
            midea_mode=0
            if not self.is_on:
                self.turn_on()
            else:
                _LOGGER.warning("Unsupported climate mode %s", hvac_mode)
                self.turn_off()
        self.apply("mode", midea_mode)

@HAUSER3
Copy link
Author

HAUSER3 commented May 29, 2022

new massage:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.midea_dehumidifier_lan.appliance_coordinator
Source: custom_components/midea_dehumidifier_lan/appliance_coordinator.py:130
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: 20:58:06 (1 occurrences)
Last logged: 20:58:06

Unexpected error fetching Küche data: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 107, in _async_appliance_refresh
await self._async_do_update()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 130, in _async_do_update
setattr(self.appliance.state, attr, self.updating[attr])
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/appliance.py", line 657, in mode
mode = int(mode)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

@nbogojevic
Copy link
Owner

Hi @HAUSER3 , can you check how it behaves with version v0.8.9?

@HAUSER3
Copy link
Author

HAUSER3 commented Jun 1, 2022

The version is better, unfortunately not yet perfect. Switching on only possible via cooling mode. Temperature change is not accepted. Switching off works via switch. Mode switching works. The designation on the card does not change.

@marcoahp
Copy link

marcoahp commented Jun 2, 2022

The version is better, unfortunately not yet perfect. Switching on only possible via cooling mode. Temperature change is not accepted. Switching off works via switch. Mode switching works. The designation on the card does not change.

How did you installed?

@tadejp5
Copy link

tadejp5 commented Jun 2, 2022

@marcoahp If you are installing through HACS you have to enable beta versions on this integration, then you can install v0.8.9.

@HAUSER3
Copy link
Author

HAUSER3 commented Jun 2, 2022

I have installed Vers 0.8.9 as beta over Hacs.

@HAUSER3
Copy link
Author

HAUSER3 commented Jun 2, 2022

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.midea_dehumidifier_lan.appliance_coordinator
Source: custom_components/midea_dehumidifier_lan/appliance_coordinator.py:109
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: 00:19:56 (2 occurrences)
Last logged: 11:47:16

Unexpected error fetching Küche data: The length of the provided data is not a multiple of the block length.
Unexpected error fetching Schlafzimmer data: The length of the provided data is not a multiple of the block length.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 109, in _async_appliance_refresh
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 381, in refresh
responses = self._status(cmd, cloud)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 540, in _status
responses = self.appliance_send(data)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 679, in appliance_send
return self._appliance_send_8370(data)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 590, in _appliance_send_8370
if packets := self._retry_send(original_data, response_buf):
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 664, in _retry_send
packets = self.appliance_send(data)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 679, in appliance_send
return self._appliance_send_8370(data)
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/lan.py", line 605, in _appliance_send_8370
response = self._security.aes_decrypt(response[40:-16])
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/crypto.py", line 351, in aes_decrypt
decrypted = decryptor.update(raw) + decryptor.finalize()
File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 133, in finalize
data = self._ctx.finalize()
File "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 221, in finalize
raise ValueError(
ValueError: The length of the provided data is not a multiple of the block length.

@nbogojevic
Copy link
Owner

@HAUSER3 can you check if problem persists in version 0.8.10?

@nbogojevic
Copy link
Owner

Closing as investigation is ongoing in #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants