qqaatw / JciHitachiHA

A home assistant integration for controlling Jci-Hitachi devices, using LibJciHitachi backend. 台灣日立雲端模組
Apache License 2.0
116 stars 32 forks source link

Unable to load integration #13

Closed PeterChia604 closed 2 years ago

PeterChia604 commented 2 years ago

For the last two days, been getting an error, indicating the Integration plug-in did not start. Tried to restart, then reload & restart but did not work at all. The issue is persistent.

Any thoughts on how to fix?

Logger: homeassistant.setup Source: setup.py:155 First occurred: 21:37:06 (1 occurrences) Last logged: 21:37:06 Setup failed for jcihitachi_tw: Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.4.6'].

Logger: homeassistant.util.package Source: util/package.py:99 First occurred: 21:36:44 (3 occurrences) Last logged: 21:37:06 Unable to install package LibJciHitachi==0.4.6: ERROR: Cannot install libjcihitachi==0.4.6 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Errors: image image image

System config: image

PeterChia604 commented 2 years ago

I've also manually installed the library as indicated on https://github.com/qqaatw/LibJciHitachi Still unable to resolve.

qqaatw commented 2 years ago

See v0.2.6

PeterChia604 commented 2 years ago

Did the update and restarted. Different error message now. Then I removed (deleted) the integration and added it back in (relogin to the hitachi account) but still get the new message. Restarted HA, same.

image image

qqaatw commented 2 years ago

Problem seemed from HITACHI side. The CI also failed three hours ago at the first test attempt.

https://github.com/qqaatw/LibJciHitachi/runs/5408669537?check_suite_focus=true

immelmanchen commented 2 years ago

Yesterday, I have same problem when upgrade core-2022.3.0. Today. I downgrade to core-2022.2.9, the problem has not happen.

So to upgrade to core-2022.3.0 maybe cause to this problem.

xzero0911 commented 2 years ago

Same here. I just upgrade to core 2022.3.1 and integration can not load issue happened.

qqaatw commented 2 years ago

@immelmanchen @xzero0911 - v0.2.6 should fix the problem, please upgrade and try again.

xzero0911 commented 2 years ago

圖片

@qqaatw Thank you for your reply. After upgrade integration to v0.2.6 and got this new error here.

qqaatw commented 2 years ago

@xzero0911 As I said, the recently occurring problem Failed to login API was from Hitachi's side. This problem, which is home assistant version agnostic, also randomly failed our CI [1] a few days ago. You can take a look at the reviews [2] from Google Play, some people have reported that recently.

[1] https://github.com/qqaatw/LibJciHitachi/runs/5408669537?check_suite_focus=true [2] https://play.google.com/store/apps/details?id=com.hitachi.TaiSEIA.smarthome&hl=zh_TW&gl=US&showAllReviews=true

xzero0911 commented 2 years ago

@qqaatw Fully understand with thanks! I will waiting HITACHI side to resolve this error.

immelmanchen commented 2 years ago

@qqaatw After I upgraded to v0.2.6, but the issue still happened. SmartSelect_20220307-091619_Home Assistant SmartSelect_20220307-091559_Home Assistant

qqaatw commented 2 years ago

@immelmanchen - From the picture provided, it looks that the integration wasn't upgraded at all.

xzero0911 commented 2 years ago

@qqaatw Thanks for kindly help, I confirm HITACH side resolved API login issue in this morning. Device in HA also works well again.

To whom have same issue. If still not works, Your HITACHI device and HA should need to fully restart once. Specs in my case. HA core 2022.3.1 HA OS 7.2 JciHitachiHA v0.2.6

PeterChia604 commented 2 years ago

I am still having issues, now it is a little different. image image

My system has been updated to core-2022.3.2 image

I had deleted the integration from Configuration-> Devices&Services -> JciHitachi TW , restart, reinstall, restart. Same error. I had deleted the integration from HACS, restart, re-install from HACS, restart, From Configuration-> Devices&Services -> add JciHitachi TW. The initial login is fine. It accepts the account/password and proceeds. but same error message.

login is fine: image

immelmanchen commented 2 years ago

@qqaatw Thank for your reply, I try to upgrade v0.2.6 again and my core is 2022.3.2 Now JciHitachi is working well. Thank you for your help.

qqaatw commented 2 years ago

@PeterChia604 -

Using HACS or not doesn't matter I believe, though it wasn't tested before.

One important point needed to be clarified is that passing credential verification doesn't mean device statuses retrieved successfully as they use different protocol to connect.

The login verification and device list retrieval use http-based connection, which work 99% time without problem. On the other hand, the support and status code retrieval uses mqtt-based connection, which seems not optimized well and thereby has issues sometimes.

If the app cannot connect to the device, this integration will not work either. No magic inside the integration.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AaronFUFU commented 2 years ago

型號:RD-240HH 重啟HA後時常讀取不到設備,會顯示Failed to login API。

qqaatw commented 2 years ago

Hey @AaronFUFU, I haven't encountered this issue recently. Would be helpful if you provide the logs showing the error Failed to login API.

qqaatw commented 2 years ago

Closing as no further discussion is proposed.

PeterChia604 commented 2 years ago

Just wanted to close this. This is now fix. The issue was nothing from this Integration.
Updated to Home Assistant 2022.4.2 & Supervisor Version to 2022.04.0

After reboot, the JciHitachiHA worked fine. :-) image