#"Unknown error occurred" creating template
1 messages · Page 1 of 1 (latest)
Your template is comparing timezone offset-naive and offset-aware datetimes. Add | as_local to the fixed datetime string.
That fixed it for displaying the data but not having historical data
That's not possible with a template sensor... there is no template access to historical data.
I think I'll just throw a $100 bounty for merging historical data on the GitHub feature request discussions next paycheck
Since I know I'm not the only one who has this issue. The "workaround" is naming a new sensor the same as an old sensor but I'd rather not
Especially since I want to merge historical data at a specific point. Not from "now onwards"
Spook has an option to import statistics https://spook.boo/recorder
So use recorder.get_statistics on the old entity, then import it in the template entity using the Spook action
you can pay the bounty in coffee https://coffee.thefes.nl ☕
I sent you $10 USD and sending the spook dev cash when I get paid in July