Skip to content

lights/hue: use device class for on/off devices like the osram lightify plug#6817

Merged
pvizeli merged 2 commits into
home-assistant:devfrom
jannau:hue_fixes
Mar 27, 2017
Merged

lights/hue: use device class for on/off devices like the osram lightify plug#6817
pvizeli merged 2 commits into
home-assistant:devfrom
jannau:hue_fixes

Conversation

@jannau
Copy link
Copy Markdown
Contributor

@jannau jannau commented Mar 27, 2017

Fixes a typo in the SUPPORT_HUE_ON_OFF definition and adds support for the device class as reported for the Osram Lightify Plug

@mention-bot
Copy link
Copy Markdown

@jannau, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rhooper, @balloob and @fabaff to be potential reviewers.

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @jannau,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

PHUE_CONFIG_FILE = 'phue.conf'

SUPPORT_HUE_ON_OFF = (SUPPORT_FLASH | SUPPORT_TRANSITION | SUPPORT_FLASH)
SUPPORT_HUE_ON_OFF = (SUPPORT_FLASH | SUPPORT_TRANSITION)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SUPPORT_FLASH needs to be reintroduced somewhere in the chain here. Presumably at SUPPORT_HUE_DIMMABLE, but I'm not sure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm fixing only the nonsensical "SUPPORT_FLASH | SUPPORT_FLASH" for SUPPORT_HUE_ON_OFF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh wow, I missed that. Nevermind. :)

Copy link
Copy Markdown
Contributor Author

@jannau jannau Mar 27, 2017

Choose a reason for hiding this comment

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

Although for the lightify plug it could make sense to remove the SUPPORT_FLASH altogether. It uses a relais and is rather slow. I'm not sure for how many switch operations the relais is specified.
After looking at it now, I'm not sure if the SUPPORT_TRANSITION makes sense.

Copy link
Copy Markdown
Contributor

@emlove emlove left a comment

Choose a reason for hiding this comment

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

LGTM

@pvizeli pvizeli merged commit 5c80da6 into home-assistant:dev Mar 27, 2017
@jannau jannau deleted the hue_fixes branch March 28, 2017 08:03
@fabaff fabaff mentioned this pull request Apr 6, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants