-
-
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
[epsonprojector] Add SDDP discovery #16802
Conversation
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
@lolodomo once this is finished, it should be easy to copy-paste into sonyprojector. |
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Sony is also using its own protocol named SDAP for discovery. But SDDP is also supported. I need host, port and model to create a thing. I see these fields are provided by object For the model, I cannot be sure that they will provide the exact same string I am using. One option would be to let the user define the model. I can also try to set it in case I can identify an approximative matching. Unfortunately, I will not be able to test that because my model has no Ethernet connection. |
@mlobstein - do you know if there are any projectors supporting only AMX, but not SDDP? I'm wondering if it would still make sense to keep AMX support in case some older projectors doesn't support other discovery methods? |
...rg/openhab/binding/epsonprojector/internal/discovery/EpsonProjectorDiscoveryParticipant.java
Show resolved
Hide resolved
In SddpDevice we extract the port from one of the headers being the part after the colon in a the header which contains ipAddress:port. Normally this should indeed be an integer. However since the respective header comes from the remote device, it could possibly contain a non numeric value. And rather than throw a number conversion exception in core, we pass that as a string to the binding developer so they can decide themselves. Often the port returned is 1902 which is simply the port of the SDDP multicast group, so often not much use when sending unicast commands to a device. We basically provide it "just in case".. |
...rg/openhab/binding/epsonprojector/internal/discovery/EpsonProjectorDiscoveryParticipant.java
Outdated
Show resolved
Hide resolved
My ancient-came-out-in-2009 projector that I use for testing supports only AMX. The newer ones seem to support both. I was worried about getting duplicate discovery results for those in the supports both column and that was my deciding factor for removing AMX. |
For Sony and the |
For Sony, yes I will use default port 53484 and AUTO as model. |
It's possible to have overlapping discovery (i.e. multiple methods) as long as they are kept consistent (see #14919). In particular they need the same representation property. |
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Ok, I put AMX discovery back as it was. |
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Just for the avoidance of doubt .. are you making sure to use lower case in both representation properties? |
That is a good point.. In the AMX packet it is uppercase. So I will put toUpperCase() on the SDDP side so that the representation property of both match.. |
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
...rg/openhab/binding/epsonprojector/internal/discovery/EpsonProjectorDiscoveryParticipant.java
Show resolved
Hide resolved
Yes, my only concern was if discovery support for older devices would be dropped, but since the AMX discovery is left intact, this is fully addressed. |
Yes, I think so. |
Can be merged when #16802 (comment) is handled. |
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
* Replace AMX discovery with SDDP Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This reverts commit d3a884d.
* Replace AMX discovery with SDDP Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* Replace AMX discovery with SDDP Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Replace AMX discovery with SDDP Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This PR adds SDDP discovery for epson projectors using the core SDDP discovery service.
Depends on openhab/openhab-core#4237