State machine to model lights in Thing handlers - #4995
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
Ping @lsiepel .. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
I don't quite understand the background for this. Why not just add whatever is missing into ColorUtils, or into HSBType, or ColorItem? |
|
PS I think the CI build error is due to something outside of this PR.. |
It's only the Java 25 build that fails, I'm pretty sure that it's unrelated. |
Apparently the Java 21 build also fails, .. , but, .. , I'm pretty sure that it's unrelated. |
It was only Java 25 when I wrote the comment, but yes, now it's both. I also have a PR that I rebased to an updated main that now fail on both, so yeah, pretty sure it's unrelated to the actual PR. |
|
I opened an issue #5314 to report it. |
|
After resynching the branch, the build did succeed. |
Yes, I just found that I think my failures are indeed related to my PR 😞 (at least now - not sure if that was always the case) |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@andrewfg if you can look at the copilot comments, we can try to move this forward. I think Holger is also looking into this. |
|
^ |
|
Yes, I have looked at this yesterday. It took way too much time - sorry for that - and I must admit that I somehow overlooked this PR (especially once it moved to page 2 of the open PRs). I like the approach, as it will simplify and hopefully unify the handling in the bindings. You can expect a merge soon. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
@holgerfriedrich I have addressed the copilot issues.. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@andrewfg sorry, Copilot is sometimes picky. Please decide if you want to change something and feel free to set to resolved if you think it can stay as it is. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Resolves #4994
This PR adds a comprehensive state machine class for modelling the state of lights within Thing handlers by introducing a new LightModel state machine for managing light properties like brightness, color, and color temperature.
Key changes include:
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch