konnected-io / noonlight-hass

HomeAssistant integration for Noonlight
42 stars 9 forks source link

Additional Features #2

Open liljenstolpe opened 4 years ago

liljenstolpe commented 4 years ago

Greetings,

I just saw that Noonlight has opened their API. I was playing with it a bit today, and had some thoughts about other things that could be done in this switch:

1) I see that you already are thinking about deciding what service (fire/le/medical) to post true on based on what sensor(s) have fired. Maybe do it off of a group (i.e. put sensors in dispatchFire, dispatchLE, dispatchMedical groups).

2) Add person entities to the alarm based on a config entry. That way any household member or your neighbor can turn off the alarm without knowing your pin. Not sure if noonlight calls them all or not.

3) It would be really interesting to also call the verification API with video or snapshots from cameras asking if there is a person in the image.

I'm thinking of implementing a two-hit / one-hit verified, dispatch, to reduce false alarms:

1) a sensor gets tripped a) notify everyone on the notification list b) grab some images and send them for verification with a short (30 sec) timeout c) send everyone on the notification list the images d) if the verification task comes back as conclusively verified, treat that as a second sensor tripping. 2) dispatch on two sensor trips