Created
July 10, 2025 21:03
-
-
Save hectorzin/20b2232076b44b487b386b490e02faf9 to your computer and use it in GitHub Desktop.
Tracking Aliexpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: Añadir tracking Aliexpress por telegram | |
| description: "" | |
| triggers: | |
| - event_type: telegram_command | |
| event_data: | |
| command: /aliexpress | |
| trigger: event | |
| id: Nuevo tracking | |
| - trigger: event | |
| event_type: aliexpress_package_data_updated | |
| id: Tracking actualizado | |
| conditions: [] | |
| actions: | |
| - choose: | |
| - conditions: | |
| - condition: trigger | |
| id: | |
| - Tracking actualizado | |
| sequence: | |
| - variables: | |
| entity_id: "{{ trigger.event.data.entity_id }}" | |
| title: "{{ state_attr(entity_id, 'title') }}" | |
| status: "{{ state_attr(entity_id, 'status') }}" | |
| last_status: "{{ state_attr(entity_id, 'last_update_status') }}" | |
| progress: "{{ state_attr(entity_id, 'progressStatus') }}" | |
| days: "{{ state_attr(entity_id, 'daysNumber') }}" | |
| origin: "{{ state_attr(entity_id, 'originCountry') }}" | |
| dest: "{{ state_attr(entity_id, 'destCountry') }}" | |
| - data: | |
| title: "{{ title }}" | |
| message: |- | |
| Estado actualizado para {{ title }}: | |
| 🧾 Estado: {{ status }} | |
| 📦 Último: {{ last_status }} | |
| 📊 Progreso: {{ progress }} | |
| 🌍 Origen: {{ origin }} → {{ dest }} | |
| ⏱️ Días en tránsito: {{ days }} | |
| action: notify.bot_home_assistant | |
| - choose: | |
| - conditions: | |
| - condition: time | |
| after: "09:00:00" | |
| before: "22:00:00" | |
| sequence: | |
| - data: | |
| device: 46f7de6ece2c1000d30f840b31d60be8 | |
| text: "{{ title }}: {{ last_status }}" | |
| icon: "30734" | |
| duration: 300 | |
| rainbow: true | |
| rtttl: mario:d=4,o=5,b=100:16e5,16e5,32p,8e5,16c5,8e5,8g#5 | |
| action: awtrix.notification | |
| - conditions: [] | |
| sequence: | |
| - data: | |
| device: 46f7de6ece2c1000d30f840b31d60be8 | |
| text: "{{ title }}: {{ last_status }}" | |
| icon: "30734" | |
| duration: 300 | |
| rainbow: true | |
| action: awtrix.notification | |
| - conditions: | |
| - condition: trigger | |
| id: | |
| - Nuevo tracking | |
| sequence: | |
| - data: | |
| tracking_number: "{{ trigger.event.data.args[0] }}" | |
| title: "{{ trigger.event.data.args[1] }}" | |
| action: aliexpress_package_tracker.add_tracking | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment