Add documentation for seventeentrack.add_package (#39252)

This commit is contained in:
Cerallin 2025-05-27 13:06:55 +08:00 committed by GitHub
parent 1f4bcbb1c2
commit 3f53813c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,3 +108,22 @@ The `seventeentrack.archive_package` action allows you to archive a package usin
config_entry_id: 2b4be47a1fa7c3764f14cf756dc98991
package_tracking_number: RU0103445624A
```
### Action `seventeentrack.add_package`
The `seventeentrack.add_package` action allows you to add a package using the 17track API.
| Data attribute | Optional | Description |
| ------------------------- | -------- | --------------------------------------------- |
| `config_entry_id` | No | The selected service to add the package to. |
| `package_tracking_number` | No | The package tracking number to add. |
| `package_friendly_name` | No | The friendly name of the package to be added. |
```yaml
# Example automation action to add a package with tracking number and its friendly name
- action: seventeentrack.add_package
data:
config_entry_id: 2b4be47a1fa7c3764f14cf756dc98991
package_tracking_number: RU0103445624A
package_friendly_name: "Example Package"
```