Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. how to query domoticz's security panel

how to query domoticz's security panel

Scheduled Pinned Locked Moved Development
9 Posts 4 Posters 5.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MikaelK
    wrote on last edited by MikaelK
    #1

    Hello,

    Is there a way to retrieve domoticz's security panel's status ? It would be nice for example to activate motion sensors only when it's "armed away".

    edit for clarification : I'd like to retrieve domoticz"s security status from the sensor node by polling the gateway every now and then.

    Regards,
    Mikael

    1 Reply Last reply
    0
    • F Offline
      F Offline
      flopp
      wrote on last edited by
      #2

      Maybe this can do the job?

      http://www.domoticz.com/wiki/Domoticz_API/JSON_URL's#Retrieve_status_of_specific_device

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MikaelK
        wrote on last edited by
        #3

        Thanks, and sorry, my question was not clear enough : I would like to retrieve this information from the sensor node, in order to only activate the motion detection and message transmission when domoticz's security is "armed away".

        Regards
        Mikael

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by sundberg84
          #4

          I use lua:

          if (devicechanged['Motiondetector'] == 'On' and otherdevices['Security Panel'] == 'Arm Away') then

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          S 1 Reply Last reply
          1
          • S sundberg84

            I use lua:

            if (devicechanged['Motiondetector'] == 'On' and otherdevices['Security Panel'] == 'Arm Away') then

            S Offline
            S Offline
            stress nero
            wrote on last edited by
            #5

            @sundberg84 said in how to query domoticz's security panel:

            I use lua:

            if (devicechanged['Motiondetector'] == 'On' and otherdevices['Security Panel'] == 'Arm Away') then

            is there a way to put the motion sensor in bypassed mode or does it have to be a combination of the security panel being armed. I have a vera controller and there is a button to arm and bypass when in bypassed i get no alerts, how can that be done in domticz.

            S 1 Reply Last reply
            0
            • S stress nero

              @sundberg84 said in how to query domoticz's security panel:

              I use lua:

              if (devicechanged['Motiondetector'] == 'On' and otherdevices['Security Panel'] == 'Arm Away') then

              is there a way to put the motion sensor in bypassed mode or does it have to be a combination of the security panel being armed. I have a vera controller and there is a button to arm and bypass when in bypassed i get no alerts, how can that be done in domticz.

              S Offline
              S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #6

              @stress-nero i do it with Lua code.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              S 1 Reply Last reply
              0
              • S sundberg84

                @stress-nero i do it with Lua code.

                S Offline
                S Offline
                stress nero
                wrote on last edited by
                #7

                @sundberg84 can you give me an example, and with lua will you be able to have a button that can toggle the armed and bypassed states.

                S 1 Reply Last reply
                0
                • S stress nero

                  @sundberg84 can you give me an example, and with lua will you be able to have a button that can toggle the armed and bypassed states.

                  S Offline
                  S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by sundberg84
                  #8

                  @stress-nero - Yes - there is both a button and a security panel in Domoticz GUI you can use to set alarm mode. Also yes, I combine different states to be able to set the motion sensors in bypassed mode. There are two modes Arm home or Arm away. When I have arm home only my outer motion detectors are active (or they are active all the time, but only notify)

                  (Home is a variable set by the current status of the security device.

                  ------------------------------------------------
                  -- If away - start alarm/watch
                  ------------------------------------------------
                  if (Home == 'Away' and uservariables["var_alarm"] < 2) then 
                  	--Start motion detection
                  	os.execute("bash /home/pi/domoticz/scripts/lua/startmotion.sh")
                  	--Set status
                  	commandArray['Inbrottsalarm'] = 'Arm Away'
                          commandArray['Variable:var_alarm']='2'
                  	commandArray['Group:Taklampor']='Off'
                  	commandArray['Group:Brytare Inne']='Off'
                  	commandArray['WW sovlampa'] = 'Off'
                  	--Log
                  	commandArray['SendNotification']='Alarm Status#Away = Alarm armed#-2'	
                  	print('Activating alarm and motiondetection')
                  end
                  

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    stress nero
                    wrote on last edited by
                    #9

                    thank for the input

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    22

                    Online

                    12.0k

                    Users

                    11.2k

                    Topics

                    113.4k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • MySensors
                    • OpenHardware.io
                    • Categories
                    • Recent
                    • Tags
                    • Popular