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


Control Philips Hue Via Virtual Device - HCL


Recommended Posts

Posted

Hi,

 

I have a Homecenter Lite and I am trying to control Philips Hue bulbs in my scenes (so the Hue plugin does not solve my problem).

 

Good news is Philips Hue Hub accepts local API calls via HTTP Put and I can easily create a virtual device for my hue hub.

 

Bad news is no matter how much I have tried I cannot find the right format to send PUT requests in a string format in my Virtual Device's button action. (Remember I have HCL so I cannot use LUA, only create string requests).

 

Would you please help me how to send a JSON data using HTTP PUT method through Virtual Device string? Here is what I've been trying so far:

 

PUT /api/MN6MXKm4Q5MrCrpB11RLrzSQY3ReJtek4s86FOEH/lights/1/state HTTP/1.1
Content-Length: 12
Content-Type: application/json

{"on":true}

Please login or register to see this attachment.

 

Posted

Hi @Kaan ,

 

Welcome to Fibaro forum!

You might find answer to your question here:

 

  • Topic Author
  • Posted (edited)

    Hi,

     

    I recently updated the Hue Virtual Device for HCL (Home Center Lite). 

     

    You need to replace [HUE_HUB_LOCAL_IP] with the local IP number of your Hue Hub (

    Please login or register to see this link.

    )

    You need to replace [HUE_USER_ID] with your Hue Hub User ID (

    Please login or register to see this link.

    )

    You need to replace [LIGHT_ID] with your Light ID that you want to control (Starts from 1 and goes on as much as the numbers of lights that you have connected to your hue hub)

     

    You need to create different virtual devices for each light.

     

    Now you will be able to use the action of Hue Virtual Devices that you created in block scenes.

     

    Best,

    Kaan

     

    Please login or register to see this attachment.

    Edited by Kaan

    Join the conversation

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

    Guest
    Reply to this topic...

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