Closed freaktechnik closed 6 years ago
@freaktechnik Would you mind separating the battery and the dimmer changes into separate PRs? I'm fine with the battery changes, but it would be better for @hobinjk to take a look at the dimmer changes and weigh in.
@freaktechnik Can you resolve the conflict, please? I added @hobinjk as a reviewer for when he's available to look.
The dimmer switch support is far from optimal, since the hue API is polled every second, so presses are easily missed.
One possible "solution" for that would be to add an event for "missed presses" based on the last changed state property that lets us check if we potentially missed some presses, though we'll only know which button was let go last.