You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.
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 ?
The text was updated successfully, but these errors were encountered:
Hello
I can't use my osram RGB light if I don't do that :
The text was updated successfully, but these errors were encountered: