1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BUG Hyperion.ng SwitchOffOnBlack not working

Discussion in 'Bug Reports' started by muckelinho, 1 September 2018.

  1. muckelinho

    muckelinho New Member

    Messages:
    2
    Hardware:
    RPi3, +PhilipsHue
    Hello!

    i tried the pre alpha of Hyperion.ng. First: it's an amazing new version. Awesome! I configured my Philips Hue Lamps and it works very well. But the Lamps don't turn off when there is a black border.
    With the latest stable and HyperCon it worked very pretty with the command. But when I toggle this option in the new webinterface nothing happens.

    Do you know this problem? Is there a workaround for the config?
     
  2. muckelinho

    muckelinho New Member

    Messages:
    2
    Hardware:
    RPi3, +PhilipsHue
    The Console shows me this message:

    [hyperiond LedDevice] <WARNING> Did not recognize model id LCT015 of light ID 1
    [hyperiond LedDevice] <WARNING> Did not recognize model id LCT015 of light ID 3

    This are the Lamps from the Philips Hue Starter Kit E27...
     
  3. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    Hiya Guys,

    Resurrecting this old thread as i've just move from Hyperion -> Hyperion.ng with my Hue Colour bulbs i am seeing the same issue as OP.
    `switchOffOnBlack` works really well on Hyperion, but the functionality appears broken on Hyperion.ng, my lights just go really dim and never ever turn off on black screens. I'm using a vl42 USB input, with 4 Hue Colour bulbs, which otherwise work perfectly in both versions of Hyperion.

    I've been looking through the code and there was a recent change (after OP's original post) which fixes something to do with brightness, but the version i am running contains this and i'm still seeing issue.
    https://github.com/hyperion-project...e908bd2#diff-6e333c71d3bd69c0d9504b08590a53c0

    Can anyone confirm if this is an issue with my setup or the code please?

    After using Hyperion.ng, it has so many nice improvements over Hyperion that i'd like to not have to go back.

    My config is as follows:



    Cheers
     
  4. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    I might have spotted a possible cause, but i've currently not got the correct tool chain to change and test, would someone else be able to maybe try?

    The theory here is that Turning the light off, then changing the colour presumably will turn it back on?

    LedDevicePhilipsHue.cpp (Current code)
    Code:
            if (switchOffOnBlack && xy.bri == 0)
            {
                light.setOn(false);
            }
            else
            {
                light.setOn(true);
            }
            // Write color if color has been changed.
            light.setTransitionTime(transitionTime);
            light.setColor(xy, brightnessFactor);
    LedDevicePhilipsHue.cpp (proposal)

    Code:
           
            if (switchOffOnBlack && xy.bri == 0)
            {
                light.setOn(false);
            }
            else
            {
                light.setOn(true);
    
                // Write color if color has been changed.
                light.setTransitionTime(transitionTime);
                light.setColor(xy, brightnessFactor);
            }
    
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,202
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  6. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    • Like Like x 1