Mqtt and change Shield Armed/Disarmed possible ?

Vaikis

n3wb
Joined
Aug 24, 2021
Messages
9
Reaction score
3
Location
Lithuania
Hi, I was looking for mqtt commands and couldnt find any option how to change Shield status to Armed or Disarmed, maybe anybody figured out? My idea is to integrate with Openhab were I have my house security system integrated and want to sync with BI, when I go outside and arm security system need Shield to be Armed in BI.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,954
Reaction score
39,440
Location
Alabama
From BI's Help at "HTTP Commands":

"/admin?signal=x
Changes the shield icon state and returns the current state. x=0 for red, x=1 for green, x=2 for yellow. This requires admin authentication."​

From "Authentication":

"You may add &user=username&pw=password to any HTTP request, but only if use secure session keys and login page is disabled on the Advanced page in Settings/Web server."
Summary: This code below sets shield on my BI server to red, second code sets it back to green:

Code:
http://192.168.1.239:81/admin?signal=0&user=myusername&pw=mypassword

http://192.168.1.239:81/admin?signal=1&user=myusername&pw=mypassword
 

Vaikis

n3wb
Joined
Aug 24, 2021
Messages
9
Reaction score
3
Location
Lithuania
figured out with MQTT as well, you need send message to this topic BlueIris/admin with payload signal=1 or signal=0
payload answer is in topic BlueIris/status
 
Top