Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Hue osram led stripe move_hue_rgb issue ? #18

Closed
ChoOo7 opened this issue Jul 30, 2018 · 1 comment
Closed

Hue osram led stripe move_hue_rgb issue ? #18

ChoOo7 opened this issue Jul 30, 2018 · 1 comment

Comments

@ChoOo7
Copy link

ChoOo7 commented Jul 30, 2018

Hello

I can't use my osram RGB light if I don't do that :


    @register_actions(ACTIONS_HUE)
    def actions_move_hue_rgb(self, addr, endpoint, rgb, transition=0):
        '''
        move to hue (r,g,b) example : (1.0, 1.0, 1.0)
        transition in second
        '''
        hue, saturation, level = colorsys.rgb_to_hsv(*rgb)
        hue = int(hue*360)
        saturation = int(saturation*100)


=====>
        #custom : I comment the line
        #level = int(level*254)
=====>

        self.action_move_level_onoff(addr, endpoint, ON, level, transition)
        self.actions_move_hue_saturation(addr, endpoint, hue, saturation, transition)



Example of call : 

$payload = '{"function": "actions_move_hue_hex", "args": ["ee65", 3, "#0000FF"]}';

Am I doing something wrong or there is a "bug" in the libs ?


@doudz
Copy link
Owner

doudz commented Jul 30, 2018

Hello,
This is a bug, thanks for found it.
Fix in release 0.18.5

doudz added a commit that referenced this issue Jul 30, 2018
@doudz doudz closed this as completed Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants