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

Turn on / off a philips hue light from a lua scene


Frakke

Question

5 answers to this question

Recommended Posts

  • 0

Determine the device id, and call turnOn:

 

           fibaro:call(369, "turnOn");

 
You can also change hue, saturation and brightness, similar to the code below:
 
 fibre:call(369, "changeHue", 255)
 
You can do changeSaturation, changeBrightness. Hue goes to 65535, the rest to 255.
Link to comment
Share on other sites

  • 0
  • Inquirer
  •  

    Determine the device id, and call turnOn:

     

               fibaro:call(369, "turnOn");

     
    You can also change hue, saturation and brightness, similar to the code below:
     
     fibre:call(369, "changeHue", 255)
     
    You can do changeSaturation, changeBrightness. Hue goes to 65535, the rest to 255.

     

    Perfect thanks! 

    That's working!

    Link to comment
    Share on other sites

    • 0

    Dear Fibaro,

     

    I am controlling my 18 hue bulbs from the HUE app aswell as from my Fibaro domotica system.
    Is there a manual describing how to control the HUE via HTTP commands.  At the moment I am controlling my HUE from a script in the Fibaro HC2. 

     

    To set the 6 bulbs in my kitchen I have to independently set all bulbs (with different ID's) via the commands: 
    fibaro:call(hueID, "changeHue", 15547)     
    fibaro:call(hueID, "changeSaturation", 109) 
    fibaro:call(hueID, "changeBrightness", 160)
    fibaro:call(hueID, "turnOn"); 

    Are above commands HUE commands or Fibaro commands? It would be more convenient to directly start/stop  a HUE scene with a group of bulbs instead of controlling them independently .

    In between sending the colors to the HUE I have to set delays.  And the still sometimes soms bulbs are not turned on.
     
    Can you send me more information?

    Link to comment
    Share on other sites

    • 0

    i only use on/off command

     

    HueGtw = Net.FHttp("192.168.1.204",80)
    HueGtw:PUT ('/api/newdeveloper/lights/3/state', '{"on":true}')

     

    Edited by akatar
    Link to comment
    Share on other sites

    • 0
    3 hours ago, akatar said:

    i only use on/off command

     

    HueGtw = Net.FHttp("192.168.1.204",80)
    HueGtw:PUT ('/api/newdeveloper/lights/3/state', '{"on":true}')

     

     

    Thx Avatar.  I was able to send all the commands via the API.

    These lignes will help me to use in LUA

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