Skip to content
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

[unifiedremote] Initial contribution #8494

Closed
wants to merge 5,312 commits into from
Closed

[unifiedremote] Initial contribution #8494

wants to merge 5,312 commits into from

Conversation

GiviMAD
Copy link
Member

@GiviMAD GiviMAD commented Sep 19, 2020

Unified Remote Binding.

This binding allow send some command to the unified remote server through its web client interface.
It create some channels to control the mouse, some navigation keys, some media keys, and not much more.

Good day. This is my first contribution to this amazing product. Some days ago I started search for a way to control my computer with openHAB and I decided to try to write this binding that seems to finally be working.
Please let me know if there are any suggestions to improve the binding as I'm still getting in touch with this technology. I will also open a thread in the Add-ons forum pointing to this pr, in case someone wants to try it or have an idea for a better implementation. Thanks in advance for your time.

J-N-K and others added 30 commits July 12, 2020 23:40
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* add support window covering without inversion
* fix typo in README and apply spotless
* address feedback

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Related to openhab/openhab-core#1265

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Enhancing action method call for Issue #8116

Signed-off-by: clinique <gael@lhopital.org>
* [hue] Add support for hue scene activation

Closes #6043

This is the continuation of the PR #7540

95% of credits go to leluna

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Also-by: leluna <hengrui.jiang@googlemail.com>
* add light sensor support
* update readme

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
Signed-off-by: Mark Hilbush <mark@hilbush.com>
corrected the Product name in the docu, perhaps we should also rename the page name itself...
Signed-off-by: Krzysztof Goworek <krzysztof.goworek@gmail.com>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* [alarmdecoder] Doc update
* [alarmdecoder] Workaround for thing actions bug
* [alarmdecoder] Fix exception message

Signed-off-by: Bob Adair <bob.github@att.net>
* add air quality sensor
* add example to README

Signed-off-by: Eugen Freiter <freiter@gmx.de>
* fix group handling

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Signed-off-by: Johannes DerOetzi Ott <info@johannes-ott.net>t>
Related to #8027

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to #8027

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to #8116

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
signed-off-by: Marcel Idler <poeppe87@hotmail.com>
Related to #8116

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to #8116

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* [MQTT] Workaround for thing actions bug

Related to #8116

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
group name gCooller -> gCooler
No sign off accepted under small documentation change exemption.
* fixed: Work around Amazon Security changes and make proxy working again (2)

Signed-off-by: Tom Blum (Trinitus01) <trinitus01@googlemail.com>
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Related to #8116

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Closes #8020 
Closes #8111 

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
cweitkamp and others added 14 commits September 15, 2020 15:34
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This deprecated method constructor was removed in OH3.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Markus Michels <markus7017@gmail.com>
* Adding retries for status pool and api request
* README updated
* Implements #8330: Swing Up/Down values 0-11
* Missing text resources added for V-SwingUpDown 7-11

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
* Don't set status to OFFLINE when already OFFLINE
* Avoid endless loop on command

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* [miio] add automatic tokens to miio MDNSDiscoveryParticipant

* get tokens from cloud if possible and add them during discovery.
(similar to the other discovery method)

* [miio] Update from feedback on cloudconnector in discovery

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
#8477)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
…7526)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* [miio] add automatic tokens to miio MDNSDiscoveryParticipant

* get tokens from cloud if possible and add them during discovery.
(similar to the other discovery method)
* [miio] Update from feedback on cloudconnector in discovery

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@GiviMAD GiviMAD requested a review from a team as a code owner September 19, 2020 16:34
@TravisBuddy
Copy link

TravisBuddy commented Sep 19, 2020

Travis tests have failed

Hey @GiviMAD,
please read the following log in order to understand the failure reason. There might also be some helpful tips along the way.
It will be awesome if you fix what is wrong and commit the changes.

@fwolter fwolter added the new binding If someone has started to work on a binding. For a new binding PR. label Sep 19, 2020
Signed-off-by: Miguel <miguelwork92@gmail.com>
@Hilbrand
Copy link
Member

Thank you for adding this binding. I have a first question. Does it only support sending commands to the remote or can you also read the status. For example if it's playing, what the volume is, etc? That does have an impact on the channel design in the binding. That's why I ask.

@GiviMAD
Copy link
Member Author

GiviMAD commented Sep 20, 2020

Hi Hilbrand. Thanks for your reply. No, it doesn't support read the status. The channels I mapped are unidirectional to the server as it doesn't provide any state information in the responses.

Signed-off-by: Miguel <miguelwork92@gmail.com>
Signed-off-by: Miguel <miguelwork92@gmail.com>
@Hilbrand
Copy link
Member

If you only can send commands you should model the channel with command options. You could simply reduce this to 1 channel with all the options (maybe with the exception of the mouse position as it accepts a dynamic value). See this documentation on how such a channel would look like in xml: https://www.openhab.org/docs/developer/bindings/thing-xml.html#command-description

@kaikreuzer
Copy link
Member

Not sure why Github has closed this PR (it wasn't me in person...), but please see #8512 on how to proceed now.

FTR, the automatic code migration has created this code, which should give you an easy start for a new PR against main. Thanks!

@GiviMAD
Copy link
Member Author

GiviMAD commented Sep 21, 2020

Ok, I will do. I also will reduce the number of channels of the binding as suggested by Hilbrand. Thanks for your help guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new binding If someone has started to work on a binding. For a new binding PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet