Creating A "last Motion" Helper/template Entity For A Motion Sensor?
I feel like this should be a simple one but I’m struggling with it and would love advice!
I have a motion sensor that contains a “binary sensor” entity that indicates motion status. I would like to create a second entity that contains the time and date of last motion detected (i.e., the last time that the binary sensor changed state to “Detected”). I’m assuming this will require creating a “helper” of type “template” and then entering the appropriate formula for the template’s state but I can’t seem to figure out what that is.
FWIW, I found this 2yr old thread from someone who seems to have had a similar problem, and it looks like there is YAML code for a solution, but I’m not actually sure where to paste in this YAML code (and do I also need to create a helper to represent the “variable” that is being updated every time there is a state change, etc.) I’d rather just create a helper using the GUI if there’s a straightforward way to do that…
Thanks in advance!
3 posts - 3 participants
Popular Products
-
Book Lovers Stainless Steel Openable ...$45.99$31.78 -
Custom Letter Bracelet with Heart Eng...$37.99$25.78 -
Personalized Eye Photo Bracelet with ...$43.99$29.78 -
Vintage Adjustable Hug Hands Ring$35.99$24.78 -
Personalized Leather Photo Keychain M...$133.99$92.78