[unifiedremote] new binding to send some basic commands to unified remote server

Hi openHAB community.

Some days ago I started to search for an easy way to have a basic remote control of my pc from openHAB. As I didn’t find anything I decided to write this simple binding that allows to discover the Unified Remote Server in the local network and creates the following channels:

channel type description
mouse-move String Mouse Move. Expect number JSON array ("[10,10]").
send-key String Use server key. Supported keys are: LEFT_CLICK, RIGHT_CLICK, LOCK, UNLOCK, SLEEP, SHUTDOWN, RESTART, LOGOFF, PLAY, PLAY, PAUSE, NEXT, PREVIOUS, STOP, VOLUME_MUTE, VOLUME_UP, VOLUME_DOWN, BRIGHTNESS_UP, BRIGHTNESS_DOWN, MONITOR_OFF, MONITOR_ON, ESCAPE, SPACE, BACK, LWIN, CONTROL, TAB, MENU, RETURN, UP, DOWN, LEFT, RIGHT

If someone wants to give it a try this is the pull request for the binding: https://github.com/openhab/openhab-addons/pull/8546 .

I hope it can be useful for someone apart from me, I’ve been using it since yesterday.

If someone review the implementation and want to give me his thoughts or make some changes I will be grateful because I’m still getting I touch with the bindings design.

Regards!

This is basically a binding to interface wit the REST API on a remote server?

Hi. Thanks for the reply. Yes, it allows to send commands to the server through its web interface api. My initial motivation was to have access to the navigation keys on the HABPanel to open a game once I’ve turned on my gaming pc (has auto logon enabled) using the Wake On Lan binding.

I wondered whether a more general naming might be appropriate.

It could potentially be used with any external API is the binding includes OAuth authentication, for instance.

Disclaimer: I am NOT a Java programmer.

No, this binding gives some basic interaction just with the api of the unified remote server program (https://www.unifiedremote.com), it couldn’t be used to interact with other services. Sorry for the confusion.

1 Like

OK I did not know about that program.

Are those details in your binding documentation? I must have missed that.

The link in the binding readme was wrong sorry, now it’s fixed. Thank you.

1 Like