From 9a2af767b532e2df550c62f79b16d16332a41e54 Mon Sep 17 00:00:00 2001 From: "C. Crawford" <87049433+palominovet@users.noreply.github.com> Date: Sat, 23 Nov 2024 10:55:23 -0600 Subject: [PATCH] Update const.py Updated to add AliExpress and Temu for tracking --- custom_components/mail_and_packages/const.py | 66 ++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index e9429935..e79f808a 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -201,6 +201,32 @@ "capost_delivering": {}, "capost_packages": {}, "capost_tracking": {}, + # AliExpress + "alie_delivered": { + "email": ["transaction@notice.aliexpress.com"], + "subject": [ + "delivery update", + "out for delivery", + "at delivery center", + ], + }, + "alie_delivering": {}, + "alie_packages": {}, + "alie_tracking": {}, + + # Temu + "temu_delivered": { + "email": ["orders@order.temu.com"], + "subject": [ + "out-for-delivery notification", + "scheduled to be delivered tomorrow", + "expected delivery date notification", + ], + }, + "temu_delivering": {}, + "temu_packages": {}, + "temu_tracking": {}, + # DHL "dhl_delivered": { "email": [ @@ -501,6 +527,44 @@ icon="mdi:package-variant-closed", key="capost_packages", ), + # AliExpress + "alie_delivered": SensorEntityDescription( + name="Mail AliExpress Delivered", + native_unit_of_measurement="package(s)", + icon="mdi:package-variant-closed", + key="alie_delivered", + ), + "alie_delivering": SensorEntityDescription( + name="Mail AliExpress Delivering", + native_unit_of_measurement="package(s)", + icon="mdi:truck-delivery", + key="alie_delivering", + ), + "alie_packages": SensorEntityDescription( + name="Mail AliExpress Packages", + native_unit_of_measurement="package(s)", + icon="mdi:package-variant-closed", + key="alie_packages", + ), + # Temu + "temu_delivered": SensorEntityDescription( + name="Mail Temu Delivered", + native_unit_of_measurement="package(s)", + icon="mdi:package-variant-closed", + key="temu_delivered", + ), + "temu_delivering": SensorEntityDescription( + name="Mail Temu Delivering", + native_unit_of_measurement="package(s)", + icon="mdi:truck-delivery", + key="temu_delivering", + ), + "temu_packages": SensorEntityDescription( + name="Mail Temu Packages", + native_unit_of_measurement="package(s)", + icon="mdi:package-variant-closed", + key="temu_packages", + ), # DHL "dhl_delivered": SensorEntityDescription( name="Mail DHL Delivered", @@ -710,4 +774,6 @@ "inpost_pl", "dpd_com_pl", "gls", + "alie", + "temu", ]