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
-
Stainless Steel Book Photo Necklace$31.99$21.78 -
Custom Projection Ring for Couples$211.99$147.78 -
Slimming Waist Trainer & Thigh Trimmer$67.56$33.78 -
Adjustable Waist Trainer Belt$44.99$30.78 -
Butt Lifting Body Shaper Shorts$95.56$47.78