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 66
  • 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

  • 1
  • Inquirer
  • 5 hours ago, jguellec said:

    Hi @petrkl12, I have a quick "feature request/suggestion" for you ))

     

    It would be magic to have the possibility to switch ON/OFF a motion sensor with a method that could be accessed from another scene or QA. 

     

    Let me explain why : I have a motion sensor that is turning the light ON/OFF in the bathroom. Usually 30min is enough, but when my GF takes a shower, she usually spends more time... Then she barks after me because she's in the dark ))) It would be great if I could press a switch in the bathroom that would turn the sensor off.

     

    This is the settings in the HUE bridge : 

     

    "config": {
            "on": true,
            "battery": 22,
            "reachable": true,
            "alert": "none",
            "ledindication": false,
            "usertest": false,
            "sensitivity": 2,
            "sensitivitymax": 2,
            "pending": []
    },

     

    Do you think it's doable ?

    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 :)

     

    • Like 2
    Link to post
    Share on other sites
    • 0
  • Inquirer
  • yes, there are currently following languages: en,cz,de,se,nl,sk,fr,ru,it - you can change it in Variables in HueMain - item Language   

     

    Please login or register to see this image.

    /monthly_2020_09/image.png.9e35d47bbee19158ed39942bc2f3adcc.png" />

     

    27 minutes ago, pnutp0wer said:

    Which IKEA devices are supported? 

    I don't have any IKEA bulbs but I think that it should work. There could be only problem with not correct power consumption (in log there will be warning and default consumption will be used).

    There is support for TRADFRI bulb GU10WW400lm, TRADFRI bulb GU10WS400lm and TRADFRI bulb E14Wopch400lm

     

    Link to post
    Share on other sites
    • 0

    @petrkl12,

    Hi, I installed agin your QA.

    If I push button "Create all  QA Standard lights " it will install also colored lights.

    If I press button  for colored light nothing happens.

    //Sjakie

    ps my HC3 is still not working as it should be.

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 3 hours ago, jguellec said:

    Excellent work @petrkl12 ! Thank you so much for sharing it. 

     

    I have a quick question : is there a way to configure/reduce the polling interval with the bridge ? 

    Yes, there are parameters UpdateLights and UpdateSensors in HueMain (in milliseconds).

    • Like 1
    Link to post
    Share on other sites
    • 0
  • Inquirer
  • 31 minutes ago, Sjakie said:

    @petrkl12,

    Hi, I installed agin your QA.

    If I push button "Create all  QA Standard lights " it will install also colored lights.

    If I press button  for colored light nothing happens.

    //Sjakie

    ps my HC3 is still not working as it should be.

    1. Buttons "Create All QA Standard lights" or "Create All QA Color Group Lights" will create QA only for lights that were not created yet.

    2. There is no controls what hue types you have - so you can create "color" QA for black&white hue bulb

     

    In your case you have to create QA separately for different types. In next version I can create button for creating QA for bulbs based on hue type.

     

    btw. my recommendation is creating QA only for group of lights not for every bulb. You can reduce the overall system load (HC3 and Hue bridge).

    Link to post
    Share on other sites
    • 0

    Hi,thanks for answer. I dont ned a special button its just a remark. I like to import all HUE/Ikea lights.

    What I have seen now is that HUE bridge ist having any problem with load, the limit will be HC3.

    I did a test with 10 pieces HUE to switch separately all on/off, sometimes HC3 failed.

    I will see witch groups I can create because some lights are switched on together I hope it will help.

    My HC3 doest switch on HUE in LUA only with block scene.

    //Sjakie

    Link to post
    Share on other sites
    • 0

    Hi @petrkl12, I have a quick "feature request/suggestion" for you ))

     

    It would be magic to have the possibility to switch ON/OFF a motion sensor with a method that could be accessed from another scene or QA. 

     

    Let me explain why : I have a motion sensor that is turning the light ON/OFF in the bathroom. Usually 30min is enough, but when my GF takes a shower, she usually spends more time... Then she barks after me because she's in the dark ))) It would be great if I could press a switch in the bathroom that would turn the sensor off.

     

    This is the settings in the HUE bridge : 

     

    "config": {
            "on": true,
            "battery": 22,
            "reachable": true,
            "alert": "none",
            "ledindication": false,
            "usertest": false,
            "sensitivity": 2,
            "sensitivitymax": 2,
            "pending": []
    },

     

    Do you think it's doable ?

    Link to post
    Share on other sites
    • 0

    Greetings, is this sensor in the bathroom or out ? If  sensor is in the bathroom this is perfext solution .you can use this script for what you need, without turning off sensors

    If motion is detected it will reset timer. 

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

    Thanks @VedranS.

     

    I'll have a look at your solution, but I'm afraid it won't work because the lights are turned off by the Hue bridge itself, not the HC3 :( 

     

    So I need to disable the sensors directly on the Hue bridge :( 

    Edited by jguellec
    Link to post
    Share on other sites
    • 0
    19 minutes ago, 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 :)

     

     

    Ahahahah, so you know what I'm going through 😂😂

     

    The other sensor could be a solution, but with water steam, I'm not sure it's a good idea. 

    Link to post
    Share on other sites
    • 0

    Thank you for the fantastic application, please help me send the command to turn on the scene on the bridge, e.g. Savanna sunset in lua scene fibaro

    thank you

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • You can try:

    Please login or register to see this code.

     

    how to get scene id:

    you can select your favourite scene in group of lights and press button Set scene than in log you can find id of scene: Z-uo2rbbwTKWWnA

    [25.10.2020] [16:18:20] [TRACE] [QA_HUE_MAIN_215]: [TRACE] HueCommands args={"deviceID":254,"action":"setscene","transitiontime":0,"time":1603639100,"value":"Z-uo2rbbwTKWWnA","type":"Hue"} - Delivered: 0s

     

     

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

    Thanks, but I'm probably making a mistake somewhere, it doesn't work yet :-(

    26.10.2020] [09:37:41] [DEBUG] [QA_HUE_MAIN_249]: onAction: {"args":["table: 0xffff5c0c9970"],"actionName":"HueCommands","deviceId":249}
    [26.10.2020] [09:37:41] [DEBUG] [QA_HUE_MAIN_249]: [L] HueCommands args=table: 0xffff5c0c9970

     

    Please login or register to see this attachment.

     

    Link to post
    Share on other sites
    • 0

      Thank you all for the wonderful support. 

    this works > 

    fibaro.call(249"HueCommands", json.encode{type='Hue', action='setscene', deviceID=500, value="Sb3tQgnZEpnV0gO", transitiontime=0})
    Link to post
    Share on other sites
    • 0

    A great quick app. Many thanks. Should be the official one. No urge but icons are not taken into account for hue tap and hue dimmer. the device appears with standard "remote" icon. I may try to re-install the quick app.

    Again a big thank!

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