krasnoukhov / homeassistant-nova-poshta

Home Assistant Nova Poshta integration
MIT License
11 stars 0 forks source link

Poshtomat entity stopped working #8

Open artzillla opened 1 month ago

artzillla commented 1 month ago

Hello,

I'm not sure if it's integration issue or not, but for some reason poshtomat entity became unavailable even though it was working previously. I created another api key just to double check if there is an issue with my key and recreated this integration from scratch, but only one entity is shown (regular branch), poshtomat is missing.

krasnoukhov commented 4 weeks ago

Thanks for the report, did you receive any parcels to the poshtomat recently?

artzillla commented 3 weeks ago

I usually get parcels on either poshtomat or regular branch - both of them are displayed in my nova poshta account. I don't remember if I had any parcels or not, but before the update it actually worked vice versa - I could see poshtomat entity only and I can confirm that I'm receiving a number of parcel in the poshtomat and didn't receive anything on the regular branch for quite a long time. Are you suggesting that API returns recent branches only?

Anyway, after updating to the newest version I can see 2 entities for now 👍 Please let me know if you want me to close this issue! Thanks!

krasnoukhov commented 3 weeks ago

Are you suggesting that API returns recent branches only

Yes, it does:

https://github.com/krasnoukhov/homeassistant-nova-poshta/blob/048acbbd03073f1e1e7d4003ed730d7c4d673d51/custom_components/nova_poshta/coordinator.py#L66-L69

We query the parcels for the last 2 weeks and based on that we create the sensors. Does this work for you?