Skip to content

Conversation

@soldag
Copy link
Collaborator

@soldag soldag commented Feb 8, 2017

As already discussed in #7, this adds support for wifi bridges v6 and RGBWW bulbs. While implementing I also faced some minor issues (especially with the transition logic), which I fixed in general for all bulb types.
I could only test with bridge v6 and RGBWW bulbs, so I cannot guarantee that it works for older bridges or other led types. Therefore, to ensure I didn't break anything, somebody else has to test this. There were also some guys which confirmed that this fork is working in #7 ;)

soldag and others added 30 commits December 23, 2016 00:37
Support for RGBWW saturation
… will no longer be blocked by receiving a response.
self._group.hue = stage.args[0]
elif stage.name == 'saturation':
self._group.saturation = stage.args[0]
elif stage.name == 'color':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of line 156-157.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cda16c2

return self._build_command(self._offset(0xC5),
select=True, select_command=self.on())

def color(self, color):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is missing the hue command as required by limitlessled/group/rgbw.py. This might be an easy fix for you since you're most familiar with the hue stuff.

I will also take a look on my side.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed in 7931fca.

@happyleavesaoc
Copy link
Owner

  File "/envs/hass/lib/python3.5/site-packages/limitlessled/bridge.py", line 182, in _consume
    self._send_raw(command.select_command)
  File "/envs/hass/lib/python3.5/site-packages/limitlessled/bridge.py", line 195, in _send_raw
    self._socket.send(bytearray(command))
TypeError: 'Command' object is not iterable

After trying to set brightness on a legacy white bulb.

Btw, the legacy RGBW works great now with the latest commits.

@soldag
Copy link
Collaborator Author

soldag commented Feb 10, 2017

Good to hear that the RGBW bulbs work now :)
I made a fix for the issue you mentioned.

@happyleavesaoc
Copy link
Owner

That change prevents the error, but the brightness and temperature don't work. I will do some debugging when I get a chance, hopefully tomorrow.

@soldag
Copy link
Collaborator Author

soldag commented Feb 11, 2017

I pushed a commit, which should fix this issue.

@happyleavesaoc
Copy link
Owner

Indeed it does. Awesome!

Merged.

@happyleavesaoc happyleavesaoc merged commit 6d4f1ef into happyleavesaoc:master Feb 12, 2017
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

Successfully merging this pull request may close these issues.

3 participants