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

The Phillips Hue + HC Lite Problem


imLiquid

Question

Hi everyone.

 

So im still trying to find a way to get the phillips hue lights into fibaro HC Lite as a virtual device, so I can trigger them when motion is breached from a sensor.

 

Tried to follow the guide :

 

but even with the updates from the comments, I just can't get it to work, and no reply on the post from back then.

 

So this is my next step in finding out how to get it to work.

 

This is how it's set up now (not working)

 

Quote

I have followed every comment since release, and nothing works inside Fibaro, but direct from API it works.

 

 

Please login or register to see this link.

Please login or register to see this link.

Please login or register to see this link.

 

 

I am aware that I can just make it work with Lua code, since I have HC2. But this is for testing that it works in HC Lite, since im planing setting HC Lite's up in other homes.

 

Really hope someone have a solution to this problem.

 

Thanks.

Edited by imLiquid
Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

Why don't you use the fibaro plugin for hue. All your lights then get their own device-id and you can use a simple fibaro:call(device-id,"turnON") command.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • @Alex de Bruin Like I said.

    This is for Lite version of HC, and you can't code Lua on that. so i',m not able to just do fibaro:call(device-id,"turnON") sadly

    Link to comment
    Share on other sites

    • 0

    You need to check the length of the string and adjust accordingly. Maybe that is the issue.

    I think you code is not correct. Be careful with IP address: add 0 to 192.168.0.20 (in my case only ofcourse)

     

     

    Edited by Rikbast
    Link to comment
    Share on other sites

    • 0

    Okay, didn't realize it was that "Lite".

     

    Is it not simply a misinterpretation of the IP-address followed by the hex CRLF code ?

    192.168.0.30x0D0x0A

    Edited by Alex de Bruin
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • So I found out what the problem was. :D

     

    I was missing a "/" after the PUT so it was

    Please login or register to see this code.

    and not

    Please login or register to see this code.

    also I changed the IP to .30 and that helped aswell.. Thanks so much for the help.

     

     

    Edited by imLiquid
    Link to comment
    Share on other sites

    • 0
    On 5/1/2019 at 1:16 AM, imLiquid said:

    Hi everyone.

     

    So im still trying to find a way to get the phillips hue lights into fibaro HC Lite as a virtual device, so I can trigger them when motion is breached from a sensor.

     

    Tried to follow the guide :

     

    but even with the updates from the comments, I just can't get it to work, and no reply on the post from back then.

     

    So this is my next step in finding out how to get it to work.

     

    This is how it's set up now (not working)

     

     

     

    I am aware that I can just make it work with Lua code, since I have HC2. But this is for testing that it works in HC Lite, since im planing setting HC Lite's up in other homes.

     

    Really hope someone have a solution to this problem.

     

    Thanks.

    Hi.

    I want to use a Hue bulb as part of an scene, after reading seems that the only way to do that is with code/virtual device, many lines for HC2, but mine is HCL so not easy to find info and my coding skills are quite poor

    I'm trying to learn about and my method actually is very slow, usually test and error based on copy paste and adapting the sequence, that use to be useful for understanding what I'm doing but not all.

    After your post i've been able to have my hue api username and the bulb located, trying to replicate your sentence adapted to my case it does not work. probably cause i'm just sure until ...../lights/6/state,  the rest: HTTP/1.10x0D0x0AHost: 192.168.1.71x0D0xAContent-Lenght: 120x0D0x0AContent-Type: application/json0x0D0x0A0x0D0x0A{"on":true} seems absolutely chinese for me and don't know if usefull but wrong spelling or completely a disaster. Where can I find info to know where is http/1.10 etc is coming from?

    Thanks in advantage

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • @baliya @Rikbast Did you ever find a solution on the slow respond time ?

     

    Please login or register to see this code.

    is the light you are controlling.

     

    Please login or register to see this code.

    is the code to connect correctly to the Hue API . (Change 192.168.1.7 to your own Hue IP)

     

    Please login or register to see this code.

    command to turn ON and Off the light

    Link to comment
    Share on other sites

    • 0
    8 hours ago, imLiquid said:

    @baliya @Rikbast Did you ever find a solution on the slow respond time ?

     

    I don't have HCL anymore, now HC2, so using LUA now. I did not look further in the response time of the HCL in combination with HUE,

    but I don't think it really is an issue, it works.

     

     

     

    8 hours ago, imLiquid said:

     

    Please login or register to see this code.

    is the light you are controlling.

     

    Please login or register to see this code.

    is the code to connect correctly to the Hue API . (Change 192.168.1.7 to your own Hue IP)

     

    Please login or register to see this code.

    command to turn ON and Off the light

     

    Link to comment
    Share on other sites

    • 0
    On 5/14/2019 at 12:36 AM, imLiquid said:

    @baliya @Rikbast Did you ever find a solution on the slow respond time ?

     

    Please login or register to see this code.

    is the light you are controlling.

     

    Please login or register to see this code.

    is the code to connect correctly to the Hue API . (Change 192.168.1.7 to your own Hue IP)

     

    Please login or register to see this code.

    command to turn ON and Off the light

    lights/6 is the correct one, allready tested with {""on:true} {"on":false} commands ao clip api debugger prior to post

    My Hue ip is 192.168.1.71 as seen on the command, but doesn't work,  is the sequence correctly typed?,  I mean did I introduced any extra space or type mismatch

    The name of the buttons??

    Thks for helping

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
    1 hour ago, baliya said:

    lights/6 is the correct one, allready tested with {""on:true} {"on":false} commands ao clip api debugger prior to post

    My Hue ip is 192.168.1.71 as seen on the command, but doesn't work,  is the sequence correctly typed?,  I mean did I introduced any extra space or type mismatch

    The name of the buttons??

    Thks for helping

     

     

    Please login or register to see this attachment.

     

    Put an '0' behind ip-address like this: 192.168.1.710x0D0xA

    Link to comment
    Share on other sites

    • 0

    T

    2 hours ago, Rikbast said:

     

    Put an '0' behind ip-address like this: 192.168.1.710x0D0xA

    Already tryed, but double checked just in case. Tested even with or without an space between host: ip (local: 192.xxx and local:192.xxx).

    :-(

    Link to comment
    Share on other sites

    • 0
    On 5/16/2019 at 9:02 AM, Rikbast said:

    It's 'Length' not 'Lenght'

    Your right, even that not working. Thks very much for the correction

    Actualy the code is:

    PUT /api/QJt....7cJT/lights/6/state HTTP/1.10x0D0x0AHost:192.168.1.71x0D0x0AContent-Length:120x0D0x0AContent-Type:application/json0x0D0x0A0x0D0x0A {"on":true}

    I'll keep searching..

    Link to comment
    Share on other sites

    • 0

    I've got news about this complete mess.

    Actually this code:

    PUT /api/.......cJT/lights/6/state HTTP/1.10x0D0x0AHost: 192.168.1.710x0D0x0AContent-Length:450x0D0x0A0x0D0x0A{"on":true}0x0D0x0A

    and Tachaaaaan.. is working, but just once ;(.

    Seems that the reason is not the code, i works once shoul work more times either for on adn off  situations. Tryed  on normal status, and after powering off, the hue hub and the HCL at the same time

    Dupe to follow

    Link to comment
    Share on other sites

    • 0

    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.

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