Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing lights fail #10

Open
VoyagerMP opened this issue Sep 18, 2018 · 1 comment
Open

Listing lights fail #10

VoyagerMP opened this issue Sep 18, 2018 · 1 comment

Comments

@VoyagerMP
Copy link

root@fw:~ => vi /usr/local/lib/ruby/gems/2.4/gems/hue-lib-0.7.4/lib/hue/bulb.rb +92
root@fw:~ => hue24 lights

  1. Stehlampe Esszimmer: OFF
    Brightness: 0 (0%)
    Color: XY=[0.4578, 0.41], RGB≈[227, 172, 104]
  2. Stehlampe Wohnzimmer: OFF
    Brightness: 152 (60%)
    Color: Temperature=2732°K (366 mired), RGB≈[255, 166, 87]
  3. Stehlampe: ON
    Brightness: 254 (100%)
    Color: Temperature=2732°K (366 mired), RGB≈[255, 166, 87]
  4. Tisch: OFF
    Brightness: 192 (75%)
    Color: XY=[0.4174, 0.33], RGB≈[233, 140, 161]
  5. Lampe: OFF
    Brightness: 0 (0%)
    Effect:
  6. Stehlampe Schlafzimmer: OFF
    Brightness: 0 (0%)
    Effect:
  7. Deckenleuchte links: ON
    Brightness: 254 (100%)
    Effect:
  8. Deckenleuchte rechts: ON
    Brightness: 254 (100%)
    Effect:
  9. Deckenleuchte Wohnzimmer 1: ON
    Brightness: 254 (100%)
    Effect:
  10. Deckenleuchte Flur 1: OFF
    Brightness: 126 (49%)
    Effect:
  11. Deckenleuchte Flur 2: OFF
    Brightness: 126 (49%)
    Effect:
  12. Deckenleuchte Wohnzimmer 2: ON
    Brightness: 254 (100%)
    Effect:
  13. Deckenleucht Schlafzimmer: ON
    Brightness: 254 (100%)
    Effect:
  14. Dusche2: ON
    Brightness: 254 (100%)
    Color: Temperature=2732°K (366 mired), RGB≈[255, 166, 87]
  15. Dusche1: ON
    Brightness: 254 (100%)
    Color: Temperature=2732°K (366 mired), RGB≈[255, 166, 87]
  16. Links: OFF
    Brightness: 126 (49%)
    Color: XY=[0.4575, 0.4099], RGB≈[227, 172, 104]
  17. Rechts: OFF
    Brightness: 126 (49%)
    Color: XY=[0.4575, 0.4099], RGB≈[227, 172, 104]
  18. Steckdose: OFF
    /usr/local/lib/ruby/gems/2.4/gems/hue-lib-0.7.4/lib/hue/bulb.rb:92:in brightness_in_unit_interval': undefined method /' for nil:NilClass (NoMethodError)
    from /usr/local/lib/ruby/gems/2.4/gems/hue-lib-0.7.4/lib/hue/bulb.rb:96:in brightness_percent' from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/extensions/bulb.rb:11:in block in print_state'
    from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/utilities/indentation.rb:11:in indent' from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/extensions/bulb.rb:10:in print_state'
    from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/extensions/bridge.rb:48:in block in print_bulbs' from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/extensions/bridge.rb:47:in each'
    from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/extensions/bridge.rb:47:in print_bulbs' from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/cli/commands/lights.rb:16:in execute'
    from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/lib/hue/cli.rb:30:in run' from /usr/local/lib/ruby/gems/2.4/gems/hue-cli-0.1.4/bin/hue:5:in <top (required)>'
    from /usr/local/bin/hue24:23:in load' from /usr/local/bin/hue24:23:in '
@majick
Copy link

majick commented Jan 13, 2022

I fixed this in #12 but I think the maintainer is no longer active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants