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


Recommended Posts

Posted

10der@,  chiel-s @

Please login or register to see this code.

Posted
6 hours ago, chiel-s said:

@10der, is it possible to configure settings for hue lights? Such as:

 

Please login or register to see this code.

Would be great. The last piece to finalize my light automation :-) I have tried 'level' but that seems not be working for Hue lights.

Hmmm... why it’s not single command... but ok will do 

Posted
8 hours ago, chiel-s said:

@10der, is it possible to configure settings for hue lights? Such as:

 

Please login or register to see this code.

Would be great. The last piece to finalize my light automation :-) I have tried 'level' but that seems not be working for Hue lights.

ahh no!

it doesn't work. sorry. My script always want to know the current status of lighting (switch / dimmer / etc).

so, please put your HUE to QA  as switch or dimmer. update value according to the current state of your HUE

and provide this QA id for my script.

  • Topic Author
  • Posted
    3 hours ago, 10der said:

    ahh no!

    it doesn't work. sorry. My script always want to know the current status of lighting (switch / dimmer / etc).

    so, please put your HUE to QA  as switch or dimmer. update value according to the current state of your HUE

    and provide this QA id for my script.

     

    Hmm ok. And if you only add the Brightness? Because that's the equivalent of the dim level. Woud that be possible?

    Please login or register to see this code.

    Posted

    @chiel-s I thonk you not clear understand me....

    yes, I can turn on anything... but you back to me in 5 min and asking me wht script trying turn on lights every 5 sec.

    so yes i can changeBrightness to 255 but how script check what Brightness is 255.

    so, please attach me response 

    http://192.168.1.36/api/devices/29

    where 192.168.1.36 ip address of your HC3

  • Topic Author
  • Posted
    7 minutes ago, 10der said:

    @chiel-s I thonk you not clear understand me....

    yes, I can turn on anything... but you back to me in 5 min and asking me wht script trying turn on lights every 5 sec.

    so yes i can changeBrightness to 255 but how script check what Brightness is 255.

    so, please attach me response 

    http://192.168.1.36/api/devices/29

    where 192.168.1.36 ip address of your HC3

     

     

    Please login or register to see this code.

     

    Posted (edited)

    Please login or register to see this code.

    also level can be as DImmer 0..99 or for color 0..255

     

    Edited by 10der
    Posted
  • Topic Author
  • Posted (edited)
    3 hours ago, 10der said:

    Please login or register to see this code.

    also level can be as DImmer 0..99 or for color 0..255

    Please login or register to see this attachment.

     

     

    @10der, thanks for your quick reply and thank you for adding this to your script. I really appreciate that and I think a lot of other people on this forum as well! When hue is going to be supported I think this is a must-have-script for everyone owning a fibaro home center ;-) It's so flexible ;-)

     

    I added the QA but the lights are not turned on. After commenting the --jT = json.decode((fibaro.getGlobalVariable("HomeTable"))) line the script (I am not using a hometable), the QA starts succesfully but the lights are not reacting. When I enable the debug mode I get the following message:

     

    Please login or register to see this code.

     

     

     

     

     

     

     

    Edited by chiel-s
    Posted

    Ok. Can we close this Qa and just simple create a new scene 

    empty LUA scene

    ok? Ready?
    yeah

    just in blank right panel 

    fibaro.call(29, “setColor”, 0,255,0,0)

    run

    your HUE should start green color 

    if not - strange 

    Btw

    can you try 

    level = 255

    6 hours ago, chiel-s said:

    actions": { "setColor": 1, "setValue": 1,

    According you device it should support this commands

  • Topic Author
  • Posted (edited)
    26 minutes ago, 10der said:

    Ok. Can we close this Qa and just simple create a new scene 

    empty LUA scene

    ok? Ready?
    yeah

    just in blank right panel 

    fibaro.call(29, “setColor”, 0,255,0,0)

    run

    your HUE should start green color 

    if not - strange 

    Btw

    can you try 

    level = 255

    According you device it should support this commands

     

    @10der,

    Please login or register to see this code.

    returns in:

    Please login or register to see this code.

    I don't think that it supported? I know that the following is working:

    Please login or register to see this code.

    Also good to know that Philips Hue always needs the fibaro.call(29, "turnOn") line to turn it on. When calling changeHue or changeBrightness won't turn the light on. At this moment none of my Hue lights react, also the rooms without any level settings defined. Level 255 is also not working.

    Edited by chiel-s
    Posted

    please check:

    Please login or register to see this code.

    should be

     

    Please login or register to see this code.

    You are using bad char 

     

     

    • Thanks 1
  • Topic Author
  • Posted (edited)
    17 minutes ago, petrkl12 said:

    please check:

    Please login or register to see this code.

    should be

     

    Please login or register to see this code.

    You are using bad char 

     

     

     

    Could be, but I also cound't turn them on via the user interface. Rebooted homecenter.

    When I run:

    Please login or register to see this code.

     

    The light goes on and turns green. So you were right, that is working. Debug mode returns (my timeout = 5 now):

    Please login or register to see this code.

     

    When I trigger the motion sensor the light doesn't turn on. Debug returns:

     

    Please login or register to see this code.

     

     

     

    Edited by chiel-s
    Posted

    ok, I do not know about turnOn is mandatory for HUE.

    will fix

    @chiel-s

    • Like 1
    Posted
  • Topic Author
  • Posted
    1 hour ago, 10der said:

     

    Thanks @10der!! It is working! :-) Great! The hue lights react now and I can set the colour. Is it also possible to set the brightness of the hue light? I thought I could use the 4th value? Where '99' and '10' are the brightness. But that is not working.  In example:

     

    Please login or register to see this code.

     

    • Thanks 1
    Posted
    23 minutes ago, chiel-s said:

    set the brightness of the hue light?

    just assign level as integer

     

    level = 255

    @chiel-s OMG. I forgot what HUE has bug and I should add 

    fibaro.call(id, "turnOn")
    Posted (edited)

    @chiel-s can you change body of QA.

    I am busy with the current work now. sorry, can`t re-publish QA in the topic.

     

    thnak you!

     

     

    Edited by 10der
    Posted

    PS: according to Fibaro docs

    "0,255,0,0"

    r,g,b,w

    brightness - my guess independent

    :( 

     

    Posted (edited)

    @10der another fix 

    v1.2.090920.3

     

    so, now you can use (or not use) 5 params in color.

    r, g, b, w

    or 

    r, g, b, w, brightness 

     

    level = "0,255,0,0,10",

     

     

    Please login or register to see this attachment.

    @chiel-s

    Edited by 10der

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