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

DataSignDoesntMatch exception since 0.5.0 #224

Closed
sanderlv opened this issue Jul 10, 2024 · 18 comments
Closed

DataSignDoesntMatch exception since 0.5.0 #224

sanderlv opened this issue Jul 10, 2024 · 18 comments
Labels
bug Something isn't working midea-local library Issue/enanchement in midea-local library

Comments

@sanderlv
Copy link

HA core version

2024.7.2

Current integration version

0.5.1

Last known working integration version

0.4.3

Device type and model

Dehumidifier 00000Q17 (0) by Midea & Dehumidifier 00000Q12 (0) by Midea

Used App

none

The description of problem

Since 0.5.0 and now also on 0.5.1 I have issues with both appliances.

They are "unavailable" most of the time.

Logger: midealocal.device
Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:596
First occurred: 19:26:26 (1 occurrences)
Last logged: 19:26:26

[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 572
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 572, in run
result = self.parse_message(msg)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 385, in parse_message
messages, self._buffer = self._security.decode_8370(self._buffer + msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/midealocal/security.py", line 356, in decode_8370
raise DataSignDoesntMatch
midealocal.exceptions.DataSignDoesntMatch

The logs

https://dpaste.org/683kn

@sanderlv sanderlv added the bug Something isn't working label Jul 10, 2024
@sanderlv sanderlv changed the title Issue since 0.5.0 and 0.5.1 - before nver issues Issue since 0.5.0 and 0.5.1 - before never issues Jul 10, 2024
@sanderlv
Copy link
Author

How do I disable logging via call service?

@sanderlv
Copy link
Author

I "think" but not sure that Dehumidifier 00000Q12 (0) by Midea has "no issues" since this is "online" a while now. Only the Dehumidifier 00000Q17 (0) by Midea will not come online...

@rokam
Copy link
Collaborator

rokam commented Jul 10, 2024

This log is incomplete. I can't see the issue in the integration. Can you please provide full log?

@sanderlv
Copy link
Author

Please help me how to do

@chemelli74 chemelli74 changed the title Issue since 0.5.0 and 0.5.1 - before never issues DataSignDoesntMatch exception since 0.5.0 Jul 10, 2024
@rokam
Copy link
Collaborator

rokam commented Jul 10, 2024

@sanderlv
Copy link
Author

https://dpaste.org/jWmFr

I have reloaded 2 times here... hope this helps

@rokam
Copy link
Collaborator

rokam commented Jul 10, 2024

Have you tried 0.5.2? Can you please install midea-local lib locally?
pip install midea-local

Then run midealocal discover --host 192.168.20.3 -d

@sanderlv
Copy link
Author

I only see 0.5.1...?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I only see 0.5.1...?

@sanderlv
Copy link
Author

Ok 0.5.2 installed. Now both mideas are not working anymore :-(

@chemelli74
Copy link
Collaborator

When reporting an issue, always attach fresh debug log

@sanderlv
Copy link
Author

sanderlv commented Jul 11, 2024

I added 2 fresh debug logs... all was so fine before 0.5.0 I really miss that... How to get back?

This did not work:

service: update.install
data:
  version: 0.4.3
target:
  device_id: 1a69c085cf5ec79a72d6e5e4d82ebd53

@sanderlv
Copy link
Author

Fresh log: https://dpaste.org/mmEPw

@rokam
Copy link
Collaborator

rokam commented Jul 11, 2024

The root cause is the failure to retrieve capabilities. This should fix midea-lan/midea-local#217

@sanderlv
Copy link
Author

I would love this to be fixed again... I rely on this marvelous piece of sw

@rokam rokam added the midea-local library Issue/enanchement in midea-local library label Jul 11, 2024
@rokam
Copy link
Collaborator

rokam commented Jul 13, 2024

@sanderlv can you confirm 0.5.3 fixes the issue?

@sanderlv
Copy link
Author

Hi, currently I reverted to 0.4.3 and all works. I will test after holiday period asap. Thanks in advance!

@rokam rokam closed this as completed Jul 18, 2024
@sanderlv
Copy link
Author

sanderlv commented Aug 5, 2024

0.5.4 fixes! Thank you!

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

No branches or pull requests

4 participants