yetanotherhueapi icon indicating copy to clipboard operation
yetanotherhueapi copied to clipboard

Why such a restrictive State.Builder?

Open Kakifrucht opened this issue 2 years ago • 1 comments

I'm not sure what the intention behind using a step builder pattern for it is with restrictions on alert and effect mode sending. It is allowed to send a State to the bridge that contains for example both a brightness change and a short alert. After the short alert the light will correctly set to the brightness change that was set in the same API call.

In general I'm not sure why we would need the step builder pattern here at all.

Kakifrucht avatar Mar 23 '22 19:03 Kakifrucht

I'll ditch the step builder pattern with the Hue Bridge API v2. You might want to peek into the api-v2 branch. It's still very rudimentary, but you'll get the jist. 😃

ZeroOne3010 avatar Apr 19 '22 13:04 ZeroOne3010