-
-
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
[denonmarantz] Add HTTP protocol support for newer receivers #16748
[denonmarantz] Add HTTP protocol support for newer receivers #16748
Conversation
78661b1
to
e7706c0
Compare
032e3e2
to
b7aea90
Compare
Not strictly necessary as either can go first, but I'd prefer to wait for #16757 (which is ready for review now) and rebase towards that. |
53c6c0f
to
53cf4c7
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
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
@jlaur : is it still work in progress or ready for a merge ? |
Still work in progress, I'm awaiting some test results in the community thread in order to clarifiy if there is this direct relation:
If this is confirmed, I think the current implementation is acceptable, i.e. deriving the protocol from the port number, which should be fully backwards compatible. If not, I will need to introduce a new configuration parameter for setting the protocol revision, and the auto-configuration logic will also need some tweaking. |
53cf4c7
to
2419356
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
2c02584
to
ec5bfed
Compare
Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
ec5bfed
to
546700e
Compare
...java/org/openhab/binding/denonmarantz/internal/connector/http/DenonMarantzHttpConnector.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/denonmarantz/internal/connector/http/DenonMarantzHttpConnector.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
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
…#16748) * Add HTTP protocol support for newer receivers Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
…#16748) * Add HTTP protocol support for newer receivers Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Paul Smedley <paul@smedley.id.au>
…#16748) * Add HTTP protocol support for newer receivers Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
…#16748) * Add HTTP protocol support for newer receivers Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
…#16748) * Add HTTP protocol support for newer receivers Resolves openhab#16747 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
The API call for fetching main zone is now auto-detected. Newer receivers will return HTTP status 403 for the legacy API calls, in which case an alternative API call is now used.
Notes:
AppCommand.xml
GetSurroundModeStatus - e.g. "DOLBY AUDIO-DSUR" vs. "Dolby Audio - Dolby Surround". I don't know whatformMainZone_MainZoneXmlStatus.xml
returns for older models.formMainZone_MainZoneXml.xml
is missing. This is used to update channelgeneral#power
. It seems the logic (for my receiver) is that if any zones are on, this is on, otherwise off. The same logic could be achived from aGroup:Switch:OR(ON,OFF)
item, but since this channel is updated directly from the receiver, we should not try to replicate that logic in the binding. In the case of HTTP protocol for newer receivers, this value is simply missing.Resolves #16747