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

HTTP commands for HC3


Laco Jurdik

Question

 

I have created a virtual switch ID: 184
I will use the http command to turn it on:
http://192.168.1.42/api/callAction?deviceID=184&name=turnOn
The switch turns on correctly.

Next I have created a virtual Binary sensor ID: 178
What can I use the http command to turn on and off?

 

If I use the command I get an error:
 

http://192.168.1.42/api/callAction?deviceID=178&name=turnOn

 

[02.01.2021] [23:52:33] [DEBUG] [QUICKAPP178]: onAction: {"args":[],"deviceId":178,"actionName":"turnOn"}
[02.01.2021] [23:52:33] [WARNING] [QUICKAPP178]: Class does not have turnOn function defined - action ignored

Edited by Laco Jurdik
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Why you are trying to driving binary sensor outside?!
can you driving for example motion sensor outside?! Without real motion?!

Edited by 10der
Link to comment
Share on other sites

  • 0
  • Inquirer
  • I have a Synology camera system that I use for a motion sensor, where I can send an http command to start motion.

    This is how it works for me in domoticz and I want to send it to fibaro HC3

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    Looping in your QA this url check result and set QA value true or false 

    and your QA will displayed the actual status 

    Link to comment
    Share on other sites

    • 0

    What actions provided? Only webhook?

    I am asking about your device ( the Lang what I can see in title is similar with my Lang Ukraine - if I right understand - “changes out the door”)

     

    Edited by 10der
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes, we are neighbors. I am from Slovakia. :-)

     

    Can you write me what http link should I create?

     

    IP Address HC3: 192.168.1.42
    Virtual motion sensor: ID 178

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    No, sorry, I do not understand how I can catch data about motion from your NAS server ( video station) 

    if you can clearly answer me how I can get value or understand what motion detected - I can help you with done this QA in HC3

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • I've already solved it.

    From the surveillance station, if the camera detects movement, it automatically sends a GET command to the HC3 virtual switch ID: 184

     

    http://login:[email protected]:80/api/callAction?deviceID=184&name=turnOn


    In HC3 I have a running LUA script that changes the state of the motion sensor ID: 178

    Now it works the way I needed it to. There may be other options.

     

    DECLARATIONS (Conditions/Triggers)

    Please login or register to see this code.

     
    ACTIONS

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    • 0
    On 1/4/2021 at 6:55 PM, Laco Jurdik said:

    http://login:[email protected]:80/api/callAction?deviceID=184&name=turnOn

    I don't think this call will work. That is the syntax for the HC2. At least it doesn't work for me.

    Link to comment
    Share on other sites

    • 0
    1 hour ago, jwi said:

    I don't think this call will work. That is the syntax for the HC2. At least it doesn't work for me.

    that's your rignt - thinking.

    my right development and provide solution what works.

    Please login or register to see this image.

    /monthly_2021_01/image.png.fe0ad6166aff36205955c324b2859f2a.png" />

    image.png.d63d46656caba4b4e5851d7cfeef66c2.png

    Link to comment
    Share on other sites

    • 0

    @10der Yes, but I was referring to the login. You cannot log in to the url with user: password.

    This is no longer supported by almost all browsers and is also deprecated.

    As you can see in the swagger, you need Basic Auth for this.

     

    If I'm wrong, I would be happy to get advice from the experts.

    Link to comment
    Share on other sites

    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...