Allow list of ROI and give each a name
A single camera might cover, e.g. a garden and a driveway. We might want both as distinct ROI. Furthermore we might have several cameras watching a single ROI and want to create an automation that fires when a target object is detected in the ROI by ANY camera. Naming the ROI will allow this.
Scope:
- Allow a list of ROI to be created (see how zone is configured)
- Add a name to each ROI
- Include ROI name in events
Note: also update the entity state to count all objects in any ROI, since there can be many ROI. The events include the ROI location of objects and so the events should be used to trigger automations. The entity count per ROI can be exposed as an attribute. Note also that a single object can be in multiple ROI if the overlap, so will fire an event per ROI
This is probably a feature to leave until an official integration, since it would be a breaking change
Restrict to four point polygon - by combining multiple of these almost any desired shape can be created