So the 17Track integration has had some... issues with documentation since 2025.5 deprecated some stuff, and has not been updated. I've been trying to follow the information in the PRs to update the docs, but I think I'm missing something.
I have tried putthing this in my configuration.yaml:
template:
- trigger:
- platform: state
entity_id:
- sensor.17track_in_transit
- sensor.17track_delivered
action:
- service: seventeentrack.get_packages
data:
package_state:
- in_transit
- delivered
config_entry_id: 01JZ784K02DJ1WB1FB4SXXXXXX
response_variable: packages_var
sensor:
- name: packages_data
unique_id: packages_data
state: "{{ packages_var['packages'] | length }}"
attributes:
packages: "{{ packages_var['packages'] }}"
I have tried making a helper and an automation using the above information.
If I run
action: seventeentrack.get_packages
data:
package_state:
- in_transit
- delivered
config_entry_id: 01JZ784K02DJ1WB1FB4SXXXXXX
response_variable: packages_var
In Developer Tools -> Actions, I get the correct data.
But regardless of which method I try to use, I can't work out how to access packages_var in a markdown card to actually show the information.
Any idea what I'm doing wrong?