Perhaps its me but my original multiscrape still functions I believe. I dont have any automations or whatsoever but purely for display. I still get updates about dhl packages ![]()
Normally, when you can authenticate using your saved X-AUTH-TOKEN cookie, you can still fetch the data and the form_submit function of multiscrape isnât used.
My problem was, as I just started using this integration, the initial login doesnât work so the token canât be fetched.
Your response brings me hope the X-AUTH-TOKEN doesnât expire (soon) so this solution is a good workaround until someone finds a quicker way.
@Milenco1 when I login step 1 result is I logged in without token.
how do I get the X-AUTH-TOKEN ?
Once you have logged in, can get visit the page in your browser to see the JSON data? Then the cookie is stored in your browser and need to retrieve it via Developer Tools.
See: View, add, edit, and delete cookies | Chrome DevTools | Chrome for Developers
Are you sure you are looking correctly? Maybe this helps: https://www.youtube.com/watch?v=E-j-vlDuYtA
thank you, now I managed to get the sensor but strggling with my already existing sensor in command_line.
dumb question: do you know how I get this right ?
Itâs probably a yaml/indentation error. See the docs (Command line - Home Assistant), youâll probably need to use:
# Example configuration.yaml entry
command_line:
- sensor:
command: SENSOR_COMMAND
- sensor:
command: SENSOR_COMMAND_2
Try it directly from configuration.yaml first and then include.
remove the âsensor:â from line 8
both solutions unfortunately didnât work
The command line works for me so far. Hopefully the token is for a long time :-). Thanks a lot.
Hi,
Everything is up and running.
But donât see the entity for the letters.
Now wonder if I got right package installed
See as hacs:
So version 2.1.0 is installed?
But at the postnl integration
Here it says 1.3.0
Did Install postnl at hacs with the url.
Why i donât see letters⌠Even entity is not there.
Got only 2.
sensor.postnl_letters is not showing up for me too
I added a package.yaml but no new enititie cam up and I see nothing in logs, how to debug? restarted several times, and config seems to be valid.
sensor:
- platform: command_line
name: DHL Packages
command: 'curl -v --cookie "X-AUTH-TOKEN=mytoken" https://my.dhlecommerce.nl/receiver-parcel-api/parcels'
value_template: "{{ value_json.parcels | list | count }}"
json_attributes:
- parcels
I have next code in the configuration.yaml
#dhl pakketten
command_line:
- sensor:
name: DHL Packages
command: 'curl -v --cookie "X-AUTH-TOKEN=my apicode" https://my.dhlecommerce.nl/receiver-parcel-api/parcels'
value_template: "{{ value_json.parcels | list | count }}"
json_attributes:
- parcels
See command_line and sensor difference.
Maybe this will help
Thanks, I had that before and use it now again, but same resultâŚ
You do use package.yaml ?
And when put in configuration.yaml?
Got the DHL senors up and running. but now the DPD.
But can find X-AUTH on DPD site
https://www.dpdgroup.com/nl/mydpd/my-parcels/incoming
So a request: add dpd
Have you been able to fix letters not showing up?





