Skip to content

How to set last replaced for a past date ? #471

Closed Answered by andrew-codechimp
Alfred99-HA asked this question in Q&A
Discussion options

You must be logged in to vote

As long as you are running version 1.4 you can now do this via the Set battery replaced service. There's now an optional date.

I can't do it via the GUI as HA doesn't have a native date entry to change a state, I suppose it's quite a rare requirement.

That Set State in developer tools is very misleading, it only updates the state in memory for anything you set with it, and is truly just a dev tool for modifying state on the fly to detect changes. I only learnt this myself last week!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Alfred99-HA
Comment options

Answer selected by andrew-codechimp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants