-
-
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
[sonyprojector] Add new channel to send infrared remote commands #15753
Conversation
@morph166955 : here is the PR you are waiting for. It works perfectly with my projector. I still have to add all IR codes to consider it as finished. |
Awesome! I'll pull it down and get my remote all programmed up to test it out in the next few days. THANK YOU! |
I love dependencies... 2023-10-14 15:02:27.475 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.sonyprojector-4.1.0-SNAPSHOT.jar |
Try something like: feature:install openhab-transport-serial |
Did a test today... POWER_* works. Buttons on my remote not listed: Tests were performed by simply sending strings to the channel/item via karaf console. |
Of course, some codes are specific to certain models. |
This is the VPL-VW285ES. It's about 5 years old. Was one of the first 4K projectors. Would it be better here to provide direct access to the hex and rely on a translation similar to how the global cache does for IR codes? |
Is it possible that the IR command is more INPUT1, INPUT2, etc rather than COMPOSITE, S-VIDEO, etc when stretched across the products? I don't have analog sources on mine. Buttons that would be very useful are PATTERN, ZOOM, and FOCUS for alignment. |
I will probably remove all codes that are useless because we already have other channels for these controls. For example, direct input selection is useless here. |
I had a similar issue with the AndroidTV binding. So many different vendors, each supported different keys on their bus. I ended up including a list at the bottom of the readme for the 300+ different possible codes. The biggest things for me would be the pattern and the adjustments for zoom, focus, and things along those lines. I really only use the remote to align/re-align the projector to the screen. Otherwise yes, it's mostly just power and input for me. Occasionally I need to get into the menu and navigate around to see what kind of signal it's getting from the receiver. |
a175863
to
4bce3d3
Compare
Here is a new version with more IR codes. @morph166955 : you should find all your IR commands ... except the PATTERN that is very strangely not documented ! |
4bce3d3
to
b3c0494
Compare
Awesome! So weird that PATTERN doesn't have a string. That's super annoying too, it's probably the single most important button on the remote for me in terms of getting the projector set/reset. I like that I can send the direct hex strings, I can try to pop through a few one day to see if I can dig it up and let you know. I would be intrigued to go dig out the commands from something like the globalcache IR database and see if they match in some way (which could help uncover those missing ones). In respect to the input reuse, can you categorize them as "ones with analog inputs" versus "ones with only digital inputs"? I would wonder if, when they went to ones with strictly HDMI inputs, they just started to reuse. I'll see if I can give this a test shot in the morning, I should have a little free time. Thank you! |
Sorry I ran out of time to test it. I'll be back at the projector this weekend. |
By the way, wait a little, I will change my code to improve it. |
Works for me. I may try to move through the IR codes to see if I can find pattern if I get some free time. Otherwise I'll hold on testing. |
b3c0494
to
6bb0b2c
Compare
Just compiled a jar from your most recent commit. Found PATTERN (sort of). It seems to activate when I run LENS_CONTROL, LENS_ZOOM, or LENS_FOCUS which is fine by me. I also noticed HDMI1 and HDMI2 are now working as expected. I can't see anything else going on with it of concern. I saw a few typos in the readme but that's about it. THANK YOU! |
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.
Just a few typographical things to update. Otherwise LGTM.
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorItem.java
Show resolved
Hide resolved
c6670df
to
17ee2b5
Compare
Still not yet ready for review even if it is now almost clean. I still need to add few missing IR codes and I have to test it fully again (not done with the last changes). |
Fix openhab#15409 Signed-off-by: Laurent Garnier <[email protected]>
17ee2b5
to
a36b878
Compare
PR is now ready for review. |
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.
Thank you! LGTM - only some very minor comments for consideration.
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Outdated
Show resolved
Hide resolved
...org/openhab/binding/sonyprojector/internal/communication/SonyProjectorCalibrationPreset.java
Show resolved
Hide resolved
...org/openhab/binding/sonyprojector/internal/communication/SonyProjectorCalibrationPreset.java
Outdated
Show resolved
Hide resolved
@jlaur : many thanks for your so quick review. |
Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Laurent Garnier <[email protected]>
@jlaur : all your comments are now handled. I also added missing translation keys for the new channel options. |
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!
…nhab#15753) Fix openhab#15409 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
…nhab#15753) Fix openhab#15409 Signed-off-by: Laurent Garnier <[email protected]>
Fix #15409
Signed-off-by: Laurent Garnier [email protected]