AXISD3110ConnectivityHub
Configureyourdevice
Activatealampwhenthewindowisopened
Thisexampleexplainshowtoconnectawindowcontacttoaconnectivityhub,andhowtosetupaneventtoactivatealamp
whenawindowwithacontactonitisopened.
Prerequisites
•Connecta2-wirecable(ground,I/O)tothewindowcontactandtotheI/Oconnectorontheconnectivityhub.
•Connectthelamptopowerandtotherelayconnectorontheconnectivityhub.
ConguretheI/Oportsintheconnectivityhub
1.GotoSystem>Accessories.
2.EnterthefollowinginformationinPort1:
-Name:Windowsensor
-Direction:Input
-Normalstate:Closedcircuit
3.EnterthefollowinginformationinPort2:
-Name:Lamp
-Direction:Output
-Normalstate:Opencircuit
Createtworulesintheconnectivityhub
1.GotoSystem>Eventsandaddarule.
2.Enterthefollowinginformation:
-Name:Windowsensor
-Condition:Digitalinput
SelectUsethisconditionasatrigger
-Port:Windowsensor
-Action:ToggleI/Owhiletheruleisactive
-Port:Lamp
-State:Active
3.ClickSave.
ActivateconnectivityhuboverMQTTwhencameradetectsmotion
Prerequisites
•CongureadevicefortheI/Oport1intheconnectivityhub.
•SetupanMQTTbrokerandgetthebroker’sIPaddress,usernameandpassword.
•SetupAXISMotionGuardinthecamera.
SetuptheMQTTclientinthecamera
1.Inthecamera’sdeviceinterface,gotoSystem>MQTT>MQTTclient>Brokerandenterthefollowinginformation:
7