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
[dolbycp] Initial Contribution #16216
Conversation
Signed-off-by: Roland Tapken <dev@cybso.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. Now i want this device too :-/
Left some comments to check, first pass, mainly looked at documentation I don't see a linked issues or community, so not sure if it was discussed; is cp750 the right name for this binding? On the website i also see that an CP850 exists, and maybe more will follow. If possible a more generic /brand / family / protocol level would be great so that in future it can support multiple devices, does that make sense?
...enhab.binding.cp750/src/main/java/org/openhab/binding/cp750/internal/CP750Configuration.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.cp750/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.cp750/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.cp750/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.cp750/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Thank you for your review. I will apply the changes, but I'm busy the next two days, so I will have to wait until Monday or Tuesday.
I saw no reason to discuss this because there wasn't a binding to speak with this device, and I needed one :-)
I have checked other sound processors from Dolby like CP650 or CP950. The CP650 does not seem to speak any TCP protocol at all, and the CP950 has a similar protocol, but only allows to set fader value and mute, no input channel. I also wanted to avoid the brand name "dolby". |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
…sion Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments, not looked at the actual code yet.
...enhab.binding.dolbycp/src/main/java/org/openhab/binding/dolbycp/internal/DolbyCPHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dolbycp/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Roland Tapken <dev@cybso.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some open comments from a previous review, reviewed all files except DolbyCPHandler.java. That needs some further checks i'll do in the coming days.
...ding.dolbycp/src/main/java/org/openhab/binding/dolbycp/internal/DolbyCPBindingConstants.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dolbycp/src/main/resources/OH-INF/i18n/cp750.properties
Outdated
Show resolved
Hide resolved
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
Thank you very much for your comments. Unless I have overlooked something, I have asked for feedback on the outstanding points. Especially with the textual Things definition I would need some support, because I have seen contradictory spellings in the README files of the existing bindings (see pending note on README.md in https://github.com/openhab/openhab-addons/pull/16216/files/888c0195f20902151c01c4526907534782be656f ). |
Strange: One aditional comment while looking at it: The dependency for de.cybso.cp750 needs to be listed in the notice file |
I have implemented the trivial changes. The suggestions to
I somehow have the feeling that we're talking at cross purposes. What do you mean by "strange" in this context? These are the pending questions I have referred to. |
Take your time, no need to rush. We might cross-talk there :-) I meant strange, as in I don't see your reply or change. For example, this one is left open: |
I have commented to this one:
But the comment shows a "pending" flag. How can I "commit" this comment? The button "Resolve Conversionen" marks the issue as resolved, doesn't it? Edit: Finally found it. Thanks to https://github.com/orgs/community/discussions/10369 |
Really think this os-version should be modelled as Thing property. It will then be shown in the Thing details page. |
…rified README.md Signed-off-by: Roland Tapken <dev@cybso.de>
…binding/dolbycp/internal/DolbyCPConfiguration.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
…binding/dolbycp/internal/DolbyCPConfiguration.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
…binding/dolbycp/internal/DolbyCPHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
…binding/dolbycp/internal/DolbyCPHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
Signed-off-by: Roland Tapken <dev@cybso.de>
For personal reasons, I unfortunately had to leave this a little longer than I wanted. I have now restructured the code and converted "osversion" into a property. As far as I can see, the last open question is the example configuration, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor last comments before merger
...ding.dolbycp/src/main/java/org/openhab/binding/dolbycp/internal/DolbyCPBindingConstants.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dolbycp/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
…thing/thing-types.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
…binding/dolbycp/internal/DolbyCPBindingConstants.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Roland Tapken <github@tmp.dau-sicher.de>
Thank you very much! Please wait a moment before merge. I want to do a full test in my production environment but I have to wait until tomorrow morning before I can do a test in our cinema :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I have done a full check in our theater using the new version and everything works fine. Thank you very much for your help, @lsiepel! |
* Added new binding dolbycp Signed-off-by: Roland Tapken <dev@cybso.de> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Added new binding cp750 for Dolby Digital Cinema Processor CP750
I have written a new binding to communicate with a CP750, a common sound processor used in cinemas which can be controlled using a TCP socket.
The binding is based on the java library https://github.com/Cybso/cp750-java/ that I wrote earlier.
The release file is available at https://github.com/Cybso/openhab-addons/releases/tag/release-0.1