Here is my auto-entities based card that combines both the PostNL integration and this DHL sensor via multiscape. Unfortunately I’ve only got one package from PostNL at the moment.
Another bit of inspiration for anyone. After setting up the PostNL sensor sensor.postnl_delivery and the DHL sensor sensor.dhl_packages, I’ve created a calendar named calendar.packages. This automation below automatically adds the to the calendar once a delivery time window is known.
For any others having same issue… you need to download the zip folder, unzip - and then install from the folder it creates (even if you create the same named folder).
So, I was able to get it installed an authenticate.
Trying to install the lovelace but there is so much conflicting posts about this I’m struggling to get anywhere.
Hello,
I have now managed to install the integration. I can see the basic sensors (See below).
However, I’m so confused how to install the card?
When I go to this page - the first message says: This card is not compatible with the current Home Assistant component
So, given i’ve the most recent integration, I’m thinking this means that this wont work for me. (although I have tried to install it)
When I go through all the posts in this post… it seems to be referencing this very lovelace card, so I’m a bit confused. It’s also 5 years old…
And then those who have had similar issues - there’s no similarity /resolution…
So, I have some questions:
Where and what is the correct lovelace card?
Is there a definitive guide on how to install this properly?
I know this will likely be down to my lack of dev. knowledge - but I am learning.
Thank you - and thanks to everyone who has made this integration possible, it’s a great idea!
Same issue here, in the browser I do get the json output (before logging in ofcourse). I also tried Postman to troubleshoot the credentials and there it works.
Logs from HA:
2024-10-30 15:03:35.391 ERROR (MainThread) [custom_components.multiscrape.coordinator] Scraper_noname_0 # Updating failed with exception: Client error '400 Bad Request' for url 'https://my.dhlecommerce.nl/api/user/login'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2024-10-30 15:03:35.514 ERROR (MainThread) [custom_components.multiscrape.coordinator] Scraper_noname_1 # Updating failed with exception: Client error '400 Bad Request' for url 'https://my.dhlecommerce.nl/receiver-parcel-api/parcels'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2024-10-30 15:03:35.514 ERROR (MainThread) [custom_components.multiscrape.sensor] Scraper_noname_1 # DHL Pakketten # Unable to scrape data: Skipped scraping because data couldn't be updated
Consider using debug logging and log_response for further investigation.
2024-10-30 15:03:35.514 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.parcels | selectattr('category', 'search', '(PROBLEM|CUSTOMS|DATA_RECEIVED|EXCEPTION|INTERVENTION|IN_DELIVERY|LEG|UNDERWAY|UNKNOWN)') | list }}'
2024-10-30 15:03:37.480 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
EDIT: Somehow after some time it started working. I added a refresh button and this somehow triggered it?
I did add this to the HACS install and to the dashboard resources (althought with another url than mentioned in the readme due to that being the old link and nowadays hacs uses /hacsfiles/
but somehow Lovelace refuses to see the card. Is there anything I am missing to get this working?
Although @ptnijssen’s config was working for me, the sensor was unavailable from time to time. Following multiscape’s documentation, this configuration makes use of the form_submit field. This is been working more consistently for me, but it will break if the CSS selector changes.
sorry, I had a nice status in my postnl_delivery today, but there is no agenda item added to the agenda. I have neatly created the calendar.packages. but unfortunately nothing is added? Could it be that my sensor.dhl_packages is unavailable?
Hi. Is the multiscrape method still working? I’ve tried but for me it doesn’t work. I already changed “:r1:” to “:r3:” because the css selector is changed to this for what I can see. Hopefully you can help me to get it work.
for me the same question. I tried several things to get DHL working. The URL gives in my case a json with parcels in my laptop browser but I think the multiscrape isn’t working due to the cookie/credentials
It seems DHL switched to CloudFlare protection, making it impossible to load the login-form. This is needed to retrieve the X-AUTH-TOKEN cookie to get the actual packages .json-file.