forked from gillesvs/librelink
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Thank you for the new fork!
I changed api.py sensor duration from 14 days to 15 days to account for the 15-day sensor life of the Libre3 Plus sensor:
@Property
def expiration_timestamp(self):
"""Return the expiration timestamp of the sensor."""
return self.application_timestamp + timedelta(days=15)
I also created a new sensor in order to provide a specific date and time of expiration of the current sensor:
template:
- sensor:
- name: "Libre 3 Expiration Date"
state: >
{{ as_timestamp(states('sensor.libre_3_active_sensor')) | timestamp_custom('%d/%m/%Y %H:%M') }}
icon: mdi:calendar-clock
- name: "Libre 3 Expiration Date"
Metadata
Metadata
Assignees
Labels
No labels