This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Control Homey's LED ring?

Hi all - does anyone know if it's possible to control Homey's LED ring? In a flow you can have some control, but only for a brief duration (a quick pulse to give off a signal).

Is it possible to change the idle LED behavior based on, say, time of day? In the evening I'd like it to dim a little, and when I'm off to bed I'd like it to turn off. Or weather based, bright yellow when it's sunny, dark grey when it's raining, etc.

Can this be done programmatically perhaps?

Comments

  • Yes, that is a good idea. Would like to setup a flow which turns off the ring after 0:00 and turns it back on at 7:00.

    And using the LED as indicator for rain, movement, etc. would be awesome, too!
  • When watching Battlestar Galactica or Knight Rider it should definitely turn red and pulse from side to side.
  • https://github.com/athombv/homey/issues/82
    As it will be possible to lower the volume through the flow-editor, I presume the same holds for birghtness...
  • Wow, that was quick :)


    Excellent!
  • Cool, was already wondering how this could work. I like the led ring, but my living room looks like a disco during the night :)
  • And it uses ~4W. A Homey with the LED ring on: ~7W when idle. With the LED ring off: ~3W.
  • How do you know this RamonBaas? Did you measured this?

    So if I understand it correctly the power consumption of Homey is as follows.

    Homey when performing tasks (with LED ring on) = 7 watt
    Idle Homey with LED ring on = 4 watt
    Idle Homey with LED ring off = 3 watt

    So the LED ring costs an extra 1 watt
  • No, idle with ring on is 7W, idle with ring off is 3W.
    So the ring uses 4W.
  • edited February 2016
    When used in programming, the following code can be applied for getting a loading led animation with a duration of 5 seconds:

    Homey.manager('ledring').animate(
        // animation name (choose from loading, pulse, progress, solid)
        'loading',
        
        // optional animation-specific options
        {
           
      color: 'green',
            rpm: 300 // change rotations per minute
        },
        
        // priority
        'INFORMATIVE',
        
        // duration
        5000,   // Duration in miliseconds, so 5000 is 5 seconds
        
        // callback
        function( err, success ) {
            if( err ) return Homey.error(err);
            Homey.log("Animation played succesfully");
        }
    );
  • Fire69 said:
    No, idle with ring on is 7W, idle with ring off is 3W.
    So the ring uses 4W.
    Exactly what I measured, yes.
  • RamonBaas said:
    Fire69 said:
    No, idle with ring on is 7W, idle with ring off is 3W.
    So the ring uses 4W.
    Exactly what I measured, yes.
    I was just recapitulating your post because Jesper misunderstood  :#
This discussion has been closed.