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

QuickApp - Philips Hue - All in One


Question

QA for Philips Hue devices (for HC3 5.040 GA or above):

- support of philips hue lights, switches and sensors (motion, temperature, light) and some ikea lights connected to hue bridge
- unlimited number of hue bridges
- all logic and setup are centralized in QA HueMain
- creating of hue devices via click on buttons in HueMain
- a lot of parameters for advanced users
- automatic update of all devices in case of new versions
- centralized setting of favorite buttons,colors and icons (also possibility to override settings via local variables in every QAs)

- power consumption calculation for lights

- supported languages: en,cz,de,se,nl,sk,fr,ru,it,pl

 

Please login or register to see this image.

/monthly_2020_08/image.thumb.png.89768d5ac25bcbe213f35ac9fe971499.png" />

 

image.thumb.png.3d4e23ecfca469eaaf43eee82bafd820.png

 

image.png.8dcdb45ade949b7158f77f4be2bb3dd5.png

 

Installation:
1.    Download HueMain.fqa
2.    Install HueMain.fqa to HC3
3.    In Variables in HueMain you have to setup:
- HueBridgeName1     - you can choose any name of your bridge - it can be whatever – allowed characters: a-z, A-Z, 0-9, _ - for example MyBridge1
- HueBridgeIP1    - IP address of your bridge for example 192.168.1.200
- Save variables - HueMain should start if everything is OK
4.    And than you have 2 options:
a)  you know your user in bridge - you can add it to Variables  - item HueUser1  ie.vPCj123VmJ18uWSHqpXfidxq5sjsP1q4Wi6DiCm 
b) you can create user in HueMain - last part - button Create user (you will need physical access to your Hue bridge and press button there)

+ save/restart
5.    HueMain should run (if everything is OK) and show your hue devices in menu
6.    You can create QAs for group of lights, lights and sensors in menu in HueMain

 

Files:

1. QA - HueMain

Please login or register to see this attachment.

 

2. Icons:

Please login or register to see this attachment.

 

HOW TO CALL from other QAs or Scenes:

Please login or register to see this code.

 

Please login or register to see this code.

 

How to add icons where is not direct QA support for icon selection - for example for QA Hue Switches:

There is not possible to change icon for switch via user interface but you can do it via my QA:

1. you have to upload icons for hue switch:

  •  In HueMain - tab General - add Icon
  • Select your user icons and save it. You don't need to change icon for your HueMain

