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

Does the integration give up trying to contact the wiser hub? #122

Closed
dangel666 opened this issue Oct 28, 2020 · 10 comments
Closed

Does the integration give up trying to contact the wiser hub? #122

dangel666 opened this issue Oct 28, 2020 · 10 comments

Comments

@dangel666
Copy link

Had a problem with power today and this knocked out my PI4 which runs HASSIO and of course the wiser control panel too. Noticed all my entities were stuck in 'restored' stage and my lovelace cards for my TRVs dead too. My logs seemed to show HA gave up trying to contact the wiser hub (I've got a fixed IP) but it was running (schedules running and control fine via the android wiser app).

I power cycled the wiser CP, waiting and rebooted HASSIO - all is now well..

If the wiser CP goes offline would I always need a reboot of HA to pick it up again or is there a way of asking the integration to hang on in there, don't give up buddy it'll be back?

@scooper1
Copy link

A lot of effort has been put in to stop this behavior
this problem only happens during reboot

hassio now has the ability to reload integrations on the integration page but it's not enabled on the wiser - maybe as simple as registering a callback?

I not checked but suspect there would be a service call to reload integration via hassio engine

i could then do a bit of node-red to trigger a reload

@msp1974
Copy link
Collaborator

msp1974 commented Oct 28, 2020

@scooper. As far as I know you can reload the wiser integration. Is there something I am missing that you see/don't see happening?

@dangel666 I think there maybe a small bug in the code that if it gets a 4xx return code from the api call, it does not try to connect later. It is supposed to do this but I think it never gets to this part of the code.

Agree with @scooper1 that this is only an issue on hassio load if it cannot reach the wiser hub (situation you clearly had with a power cut).

Will leave this issue open to fix the bug and ensure it doesn't create another issue by doing so.

Note to self - line 107 in init.py is never reached as function returns false on line 106. Should raise ConfigEntryNotReady error to allow retry.

@scooper1
Copy link

scooper1 commented Oct 28, 2020 via email

@dangel666
Copy link
Author

Ah, thanks so much for the responses - this makes some sense. I'm due to have some power issues tomorrow (power meter is being replaced) so I'll fiddle a bit more if it reoccurs (and check if i can reload the int). I realised after the fact that i should of grabbed the logs in front of me (so much for being in Software for 30+ years..) doh.

@scooper1
Copy link

um the reload option is not available if the wiser integration does not start at startup ... duh

@dangel666
Copy link
Author

um the reload option is not available if the wiser integration does not start at startup ... duh

Not sure if this directed at me? In my case it did load, it didn't connect.

@scooper1
Copy link

scooper1 commented Oct 30, 2020 via email

@msp1974
Copy link
Collaborator

msp1974 commented Oct 30, 2020 via email

@scooper1
Copy link

scooper1 commented Oct 30, 2020 via email

msp1974 added a commit to msp1974/wiserHomeAssistantPlatform that referenced this issue Oct 30, 2020
msp1974 added a commit that referenced this issue Oct 30, 2020
Fix issue #122 and show boost end/remain
@msp1974
Copy link
Collaborator

msp1974 commented Oct 30, 2020

Have issued a v2.4beta2 release that will fix this issue. Please report back if you find scenarios that this is not working.

@msp1974 msp1974 closed this as completed Oct 30, 2020
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

3 participants