elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

Question: Motion sensor on each Zone #94

Open RichardMawdsley opened 3 years ago

RichardMawdsley commented 3 years ago

Hi, Is it possible to base motion on the different Zones available on each camera? I know it sends the MQTT message slightly differently, but did not know if there was an easier option with your integration to tell the difference? Thanks, Rich

elad-bar commented 3 years ago

Can you send mqtt message samples of different zones?

RichardMawdsley commented 3 years ago

Sure thing, it sends it like the below:

{ "type": "MOTION_AB", "trigger": "ON"}

Where AB are Zone A and Zone B that have been triggered. If more it'll be MOTION_ABCD, or MOTION_B, etc.

RichardMawdsley commented 3 years ago

Any thoughts on this @elad-bar ? Need anything else from me to assist?

elad-bar commented 3 years ago

Thanks, now I just need to find time to do that (overloaded at work), What I plan to do is to create additional sensors per letter, A will be the main zone, Can you share with me what message are you getting when trigger is off?

Thanks

RichardMawdsley commented 3 years ago

I can certainly appreciate that! Your efforts towards this and the project as a whole are greatly appreciated bud!

Not sure if the sensor per zone will work or not. For instance if Zone A and B are triggered (because they can overlap) then its sent as a single mqtt message as opposed to two individuals.. Same as when they turn off. Multiple examples for possibilities:

{ "type": "MOTION_AB", "trigger": "ON"} { "type": "MOTION_AB", "trigger": "OFF"} { "type": "MOTION_BD", "trigger": "ON"} { "type": "MOTION_BD", "trigger": "OFF"} { "type": "MOTION_C", "trigger": "ON"} { "type": "MOTION_C", "trigger": "OFF"} { "type": "MOTION_ABCDE", "trigger": "ON"} { "type": "MOTION_ABCDE", "trigger": "OFF"}

Only when it's just zone A or B triggered, not both or more, would it come through singually such as:

{ "type": "MOTION_A", "trigger": "ON"} { "type": "MOTION_A", "trigger": "OFF"}

I suppose a sensor for every possible combination would work.. But I can't imagine that would be desirable!

Hopefully you've got a trick up your sleeve 😏.

gmow1 commented 3 years ago

Just checking in on this additional feature...thank you for an excellent integration

RichardMawdsley commented 3 years ago

Any joy towards this @elad-bar ?

elad-bar commented 3 years ago

I'm no longer maintaining that component as I switched to Shinobi Video

RichardMawdsley commented 3 years ago

That's a real shame, and must say I'm surprised given my understanding is BI being the far superior product.

On Tue, Jun 22, 2021 at 5:12 AM Elad Bar @.***> wrote:

I'm no longer maintaining that component as I switched to Shinobi Video

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elad-bar/ha-blueiris/issues/94#issuecomment-865513509, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJQAI4BCTA45ZXEEKUSBLDTUAES7ANCNFSM4UHLBGFQ .