Obtaining trigger state of camera

Post Reply
taxrebel
Posts: 3
Joined: Sun Sep 03, 2023 6:06 pm

Obtaining trigger state of camera

Post by taxrebel »

I would like to obtain the current trigger state of a camera via cmd. Based on the help manual it seems the only way of doing it is via json (isTriggered=True/False). Trouble is... I am not familiar with json and I can't figure out the http request syntax, even for a simple test. Can anyone clue me in?
User avatar
TimG
Posts: 2669
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: Obtaining trigger state of camera

Post by TimG »

I'm not sure what you are after, but I use MQTT for BI5 to be able to tell Homeseer what BI5 is doing. One example being an MQTT message showing a CPAI person was detected so Homeseer can turn the drive lights on.
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
taxrebel
Posts: 3
Joined: Sun Sep 03, 2023 6:06 pm

Re: Obtaining trigger state of camera

Post by taxrebel »

So a bit of context...

I am using Tasmota smart switches and bulbs (white light not IR) to illuminate a scene when a camera is triggered. No need for a central hub like Homeseer, BI can send Tasmota commands directly to the devices via http, and if necessary I can do so via a batch file.

Knowing when to turn the lamps on is fine. A new trigger can do that. The problem is knowing when to switch them off. I can't turn them off when the original trigger expires, because a new trigger might have turned them on and still be active. (ie I don't want to plunge the scene into darkness while there is another active trigger.) Hence the need to determine the trigger status. The BI help system indicates you can do this with a json request. I am just not clear how. All my attempts produce no response.
Post Reply