2. You need to get icon number - user icon has number with 4 digits (I hope that you don't have more 9999 icons currently :) )

  • right click on icon in your browser and select save picture - there will be - ie. User1007.png  - your icon number is 1007 (in some of icons ie. for lights you can see longer number ie. User1018100.png, always use only first 4 digits - 1018

3. In HueMain - tab Variables - add your icons number to IconSwZLLxxx (default icon is 0)  or IconSwZGPxxx based on your hue switch type - btw. you can set also default icons for all your hue devices

4. Save your variables and HueMain will be restarted and your HueQAs will have new nice icons :)

 

Edited by petrkl12
  • Like 12
  • Thanks 3
Link to post
Share on other sites
  • Answers 86
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

QA for Philips Hue devices (for HC3 5.040 GA or above): - support of philips hue lights, switches and sensors (motion, temperature, light) and some ikea lights connected to hue bridge - unlimit

New version of HueMain 3.00 is available (version of "child" hue QAs like lights, sensors etc. is 2.10).   What is new: - enabling/disabling of motion sensors - fix key id for frie

I can try to add button and method for disabling motion sensor   btw. my wife had similar problem with long shower without lights  so I had to add another hue motion sensor above shower and

Posted Images

Recommended Posts

  • 0

Thanx for the very useful quick app.

 

I'm using the friends of hue switch.

The key id of the up right button is empty. So it wont work in scenes. Can you pleas fix that?

up right: Empty
up left : 2
down left : 3
down right id 4

Link to post
Share on other sites
  • 0
  • Inquirer
  • I don't have the friends of hue switch. I need to know what is returned if you press that button.

     

    Please login or register to see this image.

    /monthly_2021_01/image.png.c3d1d8e9d3c9adf85332d83b255ee0c9.png" />

     

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • On 12/22/2020 at 7:50 PM, jboileau173 said:

    A big and very big thank you for your work!
    This is really what I needed and I don't think I'm the only one.
    Do you think you can make the duration of the on and off transitions persistent?

    Thank you very much see you soon !

    It was already implemented - you can change variable "TransitionTime" in QA for hue lights

     

    Link to post
    Share on other sites
    • 0

    Following  you find the printscreen when I push the upper left button:

    Please login or register to see this image.

    /monthly_2021_01/D6D0A81C-88A2-43AB-A1E7-B9B5516D97B1_4_5005_c.jpeg.4210c21ca55ff6e62cb492c931ecea0e.jpeg" />

     

    and now the upper right button no change! Nothing happens!

    D9AA4251-E9C8-4519-B1CB-178F30C9F47D_4_5005_c.jpeg.f1c142eccf78cab2d6454c7058cace94.jpeg

     

    Edited by fibaromac
    Link to post
    Share on other sites
    • 0
    On 10/24/2020 at 6:00 PM, petrkl12 said:

    I can try to add button and method for disabling motion sensor

     

    btw. my wife had similar problem with long shower without lights :) so I had to add another hue motion sensor above shower and persuade philips to add cooperative mode for two sensors :)

     

     

    Is there already a solution to disabling or enabling a motion sensor?

     

    When i'm away i like to turn on the outdoor motion sensor in the hue bridge.

    • Like 1
    Link to post
    Share on other sites
    • 0
    On 12/6/2020 at 8:53 PM, Goran111 said:

    This is great QA, thanks!

     

    But ... a basic question as I am new to Fibaro ... how do I install icons to this QA? 

     

    Thanks!

     

    Good question how do you install all the icons?

    Link to post
    Share on other sites
    • 0
  • Inquirer
  •  disabling or enabling a motion sensor is in development

    Please login or register to see this image.

    /monthly_2021_03/image.png.425c71b688187e1cb1e15f3972e15ee5.png" />

     

    image.png.37e2b1253b502f89a46c2f0056bcb5fe.png

    • Like 1
    Link to post
    Share on other sites
    • 0
  • Inquirer
  • Posted (edited)

    New version of HueMain 3.00 is available (version of "child" hue QAs like lights, sensors etc. is 2.10).

     

    What is new:

    - enabling/disabling of motion sensors

    - fix key id for friends of hue switch

    - added support for some other languages

    - a lot of other improvements

     

    In the first post there is also description how to call Hue QAs from other QAs or scenes.

    Edited by petrkl12
    • Like 3
    Link to post
    Share on other sites
    • 0
    1 hour ago, petrkl12 said:

    New version of HueMain 3.00 is available.

    Awesome ! Thanks again for the great work !

     

    Is there any recommended way to update to this version ? Just set the "AutomaticUpdate" to Yes ? Will it keep the current child devices working ? 

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • for complete update press this button

    Please login or register to see this image.

    /monthly_2021_03/image.png.b7f96d11b8ae92e981d64434cd016f0a.png" />

     

    All your Hue QAs will be updated too :) 

    or you could wait till 3:00am if you have AutomaticUpdate=Yes in variables (btw this is default value)

    • Like 1
    Link to post
    Share on other sites
    • 0
  • Inquirer
  • On 2/15/2021 at 10:11 AM, mbnn said:

     

    Good question how do you install all the icons?

    @mbnn

    @Goran111

     

    How to add icons where is not direct QA support for icon selection - for example for QA Hue Switches:

    There is not possible to change icon for switch via user interface but you can do it via my QA:

    1. you have to upload icons for hue switch:

    •  In HueMain - tab General - add Icon
    • Select your user icons and save it. You don't need to change icon for your HueMain

    2. You need to get icon number - user icon has number with 4 digits (I hope that you don't have more 9999 icons currently :) )

    • right click on icon in your browser and select save picture - there will be - ie. User1007.png  - your icon number is 1007 (in some of icons ie. for lights you can see longer number ie. User1018100.png, always use only first 4 digits - 1018

    3. In HueMain - tab Variables - add your icons number to IconSwZLLxxx (default icon is 0)  or IconSwZGPxxx based on your hue switch type - btw. you can set also default icons for all your hue devices

    4. Save your variables and HueMain will be restarted and your HueQAs will have new nice icons :)

    • Thanks 1
    Link to post
    Share on other sites
    • 0

    Thx! Great QuickApp better then adding the hue lights in HC3 if you ask me (i also like to use keep using the Hue app as well). 

    Link to post
    Share on other sites
    • 0

    got one question:

     

    rgbw/extended color light device exposes 'color' property when queried via /api/devices/xxx link

    but why doesn't color temperature light expose similat property? how can I get current light setting/temperature from such device?

     

     

    Please login or register to see this attachment.

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • Posted (edited)
    1 hour ago, naboo said:

    got one question:

     

    rgbw/extended color light device exposes 'color' property when queried via /api/devices/xxx link

    but why doesn't color temperature light expose similat property? how can I get current light setting/temperature from such device?

     

     

    Please login or register to see this attachment.

    Philips Hue is using different method how to change color - 3 types but not R,G,B that is in Fibaro

    Please login or register to see this code.

     

    I'm changing this property in case of method 1 and 2

    For Color Temperature is not defined item for this type of QA device.

     

    Edited by petrkl12
    Link to post
    Share on other sites
    • 0

    Is there any way to set color params using fibaro.call(QAID_HueMain, "HueCommands", ... command and to somehow be able to get/confirm the same color params by querying light device, e.g. using /api/devices/xxx ??

     

    I'm asking because when I call:

    fibaro.call(QAID_HueMain, "HueCommands", {type='Hue', action='colorRGB', deviceID=QAID_HueLight, colorR=254, colorG=0, colorB=0, value=0})

    and then query light device:

    /api/devices/434

    I'm getting:

    "color": "255,29,0,1"

     

    Yes, I know the last light param in fibaro.call command is not White channel so maybe would it be possible to add another call to QA to set light color by RGBW? 

     

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 1 hour ago, naboo said:

    Is there any way to set color params using fibaro.call(QAID_HueMain, "HueCommands", ... command and to somehow be able to get/confirm the same color params by querying light device, e.g. using /api/devices/xxx ??

     

    I'm asking because when I call:

    fibaro.call(QAID_HueMain, "HueCommands", {type='Hue', action='colorRGB', deviceID=QAID_HueLight, colorR=254, colorG=0, colorB=0, value=0})

    and then query light device:

    /api/devices/434

    I'm getting:

    "color": "255,29,0,1"

     

    Yes, I know the last light param in fibaro.call command is not White channel so maybe would it be possible to add another call to QA to set light color by RGBW? 

     

    for colors you can use also native commands from philips

    Please login or register to see this code.

    and for color temperature

    Please login or register to see this code.

     

    Link to post
    Share on other sites
    • 0
    3 minutes ago, petrkl12 said:

    for colors you can use also native commands from philips

    Please login or register to see this code.

    and for color temperature

    Please login or register to see this code.

     

    but I won't be able to get the same params from light device in color property

     

    Link to post
    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...