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

Entities no longer available after HA restart #161

Open
kersten-lohmeyer opened this issue Jun 18, 2024 · 19 comments
Open

Entities no longer available after HA restart #161

kersten-lohmeyer opened this issue Jun 18, 2024 · 19 comments

Comments

@kersten-lohmeyer
Copy link

kersten-lohmeyer commented Jun 18, 2024

Thanks for version 2.0.2, where entity values are remembered even after the printer is offline!

I completely removed the integration and setup from scratch. First setup works flawlessly, values are remembered even after I switch off my printer.

But when I restart HA, values are not remembered (you said that, but still was better in 1.x version). And when I turn my printer on I expected all values to be populated again, but the ink levels did not return. Only pages printed/scanned.

Tried this 2 times now, same problem.

What could be the cause?

EDIT: I just reloaded the integration manually, then the entities show up. But why does this not work automatically?

Bildschirmfoto 2024-06-18 um 09 28 39
@kersten-lohmeyer
Copy link
Author

kersten-lohmeyer commented Jun 18, 2024

Never mind, I think this was a one time problem. I'll have a look at it for some longer time. If it doesn't happen again I'll close this issue.

EDIT: Nope, happened again. Entities are not populated (except pages printed and pages scanned). I have to restart the integration again. Then the values appear immediately.

image

@elad-bar
Copy link
Owner

thanks for the update

@kersten-lohmeyer
Copy link
Author

kersten-lohmeyer commented Jun 20, 2024

Sorry but I am not sure if you have read this correctly, there is still a problem. I may have expressed myself incomprehensibly. 🤔

I always have to restart the integration after a HA restart, even when the printer is on. It does not populate all values, just pages printed/scanned in my case. Ink levels are missing until I restart the integration manually.

Thanks!

@elad-bar elad-bar reopened this Jun 20, 2024
@elad-bar
Copy link
Owner

Sorry, pls provide debug logs of the integration

Thanks

@kersten-lohmeyer
Copy link
Author

@elad-bar
Copy link
Owner

this is diagnostic file, i need logs in debug to see what is being loaded,
in terms of data from diagnostic, all seems fine, everything is loaded

@kersten-lohmeyer
Copy link
Author

this is diagnostic file, i need logs in debug to see what is being loaded, in terms of data from diagnostic, all seems fine, everything is loaded

Ok I enabled debugging and reproduced the problem. Where do I download the debug information?

@elad-bar
Copy link
Owner

you can email it directly to me ([email protected]) or share a link to a place i can download it

thanks

@kersten-lohmeyer
Copy link
Author

kersten-lohmeyer commented Jun 20, 2024

you can email it directly to me ([email protected]) or share a link to a place i can download it

thanks

Ok found it. Emailed it to you. This is after a restart of HA with the printer turned on. Manually reloading the integration brings my ink levels back up.

@elad-bar
Copy link
Owner

great, waiting for the email (still didn't get it)

just to make sure, when the printer is off and you will try to load the integration (restart HA / reload integration) - all entities will be unknown

@kersten-lohmeyer
Copy link
Author

great, waiting for the email (still didn't get it)

just to make sure, when the printer is off and you will try to load the integration (restart HA / reload integration) - all entities will be unknown

True, when printer is off and I restart the integration all entities are unknown. I resent the email from a second email account (iCloud), first one was from Gmail.

@elad-bar
Copy link
Owner

PR #168 is available with the code to fix that bug, but requires more tests,
will release it tomorrow.

thanks for all details and super quick feedback

@elad-bar
Copy link
Owner

pls check v2.0.4

thanks

@kersten-lohmeyer
Copy link
Author

kersten-lohmeyer commented Jun 21, 2024 via email

@gzone156
Copy link

With 2.0.4 on HA 2024.6.4 I still have the wrong behavior described:

  • Everything unavailable on HA restart
  • If I reload the integration with the printer OFF, everything still remains unavailable
  • If I turn the printer on, everything remains unavailable (I haven't waited so long on this step)
  • If I reload the integration with the printer ON, the data becomes available
  • If I turn the printer OFF, the data remains available (correct)

@kersten-lohmeyer
Copy link
Author

With 2.0.4 on HA 2024.6.4 I still have the wrong behavior described:

  • Everything unavailable on HA restart
  • If I reload the integration with the printer OFF, everything still remains unavailable
  • If I turn the printer on, everything remains unavailable (I haven't waited so long on this step)
  • If I reload the integration with the printer ON, the data becomes available
  • If I turn the printer OFF, the data remains available (correct)

Same for me with 2.0.4

@elad-bar
Copy link
Owner

working on fix for it

@kersten-lohmeyer
Copy link
Author

Hi @elad-bar Any update on this? Thanks!

@hmmbob
Copy link
Contributor

hmmbob commented Oct 11, 2024

Still happening on 2024.10. It would be great if the states could get restored after restart of HA.

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