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

Deleted Entrance child.

Upgraded to 0.2.27

Console:

Please login or register to see this code.

 

After restarting Yahue I get same output in console as the above one.

Entrance child is added as multilevel switch:

Please login or register to see this spoiler.

but scene drop down is not populated.

  • Topic Author
  • Posted

    Sorry for this, the error is not happening where I try to catch it.
    Last try (for today at least), install v0.2.28 and re-add Entrance, and share log...

    Posted

    Removed Entrance child.

    Upgraded Yahue to 0.2.28

    Yahue restarted and printed lots of debug lines for existing children.

    Again checked Entrance [RoomZoneDim] and applied.

    This is what I get for Entrance child debug:

    Please login or register to see this code.

     

    Hope this helps. I'm sorry to put you through this exercise.

    We can continue any time you can. I'm on vacation, mostly playing with my new code anyway.

     

  • Topic Author
  • Posted

    I hate bugs too (actually I like fixing bugs).
    v0.2.29 is a new attempt. I noticed that the QA classe involved may have missed its __init method. Then the nil error is deep in fibaro's class code and that could explain it...

    Posted

    Jan, I deleted YahueV2

    V0.2.29

    This is the debug of switching with HUE app

    last value = 14 was 1% in HUE app

    I don't complain seems that my problem is solved

    Please login or register to see this code.

     

    • Like 1
    Posted

    Hi Jan,

     

    You nailed it! :-) 

    Entrance child added without errors:

    Please login or register to see this spoiler.

     

    Thank you!

     

    • Like 1
    Posted

    Hi @jgab,

     

    This morning I have upgraded Yahue to 0.2.30 and all went well. I noticed that event listener again stopped last night because in the morning Yahue didn't update some lights when they turned on. Can't give you console output since it shows only lines since I restarted Yahue this morning and @Łukasz997 auto::cerr QA didn't send any notifications.

     

    For HUE Festavia, to get scene list drop down menu the best way is to add dummy room e.g. "Festavia" :-) and then put HUE Festavia there and add it as a room to get list of available scenes.

     

    I guess that for "effects" drop down list is much more coding to do, since "effects" are related to the individual bulbs rather than to the room/zone like are HUE scenes.

    To be honest on my HUE solution for HC2 I just added buttons for "effects" without really checking if bulb is capable of running them:

     

    HUEeffectsonVD.jpg.8c734139f77b2e857478ba2a6ff47300.jpg

     

    Thank you for the patience and excellent work! 👍

     

  • Topic Author
  • Posted
    13 minutes ago, Sankotronic said:

    Hi @jgab,

     

    This morning I have upgraded Yahue to 0.2.30 and all went well. I noticed that event listener again stopped last night because in the morning Yahue didn't update some lights when they turned on. Can't give you console output since it shows only lines since I restarted Yahue this morning and @Łukasz997 auto::cerr QA didn't send any notifications.

     

    For HUE Festavia, to get scene list drop down menu the best way is to add dummy room e.g. "Festavia" :-) and then put HUE Festavia there and add it as a room to get list of available scenes.

     

    I guess that for "effects" drop down list is much more coding to do, since "effects" are related to the individual bulbs rather than to the room/zone like are HUE scenes.

    To be honest on my HUE solution for HC2 I just added buttons for "effects" without really checking if bulb is capable of running them:

     

    Please login or register to see this link.

     

    Thank you for the patience and excellent work! 👍

     

    I'm looking into the effects thing - shouldn't be that difficult.

    It seems like the http stream dies silently, without success or error handler being called - just stops.
    I believe it is on the HC3 side. If the Hue hub drops the connection, the socket closes and net.TCPClient should tell the handlers...
    Anyway, there is a quickAppVariable 'sseWatchdog' that you can set to the number of seconds without traffic before it opens a new connection. Set it to 300 to wait 5min without any events and it assumes it dead and reconnects.
    Per default the sseWatchdog is set to 0 which disables the watchdog.

    I haven't seen the need for it yet on my machine, but it may help you.

    • Thanks 1
    Posted

    Hi Jan,

     

    thanks for the tip for sseWatchdog variable. Just to be sure, I add this variable to Yahue variable tab?

     

    I continue to test Yahue.

    It seems that adding drop down list and button on the same row looks nice only in the web GUI.

    This is how it looks on my iPad (added red box around button):

    Please login or register to see this spoiler.

    If you add effects that will make Yahue even better than Philips HUE original app. I have added effects on both, room with color only bulbs and on single light like HUE Festavia. Just turned on my living room to "fire" effect and I noticed that event listener is receiving events for brightness change, but not too often.

     

    I do have some more requests, but don't know if I bother you with those or I can get permission from you to do some changes on my own?

     

    Following modifications are preferred:

    • add translations for buttons and some messages printed on info label
    • set main quick app and child properties "manufacturer" and "model" so can be easily found by other Yubii UHAS quick apps
    • add qvar "colormode" to remember last state set by user e.g. "xy", "ct", "scene" or "effect" and store scene or effect ID or name if selected. This is when set by user using Yahue children. It is needed for ALC to be able to learn last state of the light or group of the lights.

    REASON for above request:

    In last 10 years I never needed HUE original app or for that matter Fibaro Home Center app to control my lights. I used Fibaro Home Center app only to change existing lights control settings, or to add new lights and set them up. No coding, no computers, no fuss with numbers, just sofa and Fibaro mobile app and little time to play with settings. What say you? :-) 

     

     

     

     

     

     

    Posted

    Hi Jan,

     

    regarding the event listener.

    I just walked to my kinds rooms and lights turned on.

    when I checked in the console there was still lines from event listener, but children were not updated and then after some time health-check line appeared in console after which listener stopped working:

    Please login or register to see this code.

     

    Events before health check already didn't change state of the children.

     

    I have also checked my UniFi Network manager and last reported disconnection for HC3 was on 24th April and lasted for less than a second.

    Same goes for my HUE Pro bridge. Note that most of my devices are either on static IP, or have IP address bind to MAC address.

  • Topic Author
  • Posted
    39 minutes ago, Sankotronic said:

    Hi Jan,

     

    thanks for the tip for sseWatchdog variable. Just to be sure, I add this variable to Yahue variable tab?

     

    I continue to test Yahue.

    It seems that adding drop down list and button on the same row looks nice only in the web GUI.

    This is how it looks on my iPad (added red box around button):

    Please login or register to see this spoiler.


    Ok, I'll move the drop and button on separate rows.
    I'll add your wishlist to my todo list (they seem reasonable). I'm going on a trip without access to my local network so I will start with the todos on Friday...

    Regarding event listener. I saw that behavior this morning too and thought it was the web UI that had stopped updating. Digging into it now I see a potential (really stupid) bug when updating the children.
    Fixed in in v0.2.32
     

    • Thanks 1
    Posted

    Changes can wait and I can give you few details later. Also will continue with testing and revert with eventual findings.

     

    Thanks again Jan and safe travels!

    Posted

    Jan,

    Icon in HC3 does't follow HUE app:

    Zone Hal_Indicatie:

    Ikea >> Color temperature light

    HUE/Ikea >>> Zone itself (is a mix HUE 5x and Ikea1x

     

    All Color temperature light in HC3  don't follow HUE app

    Posted

    Hi @Sjakie,

     

    Did you install Yahue latest version 0.2.32?

    I'm now testing this version and it looks really good. Color rings are following color from HUE app. Also as I can see brightness is properly updated.

    Note that I mostly use HUE scenes and very rarely fixed color. Also, I do not use anything else but my solution for HUE on HC2 to control lighting.

  • Topic Author
  • Posted
    33 minutes ago, Sjakie said:

    Jan,

    Icon in HC3 does't follow HUE app:

    Zone Hal_Indicatie:

    Ikea >> Color temperature light

    HUE/Ikea >>> Zone itself (is a mix HUE 5x and Ikea1x

     

    All Color temperature light in HC3  don't follow HUE app

    So you have a QA zone named Hal_Indicate.
    That zone has 5 Hue (color lights?) and 1 Ikea color temperature light


    ...and then you say that "All Color temperature light in HC3  don't follow HUE app"

     

    - you mean that when you set the Hal_Indicate to a temperature value in Hue app,

    -- the Hal_Indicate QA show wrong color or no change

    -- or the individual lights show wrong color or no change

     

    - or you mean that when you set an individual light belonging to Hal_Indicate in the Hue app

    -- the Hal_Indicate don't show the correct color or no change

    Are you on 0.2.32 ?

    Posted (edited)

    ok guys you release faster as I can manage! hahaha

    v0.2.32

    If in HUE app switch on zone Hal_Indicatie >> lights 1,2,3,4,6 switch on after each other & Hal_Indicatie >> shows on

    Hal_Spot_5 does't show on

     

    If I switch on Hal_Spot_5 :

    Hal_Spot_5 >>> shows off

    Hal_Indicatie >> shows on

     

    So you have a QA zone named Hal_Indicate.>>> yes
    That zone has 5 Hue (color lights?) and 1 Ikea color temperature light >>>>4 color 1 white and 1 Ikea

     

    All Color temperature light in HC3  don't follow HUE app" >>> yes having more IKEA, Rexel lights

     

    - you mean that when you set the Hal_Indicate to a temperature value in Hue app,

    -- the Hal_Indicate QA show wrong color or no change. >>> shows correct color

    -- or the individual lights show wrong color or no change >>> only color temperature light  no change and no on

     

     

    - or you mean that when you set an individual light belonging to Hal_Indicate in the Hue app

    -- the Hal_Indicate don't show the correct color or no change >>> only color temperature light not others are functioning good

     

    Edited by Sjakie
  • Topic Author
  • Posted

    and Hal_Spot_5 is the Ikea lamp?

    Posted

    yes

     

    Posted

    Hi Jan,

     

    event listener stopped again, same as before. First stopped refreshing children and then completely stopped with health-check.

    For now I will add qvar sseWatchdog as you suggested.

  • Topic Author
  • Posted
    9 minutes ago, Sankotronic said:

    Hi Jan,

     

    event listener stopped again, same as before. First stopped refreshing children and then completely stopped with health-check.

    For now I will add qvar sseWatchdog as you suggested.

    I looked at my QA and it had also stopped... 🤔🤔🤔🤔🙄🥳  I found a bug that the health check caused (wiping out the child update subscriptions...)
    v0.2.33 should fix it!
    If it works, I would recommend to set sseWatchdog back to 0...

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