v0.4.0 - Point-in-Polygon Containment Detection
What's New in v0.4.0
Point-in-Polygon Containment Detection
This release introduces powerful new containment detection capabilities - know when you're not just near an emergency, but inside the actual warning zone.
New Binary Sensors (Zone/Person modes only)
binary_sensor.abc_emergency_*_inside_polygon- Inside any emergency polygonbinary_sensor.abc_emergency_*_inside_emergency_warning- Inside Emergency Warning (red) polygonbinary_sensor.abc_emergency_*_inside_watch_and_act- Inside Watch and Act (orange+) polygonbinary_sensor.abc_emergency_*_inside_advice- Inside Advice (yellow+) polygon
New Events (Zone/Person modes only)
abc_emergency_entered_polygon- Fired when entering a polygonabc_emergency_exited_polygon- Fired when exiting a polygonabc_emergency_inside_polygon- Fired each update while inside
New Sensor Attributes
contains_point- Whether incident polygon contains your locationhas_polygon- Whether incident has polygon geometry datacontaining_count- Number of polygons containing your locationinside_polygon- Quick boolean flag for template usehighest_containing_level- Highest alert level of containing incidents
Performance Improvements
- TTL-based cleanup for seen incident storage to prevent unbounded growth
- Cached Shapely prepared geometries for efficient containment checks
Bug Fixes
- Added missing containment binary sensor translations
- Added types-shapely for mypy type checking in CI
Full Changelog: v0.3.0...v0.4.0