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

hue: change default for disableHueEffects #5447

Merged
merged 2 commits into from
Feb 8, 2023
Merged

Conversation

sjorge
Copy link
Contributor

@sjorge sjorge commented Feb 6, 2023

As mentioned in Koenkk/zigbee2mqtt#16553, I grepped all our zigbeeModels and the first 25 were all on the list. I then randomly grabbed like another 10 and they were also listed.

I the noticed we had some light_onoff_brightness extends, these were not on the list from the PDF (makes sense) so these were not changed.

@sjorge
Copy link
Contributor Author

sjorge commented Feb 6, 2023

I briefly considered renaming and inverting disableHueEffects, but we also have disableEffects which we toggle. So I opted to keep both it as disableHueEffects with a default of false now.

I also removed all the options where we manual set disableHueEffects to false before.

lib/philips.js Outdated
const result = extendDontUse.light_onoff_brightness(options);
result['ota'] = ota.zigbeeOTA;
result['meta'] = {turnsOffAtBrightness1: true};
result['toZigbee'] = result['toZigbee'].concat([philipsTz.hue_power_on_behavior, philipsTz.hue_power_on_error]);
if (!options.disableHueEffects) {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this should be removed, e.g. 046677562229 is known to support the effects>

Copy link
Contributor Author

@sjorge sjorge Feb 7, 2023

Choose a reason for hiding this comment

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

So do we keep onoff_brightness with the old default or do we also flip it? The few random ones i checked were not in the pdf vs all of the colortemp and color ones which were?

Copy link
Owner

Choose a reason for hiding this comment

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

Lets keep onoff_brightness it with the old default (disableHueEffects true)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 will give this another pass tomorrow

@Koenkk Koenkk merged commit 9e42c56 into Koenkk:master Feb 8, 2023
@Koenkk
Copy link
Owner

Koenkk commented Feb 8, 2023

Thanks again! 🏅

@lundyfpv
Copy link

Thanks for doing this!

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