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

Lutron Integration to HC2


sergiobaiao

Question

Hi there,

 

I`m a integrator for home automation products in Brazil. I mainly sell Lutron and Fibaro products. I use both systems in my showroom, and i already control the Lutron system from Fibaro by using LUA scripts.

 

Now i want to control Fibaro from Lutron. I know that i can connect to HC2 using port 11111 and send a http GET/POST command. The problem is that Lutron HWQS system only sends ASCII commands to third party devices. I`m trying to send this command from Lutron:

 

GET /api/callAction?deviceID=153&name=turnOff HTTP/1.1

Host: 192.168.0.247

Authorization: Basic YXBpOmFwaQ==

 

but i need it to be a one line command, to be sent as in a telnet connection. I tried the following:

 

GET /api/callAction?deviceID=153&name=turnOff HTTP/1.10x0D0x0AHost: 192.168.0.2470x0D0x0AAuthorization: Basic YXBpOmFwaQ== 0x0D0x0A0x0D0x0A
 

 

that didn`t work also, returns an HTTP/1.1 400 Bad Request

 

if i connect over telnet to port 11111 and type line by line the following command it works:

 

GET /api/callAction?deviceID=153&name=turnOff HTTP/1.1

Host: 192.168.0.247

Authorization: Basic YXBpOmFwaQ==

 

is it possible to "encode" this so i can send it as a one line command so i can control my fibaro system from my lutron system?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Maybe you forgot about \r \n ?

 

Edited by 10der
Link to comment
Share on other sites

  • 0
  • Inquirer
  • \r\n is specific to some coding languages, not an ASCII nor hexa string. i've tried that also.

    Link to comment
    Share on other sites

    • 0

    Bon dia Sergio,

     

    can you share a luascript example that connects to Lutron? I have to integrate also Lutron with Fibaro. Do you have a preference for which one is the master?

     

    Kind regards Hedzer

    Link to comment
    Share on other sites

    • 0

    I have a similar question trying to send a small text message "12+" from a HAI Omni Pro II to my HC2. 

     

    Any luck connecting your Lutron?

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