Is there any way in HA to use the history of an entity in a condition, as in the time it last changed?
A little bit of background: I have two helpers, one of which will be turned off by an automation, the other will already have been off. Now I want to add an "undo" button to the mobile notification I get, but that needs to know which of the two helpers it has to turn back on.