Skip to content

I made changes after installation #1

@widowsson7

Description

@widowsson7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions