Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Question

Posted

i have bought the hc3 and i cant use my old virtual device and i dont know how i do.i had a a virtual device to go on the sension motion of my ip camera.in old  vd was very simple a pu the ip and this string Get 

/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No
 but with this new app i dont know how can i do someone can helpme

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Not sure if i can help. But it might be usefull if you give some more info.

 

What virtual device did you use before, for what type of ip cam ?

Could it be a D-Link DCS-933L ?

 

Its not the correct device version, but i would try:

 

You can add a device DCS-932L from the add-device --> security --> ip cam

 

 

 

Please login or register to see this attachment.

Edited by ppeterr
  • 0
  • Inquirer
  • Posted

    yes i have also an 932l and iwant  comand  the on of motion sensor.in the old Vd i had  a Vd that when i push the button an string get do it possible. how can i tranfer the old comand in the new HC3

     

    • 0
    Posted

    Ah, you only want the motion detection. Then you need some LUA for that i think.

    I think others can help you better with that then me.

    • 0
    Posted (edited)
    fibaro.emitCustomEvent("motion")
    function urlencode(str)
      if (str) then
        str = string.gsub (str, "\n", "\r\n")
        str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end)
        str = string.gsub (str, " ", "+")
      end
      return str    
    end
     
    local url = "http://192.168.1.35/motion.cgi" .. urlencode("?MotionDetectionEnable=1&ConfigReboot=No")
    net.HTTPClient():request(url, {
        options={
          headers = {
            ['Content-Type'] = 'application/json',
          },
          method = 'GET',
        },
        success = function(response) 
                print(response.status)
                print(response.data)
        end,
        error = function(message)
                print("error:", message)
                end
         })

    This above is what i use, as an action when a button is pressed.

    I changed the URL, to what i think could work for you.

    You need to change the IP. And make a condition/declaration that starts the action.

     

    But i am totally not sure :) 

    Edited by ppeterr

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...