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

Virtual device to virtual device


Question

Posted

Is it possible to use API with HCL? If yes, how to access eg a button using a local http request?

Eg. If like to push button 1 from a local request?

In the URL I can see the id and I also found the button id.

I tried,

http:///api/callAction?deviceID=15&name=pressButton&arg1=2

Nothing happens,

6 answers to this question

Recommended Posts

  • 0
Posted

you should add userdID / password to grant access

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

  • 0
Posted

That would be great , i have a veralite and i thought of this to control vera scenes from HCL via http . HCL doesn't support all the products i have and this will solve almost all of my current problems .

[ Added: 2014-03-28, 15:29 ]

As Karikroff said, it's working after adding the userID and password , i got it to work from veralite to HCL too

  • 0
Posted
you should add userdID / password to grant access

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

I've seen this mentioned in a couple of places now but have yet to see someone saying it works with HCL that have actually tried it. I've tried a number of suggestions adding Authorisation Basic etc. but nothing works so far

  • 0
Posted

Tell me what exactly you want to do. Maybe I can send you a step by step guide

  • 0
Posted

Thanks for offering. As a proof of concept I'd like to use a virtual device from HCL to call the http api on the same device (could be used to update a slider value)

My code so far in the virtual device:

Please login or register to see this code.

username/password is modified from the real one.

the command listed here works from a browser.

Update:

Got it working. HCL apparantly requires the Host header to be filled.

Just add "Host: 0x0D0x0A"

So in my case the call is:

Please login or register to see this code.

  • 0
Posted

glad that you did cause i wouldn't be able to help with that .

I think we should start posting examples in the forums , like ( what did you do with your HC2 or HCL today . i was struggling with XBMC plugin to get it working on HCL , then struggling to make it run scenes at night only , But Shad and stevenvd helped me to get it working

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