Skip to content

Conversation

golddragon007
Copy link

Partially covers #714 .
It will send only night mode on long OFF button press.
It will send on the update channel "long_press" with true/false when it's possible to do it (ON, OFF, S-, M, S+, W).

} else if (arg >= 9 && arg <= 17) {
result[GroupStateFieldNames::STATE] = "OFF";
bulbId.groupId = arg-9;
result[GroupStateFieldNames::LONG_PRESS] = long_press;
if (long_press) {
result[GroupStateFieldNames::STATE] = "ON";
Copy link

@Jojo-1000 Jojo-1000 Nov 15, 2024

Choose a reason for hiding this comment

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

This changes the behavior of the packet sniffer. Now when I keep pressing the off button, it will show one "OFF" state and then "ON" with night_mode. Before it was continuous "OFF" with night mode. I am not sure which way is better, but to me it is confusing that I am pressing off but the command shows as on.

@golddragon007
Copy link
Author

Uhh, I've completly forget about this... was this fixed meanwhile?

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.

2 participants