Hi!
In my system I have PIR-sensors connected to my network to get a better motion detection from BI. And I've used the different profiles with the temporary timer (&lock=2) to change to another profile when one of the PIR-sensors detect movement.
But I've run in to problem. If one of the PIR sensors detect motion in one end of the property and I change profile on all of the cameras, the all start to record shadows and other false triggers.
Are there some way to change profile on only one camera with the temporary timer? It works if I skip the temporary timer. but this doesn't work: http://x.x.x.x/admin?&camera=camera1&profile=2&lock=2
Also are there some way of triggering/change profile a group of cameras via HTTP? I've tried http://x.x.x.x/admin?&camera=group1&profile=2&lock=2
Thanks
HTTP trigger and profiles
Re: HTTP trigger and profiles
each camera can be configured differently for each profile, so cant you just set multiple profiles up with exactly the same config apart from the one you want to behave differently when a PIR is triggered?
For example profile 3 might have motion detection active for cam1 but not for cam 2,3,4 etc
profile 4 might have timed recording for cam 3 but not for 1,2,4 etc.
profile 5 might give push notifications for cam 4 but not for 1,2,3 etc
i guess the above assumes you are not using multiple profiles for various functions already...i only use 2.
i actually use MQTT from HA to change profiles (mainly to turn off notifications when im in the garden) the default 'notifications on' profile for me is profile 1, but switch to profile 2 which is exactly the same as profile 1 for all cams apart from motion detection is disabled. in settings i have the timeout for profile 2 set at 180mins, should i forget to turn back on motion detection, it reverts after 3 hrs.
For example profile 3 might have motion detection active for cam1 but not for cam 2,3,4 etc
profile 4 might have timed recording for cam 3 but not for 1,2,4 etc.
profile 5 might give push notifications for cam 4 but not for 1,2,3 etc
i guess the above assumes you are not using multiple profiles for various functions already...i only use 2.
i actually use MQTT from HA to change profiles (mainly to turn off notifications when im in the garden) the default 'notifications on' profile for me is profile 1, but switch to profile 2 which is exactly the same as profile 1 for all cams apart from motion detection is disabled. in settings i have the timeout for profile 2 set at 180mins, should i forget to turn back on motion detection, it reverts after 3 hrs.
Re: HTTP trigger and profiles
...as an aside, i now use this AI to prevent false triggers....now, no windy hedge, tree shadow or cobweb results in notifications for me (i record all cams 24/7)..it has to see a person or a car drive on to my property -
Re: HTTP trigger and profiles
Hi!
I sounds like we have kind of same setup. But i use OH2 instead.
I also use two modes:
1) Normal mode, BI records every movement but does not alert me (generates a lot of shadows and other, but i don't record 24/7 so this is to not miss anything)
2) Elevated mode, This is generated by the PIR-sensors via OH2. It is exactly the same as normal mode but with an alert to me.
But my problem is that I have PIR-sensors close to different cameras. If PIR1 goes off I only want camera 1 to go off. But now I have to change profile on all cameras and on a windy day my phone goes wild
It is possible to change profile on only one camera, but then I cant add the temporary timer (lock=2). This means that OH2 needs to send a command to switch back to normal mode after a certain amount of time.
Also if a PIR-sensor is close to multiple cameras, I cant put them in a group and change profile on all cameras with one command. I have to make several HTTP-request for the different cameras.
I sounds like we have kind of same setup. But i use OH2 instead.
I also use two modes:
1) Normal mode, BI records every movement but does not alert me (generates a lot of shadows and other, but i don't record 24/7 so this is to not miss anything)
2) Elevated mode, This is generated by the PIR-sensors via OH2. It is exactly the same as normal mode but with an alert to me.
But my problem is that I have PIR-sensors close to different cameras. If PIR1 goes off I only want camera 1 to go off. But now I have to change profile on all cameras and on a windy day my phone goes wild
It is possible to change profile on only one camera, but then I cant add the temporary timer (lock=2). This means that OH2 needs to send a command to switch back to normal mode after a certain amount of time.
Also if a PIR-sensor is close to multiple cameras, I cant put them in a group and change profile on all cameras with one command. I have to make several HTTP-request for the different cameras.
Re: HTTP trigger and profiles
Hmmm..i see your point....that said, the AI solves a load of issues relating to false triggers so that would work around the problem for you?..
-
- Posts: 7
- Joined: Wed Dec 09, 2020 2:50 pm
Re: HTTP trigger and profiles
Hi,sparkzter wrote: ↑Mon Jun 15, 2020 2:35 pm each camera can be configured differently for each profile, so cant you just set multiple profiles up with exactly the same config apart from the one you want to behave differently when a PIR is triggered?
For example profile 3 might have motion detection active for cam1 but not for cam 2,3,4 etc
profile 4 might have timed recording for cam 3 but not for 1,2,4 etc.
profile 5 might give push notifications for cam 4 but not for 1,2,3 etc
i guess the above assumes you are not using multiple profiles for various functions already...i only use 2.
i actually use MQTT from HA to change profiles (mainly to turn off notifications when im in the garden) the default 'notifications on' profile for me is profile 1, but switch to profile 2 which is exactly the same as profile 1 for all cams apart from motion detection is disabled. in settings i have the timeout for profile 2 set at 180mins, should i forget to turn back on motion detection, it reverts after 3 hrs.
Please can you give an example of your mqtt in homeassistant to turn on/off triggers/change profiles etc?
I'm using mqtt to receive notifications in ha and http curl commands to switch profiles but would like to use mqtt to switch record/trigger on/off etc.
Thanks!
Re: HTTP trigger and profiles
I have been playing with MQTTin regards to BI. I have the BI to Node-Red part reporting status and movement etc but I cant get Node-Red to get BI to change profiles which is what I am after. I have 5 profiles. Home day, Home night, Away day and away night and disable of course
I have tied a couple of ways but basically
msg.payload is /admin?profile=3&lock=1
topic is BlueIris/admin
I have tried all sorts of combinations like /BlueIris/admin BlueIris/admin/ /BlueIris/admin/ and also /admin?profile=3&lock=1 with no slash admin?profile=3&lock=1
but I dont seem to get a change.
EDIT: Found it. Take out the admin?....silly me
One note for new players. I used to dodge MQTT cause it was something I saw as just another something to go wrong. BUT I now have my videos on its own private subnet so MQTT makes it a lot easier to get info across networks without worrying about routing etc.
I have tied a couple of ways but basically
msg.payload is /admin?profile=3&lock=1
topic is BlueIris/admin
I have tried all sorts of combinations like /BlueIris/admin BlueIris/admin/ /BlueIris/admin/ and also /admin?profile=3&lock=1 with no slash admin?profile=3&lock=1
but I dont seem to get a change.
EDIT: Found it. Take out the admin?....silly me
One note for new players. I used to dodge MQTT cause it was something I saw as just another something to go wrong. BUT I now have my videos on its own private subnet so MQTT makes it a lot easier to get info across networks without worrying about routing etc.
Last edited by secs on Fri Dec 18, 2020 11:21 pm, edited 1 time in total.
Re: HTTP trigger and profiles
I can't seem to figure it out where you did
I'm trying to achieve 2 things :
1) retrieve the current profile BI is running at -> I have no idea what http request could return that
2) change profile from http request -> I tried the following (assuming BI webserver is running at port 80 in UI3 mode with secure session key disabled)
http://xxxuser:xxxpassword@xxx.xxx.xxx.xxx/profile=x
http://ip:port/admin?user=xxxuser&pw=xxxpassword&profile=x
Any idea ?
I'm trying to achieve 2 things :
1) retrieve the current profile BI is running at -> I have no idea what http request could return that
2) change profile from http request -> I tried the following (assuming BI webserver is running at port 80 in UI3 mode with secure session key disabled)
http://xxxuser:xxxpassword@xxx.xxx.xxx.xxx/profile=x
http://ip:port/admin?user=xxxuser&pw=xxxpassword&profile=x
Any idea ?