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

Update v6.py #23

Merged
merged 1 commit into from
Dec 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions limitlessled/group/commands/v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class CommandSetWhiteV6(CommandSetV6):
""" Command set for white led light connected to wifi bridge v6. """

SUPPORTED_LED_TYPES = [WHITE]
REMOTE_STYLE = 0x08
REMOTE_STYLE = 0x01

def __init__(self, group_number):
"""
Expand All @@ -210,37 +210,37 @@ def on(self):
Build command for turning the led on.
:return: The command.
"""
return self._build_command(0x04, 0x01)
return self._build_command(0x01, 0x07)

def off(self):
"""
Build command for turning the led off.
:return: The command.
"""
return self._build_command(0x04, 0x02)
return self._build_command(0x01, 0x08)

def night_light(self):
"""
Build command for turning the led into night light mode.
:return: The command.
"""
return self._build_command(0x04, 0x05)
return self._build_command(0x01, 0x06)

def brightness(self, brightness):
"""
Build command for setting the brightness of the led.
:param brightness: Value to set (0.0-1.0).
:return: The command.
"""
return self._build_command(0x03, self.convert_brightness(brightness))
return self._build_command(0x01, self.convert_brightness(brightness))

def temperature(self, temperature):
"""
Build command for setting the temperature of the led.
:param temperature: Value to set (0.0-1.0).
:return: The command.
"""
return self._build_command(0x05, self.convert_temperature(temperature))
return self._build_command(0x01, self.convert_temperature(temperature))


class CommandSetRgbwV6(CommandSetV6):
Expand Down