possible to trigger BI with mqtt or http post?

windpoint

n3wb
Nov 27, 2018
8
2
usa
I have home automation project on going. It will take and send mqtt or https. Is it possible to trigger BI with mqtt or http post?

I know BI motion detect is very powerful, but I still miss alarm or have too many false alarms. Incorporate with pirs should be beneficial.

Thank you in advance.
 
I did a video on this very thing


I got this to work > PTZ 1 detects motion on Cam2 > PTZ 1 moves to preset 2 (CAM2 direction). :blankstare:How can I get PTZ1 to return back to whatever preset it was at prior to detection of the CAM2 motion?
 
That's a good question. With HomeSeer's automation this can be done with If Then statements, as attached in the image.

When I look at the Dahua PTZ settings within the web GUI, there's a PTZ setting for 'Idle Motion' which when enabled can go to a Preset within x minutes. The other options are Tour, Scan and Pattern.
 

Attachments

  • gate_event_1.png
    gate_event_1.png
    64.9 KB · Views: 35
Thank you I will look it over. BTW this is for my Dahua PTZ cams running Blue Iris.
That's a good question. With HomeSeer's automation this can be done with If Then statements, as attached in the image.

When I look at the Dahua PTZ settings within the web GUI, there's a PTZ setting for 'Idle Motion' which when enabled can go to a Preset within x minutes. The other options are Tour, Scan and Pattern.

EDIT: I think I have it... Using @Dasstrum advice from the video: NOW when CAM 2 received a motion :idk: CAM 1 (PTZ) changes to preset 2.
To get CAM 1 back to the original preset, Dahua has a "Time Task" option that I set for it to return after 30 seconds.

Anyone know of a way for BI to complete this task?

upload_2019-1-25_17-45-9.png
 
Idle Motion to a preset isn't what you need?
 
No, I needed CAM 1 to return back to the initial preset after CAM 2 detected motion. Sorry if I confused you.
 
Yes, but I am wondering if the GUI settings for CAM1 can return to a preset when idle of motion.
 
I have a camera that has auto tracking. Sometimes I might want to turn it off, such as when it is snowing.

To stop auto tracking, I need to Set preset 96. To start auto tracking, I would issue a command to go to preset 97, similar to @Dasstrum video instructions.

So, two questions.

1. What is the http command string to Set a preset?
2. It seems that BI can have up to 20 presets. Will higher numbers work?

Thanks in advance!
 
I have a camera that has auto tracking. Sometimes I might want to turn it off, such as when it is snowing.

To stop auto tracking, I need to Set preset 96. To start auto tracking, I would issue a command to go to preset 97, similar to @Dasstrum video instructions.

So, two questions.

1. What is the http command string to Set a preset?
2. It seems that BI can have up to 20 presets. Will higher numbers work?

Thanks in advance!

From BI "Options", "Web Server" tab, "Help" button at lower right, scroll down to "HTML Macros"; for "Go to PTZ preset n on camera x (short name)" use :

Code:
http://BI-server-IP:BI-port//admin?camera=x&preset=n

I can't answer #2.
 
  • Like
Reactions: jwgizmo
@TonyR, is this command setting a preset or calling a preset?

Thanks!
The way it's worded, I'd say that BI will call a preset. I have not used it, I just recall seeing it listed in Help.
 
I tested out the 'Idle Motion' feature for my Dahua PTZ, and it is the feature to place the camera to a preset after x minutes of no motion. So you can set your CAM1 to the desired preset when idle, and after CAM2 triggers the CAM1 to go to a specific preset, it will return after no motion is detected, with a minimum of 1 minute.
 
  • Like
Reactions: jwgizmo
It seems that BI can have up to 20 presets. Will higher numbers work?

Via the UI, the max appears to be 40.
See Options>PTZ/Control>Edit Presets.

EDIT: 40 presets looks like a hard-coded limit. I just closed BI, opened regedit, exported the key for preset 40 (key below), edited the key to preset 41, imported the *.reg file back to the registry, and re-opened Blue Iris. While preset 41 appeared in the registry, it was not recognized in the 'Edit Presets' dialog.
(HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Cameras\FrontDoor-PTZ\PTZ\Presets\40)

UPDATE (2/5/2019): While not visible within the BI GUI, working Presets up to 99 can be created via the registry. More <here>.
 
Last edited:
Via the UI, the max appears to be 40.
See Options>PTZ/Control>Edit Presets.

EDIT: 40 presets looks like a hard-coded limit. I just closed BI, opened regedit, exported the key for preset 40 (key below), edited the key to preset 41, imported the *.reg file back to the registry, and re-opened Blue Iris. While preset 41 appeard in the registry, it was not recognized in the 'Edit Presets' dialog.
(HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Cameras\FrontDoor-PTZ\PTZ\Presets\40)

Thanks