How to set last replaced for a past date ? #471
-
Beta Was this translation helpful? Give feedback.
Answered by
andrew-codechimp
Jan 12, 2024
Replies: 1 comment 1 reply
-
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! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andrew-codechimp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!