I have a local HA calendar that I put maintenance/house hold to dos on.
Right now I’m using a static entry or a helper to set the next occurrence, it would be great if I could turn this into a template that reads the local calendar and populate this markdown.
Is this possible?
{% set idate = (state_attr('input_datetime.vehicle_inspection_due', 'timestamp') | timestamp_custom('%m/%d/%Y')) %}
{% set rdate = (state_attr('input_datetime.vehicle_registration_due', 'timestamp') | timestamp_custom('%m/%d/%Y')) %}
{% set acfilter = "9/1/2024" %}
{% set realestate1 = "12/1/2025" %}
{% set realestate2 = "5/15/2026" %}
Car Inspection due in {{ (strptime(idate, '%m/%d/%Y', today_at()) | as_local - today_at()).days }} day(s) on {{ idate }}
Car Registeration due in {{ (strptime(rdate, '%m/%d/%Y', today_at()) | as_local - today_at()).days }} day(s) on {{ rdate }}
A/C Filter Replacement due in {{ (strptime(acfilter, '%m/%d/%Y', today_at()) | as_local - today_at()).days }} days(s) {{ acfilter }}
Home RE Taxes Part 1 due in {{ (strptime(realestate1, '%m/%d/%Y', today_at()) | as_local - today_at()).days }} days(s) {{ realestate1 }}
Home RE Taxes Part 2 due in {{ (strptime(realestate2, '%m/%d/%Y', today_at()) | as_local - today_at()).days }} days(s) {{ realestate2 }}