SgtBatten / HA_blueprints

Somewhere to store automation blueprints
184 stars 71 forks source link

Added zones in exact order (still testing) #210

Closed Thyreal closed 4 months ago

Thyreal commented 4 months ago

Hi, I added a Function to only trigger a Message wenn the zones are entered in an exact order. Use case is when someone comes up to the door i get a message, wenn someone is leaving i dont. This is my first gitup pull request so forgive me if i overlook on something. I am still in the testing but i think it is working.

SgtBatten commented 4 months ago

Thanks for doing this. I look forward to testing.

I note that there are significant number of changes recorded but it's mostly due to formatting issues. In order to merge these I'll need you to start with the version currently on this repository and make only the changes necessary for the zone order to work, then submit that.

A simple way to do it is to open the file on this repository and start editing it, when you go to save it it will be able to be turned into a pull request.

Thyreal commented 4 months ago

hi, thanks for the quick answer. It seems to me that i still have some issues with the " send Notifikation" part it dos not come to me how the "home" criteria is met and why the zone_multi_filter is inverted. I will setup a new version with an new fork from main. That way you will be able to see what is dit :-). Still trying to find my way around with the blueprint ^^

JonGilmore commented 4 months ago

Just wanted to drop in to express my support for this, it'd be awesome to have this. I currently do this with a yaml automation (with telegram alerts). I'm happy to help test things out, let me know if you need further help. I've linked my automation if you want to see how I'm doing it in yaml.

SgtBatten commented 4 months ago

Yes it looks to be possible. Unfortunately after asking @Thyreal to switch to the beta branch that's now focusing on frigate 0.14 so we actually need to move these changes back onto stable.