-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[rotel] New channels tcbypass, balance, speakera and speakerb #12447
Conversation
Please sign off properly (just a text to add in each of your commit). I will start with a review of what you (wrongly?) changed in the existing code. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/unable-to-git-push-my-binding-extensions/134031/7 |
Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
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.
Review part 1 of 3
bundles/org.openhab.binding.rotel/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.rotel/src/main/resources/OH-INF/i18n/rotel.properties
Outdated
Show resolved
Hide resolved
...ing.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelConnector.java
Outdated
Show resolved
Hide resolved
...ab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/RotelBindingConstants.java
Outdated
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
package owner's requests implemented Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
@tonwi : I will continue my review this evening. |
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.
Review part 2 of 3
...nding.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelCommand.java
Outdated
Show resolved
Hide resolved
...nding.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelCommand.java
Outdated
Show resolved
Hide resolved
...nding.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelCommand.java
Outdated
Show resolved
Hide resolved
...nding.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelCommand.java
Show resolved
Hide resolved
...ing.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelConnector.java
Show resolved
Hide resolved
...ing.rotel/src/main/java/org/openhab/binding/rotel/internal/communication/RotelConnector.java
Show resolved
Hide resolved
bundles/org.openhab.binding.rotel/src/main/resources/OH-INF/thing/a14.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.rotel/src/main/resources/OH-INF/thing/a14.xml
Outdated
Show resolved
Hide resolved
I activated the "resove conversation" button: I don't know what that does. But i certainly don't want to end the conversation or delete it or.... |
I prefer you let me mark the conversation as resolved. This is easier for me to follow if the comments were considered. I do it after checking the changes done in the PR. |
CONSTRUCTOR: adjustments for TCBYPASS_..., BALANCE_... and SPEAKER_... MODEL: extension of Models A11, A12 THING: A11, A12 channel extension README: typo patched; serialPort value improved Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@tonwi : I just proposed changes (through a PR) to your branch. Please have a look. |
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.
I pushed my review comments as a PR to your repo.
Here are the remaining additional comments/questions.
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
@tonwi : with the changes I pushed to you, the code is now ready to add your new channels to other models including models supporting the "old" ASCII protocol. Once you merge my PR in your PR, I will propose to you a new small PR with channels added on other models. |
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This is now included in the PR I pushed to you. |
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This is also possible to handle speaker A and speaker B for the models RX-1050 and RX-1052. These models use the HEX protocol. |
I do not remember why but these 2 models (RX-1050 and RX-1052) are not yet supported by the binding. So if I do something, this will be definitively in a separate PR. |
Please give me advice how to "integrate your PR into mine"? Do I have to "git pull...." into my local branch? How should I do this? What I have to do? You must know: I do not have the slightest idea. My knowledge of "git" is very modest. Please give me advice! |
First go to your Git page: tonwi#1 |
I destroyed my local repository completely. |
You can create it again from your remote branch:
Can you please fix it ? |
And please discuss the last opened point ... so that we can quickly conclude this PR. |
TCBYPASS ON/OFF: update channels for BASS/TREBLE in both cases Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
…eset BASS/TREBLE to 0. Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Show resolved
Hide resolved
...hab.binding.rotel/src/main/java/org/openhab/binding/rotel/internal/handler/RotelHandler.java
Outdated
Show resolved
Hide resolved
Just to be clear, here is how I imagine the final method:
|
Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
it appears that it is working |
Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net>
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
Thank you @tonwi for contributing to this binding. I will merge your PR this evening. |
* A14: new channels: tcbypass, balance, speakera and speakerb * Specific balance set command for models A1x * Channels added on other models * In state TCBYPASS ON: 1) Ignore user adjustments on BASS/TREBLE. 2) Reset BASS/TREBLE to 0. Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net> Also-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
* A14: new channels: tcbypass, balance, speakera and speakerb * Specific balance set command for models A1x * Channels added on other models * In state TCBYPASS ON: 1) Ignore user adjustments on BASS/TREBLE. 2) Reset BASS/TREBLE to 0. Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net> Also-by: Laurent Garnier <lg.hc@free.fr>
* A14: new channels: tcbypass, balance, speakera and speakerb * Specific balance set command for models A1x * Channels added on other models * In state TCBYPASS ON: 1) Ignore user adjustments on BASS/TREBLE. 2) Reset BASS/TREBLE to 0. Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net> Also-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* A14: new channels: tcbypass, balance, speakera and speakerb * Specific balance set command for models A1x * Channels added on other models * In state TCBYPASS ON: 1) Ignore user adjustments on BASS/TREBLE. 2) Reset BASS/TREBLE to 0. Signed-off-by: Wilhelm Tonsern <wto.wit01@gmx.net> Also-by: Laurent Garnier <lg.hc@free.fr>
The list of channels for the Rotel devices A11, A12 and A14 has been extended by 4 channels:
If TCBypass is ON the device "bypasses" any bass or treble adjustments.
Instead, an optimal sound setting of the manufacturer is used
in the case TCBypass is OFF the user is enabled to set his own bass and treble adjustments.
The sound balance can be adjusted.
A14 provides 2 speaker groups: A / B
Channel/Item SPEAKER-A switches speaker group A ON or OFF respectively.
A14 provides 2 speaker groups: A / B
Channel/Item SPEAKER-B switches speaker group B ON or OFF respectively.
Signed-off-by: Wilhelm Tonsern wto.wit01@gmx.net