possible to trigger BI with mqtt or http post?

windpoint

n3wb
Joined
Nov 27, 2018
Messages
8
Reaction score
2
Location
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.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,908
Reaction score
21,295

jwgizmo

n3wb
Joined
Jan 10, 2018
Messages
11
Reaction score
7
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?
 

DLONG2

Known around here
Joined
May 17, 2017
Messages
765
Reaction score
457
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

jwgizmo

n3wb
Joined
Jan 10, 2018
Messages
11
Reaction score
7
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
 

DLONG2

Known around here
Joined
May 17, 2017
Messages
765
Reaction score
457
Idle Motion to a preset isn't what you need?
 

jwgizmo

n3wb
Joined
Jan 10, 2018
Messages
11
Reaction score
7
No, I needed CAM 1 to return back to the initial preset after CAM 2 detected motion. Sorry if I confused you.
 

DLONG2

Known around here
Joined
May 17, 2017
Messages
765
Reaction score
457
Yes, but I am wondering if the GUI settings for CAM1 can return to a preset when idle of motion.
 
Joined
Oct 16, 2018
Messages
1,684
Reaction score
5,543
Location
Florida, USA
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!
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
17,048
Reaction score
39,662
Location
Alabama
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.
 
Joined
Oct 16, 2018
Messages
1,684
Reaction score
5,543
Location
Florida, USA
@TonyR, is this command setting a preset or calling a preset? It appears that is calling, meaning telling the camera to go to a preset.

What I am looking for is to Set or define a preset.

Thanks!
 

DLONG2

Known around here
Joined
May 17, 2017
Messages
765
Reaction score
457
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.
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,168
Reaction score
1,259
Location
SF Bay Area
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:
Joined
Oct 16, 2018
Messages
1,684
Reaction score
5,543
Location
Florida, USA
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
 
Top