thomasgermain / pymultiMATIC

Python interface with Vaillant multiMATIC
MIT License
56 stars 11 forks source link

problem after reset components #87

Closed lecocqe closed 2 years ago

lecocqe commented 2 years ago

hello Thomas,

i hope you're doing well. my system is stuck. to test, i got the following running dump.py:

Trying to connect with user myuser
Login successful
did 0 requests
received 0 responses
Traceback (most recent call last):
  File "./dump.py", line 97, in <module>
    asyncio.get_event_loop().run_until_complete(main(user, passw))
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "./dump.py", line 86, in main
    print(await manager.set_quick_mode(QuickModes.get('QM_COOLING_FOR_X_DAYS', 2)))
TypeError: get() takes 2 positional arguments but 3 were given

do you have an idea ?

thank you in advance

Eric

thomasgermain commented 2 years ago

Hello Eric,

I'm doing well thanks :) and you ?

What do you mean by stuck ?

I did some improvement to dump.py, it should work

lecocqe commented 2 years ago

I'm doing fine. thank you.

here last result:

Traceback (most recent call last):
  File "./dump.py", line 27, in <module>
    urls.system_ventilation: {},
AttributeError: module 'pymultimatic.api.urls' has no attribute 'system_ventilation'

the real problem i had was with ha component. i tried to debug that's why i created this issue. the problem i had with ha seems now to be solved. I restored with backup of 3 days ago.

thomasgermain commented 2 years ago

Be sure to be on master branch while testing the dump. What was the issue in HA ? Do you have any error ?

lecocqe commented 2 years ago

i used git clone https://github.com/thomasgermain/pymultiMATIC.git

on the HA, it was very strange.

2 days ago, at midnight, Proximus connection stopped. the day after, was everything back ok on ha except Multimatic ... i searched, deleted integration, re-added, ... tried to see what gave dump.py., etc...
A the end, i thougt wat are the symptoms on the vaillant app, i started app and my VR920 had lost its (network) configuration . i tried to re-pair VR920 mutiple times no succes. later on, VR920 was working again (????) app was then working normal but in HA, in integration nothing only" 2 appareils": holiday mode and an other one. then i tried to see wat gave pymultimatic as result.

i finally restore a backup from the day before problem and everyhing is back ok.

sorry for this. i also check my config. i don't need to clone git repo if i use pip3. now everything is ok. pip installed 0.6.7 version. I run a test and it's ok.

we can close this