rogro82 / hass-variables

Home Assistant variables component
236 stars 59 forks source link

This looks like it might be the answer to my motion prayers! #37

Open 26tajeen opened 4 years ago

26tajeen commented 4 years ago

I have various PIR sensors dotted about the house, and I've long wanted to have a sensor for the PIR which last reported an ON event. I'm not interested in the OFF events, in fact, I rather want to filter them off! Do you think this might be how to go about this? I'm just not sure how I'd (in one automation) use maybe a template to update the variable? I know how to do it in a number of automations equal to the number of sensors I have, but that isn't very elegant! :-) thanks for the code!!