I’m trying to add a “last calibrated” date to my ESPHome device, which ideally is populated from the ESPHome side (a hardcoded date that I change when I calibrate the device) and readonly in Home Assistant.
Yes, I could make a text sensor, but where’s the fun in that. (And I was hoping that when it’s a proper date I can build some automations around it.)
It is important that I have a way to say “never”.
I added this to my ESPHome YAML:
datetime:
- platform: template
type: date
name: Last calibration
optimistic: true
But no entity appeared in Home Assistant. Maybe because it has no value yet? How do I set one, preferably one that shows up as “unknown” or “never” or something like that?