Where can I find developer? I need a Binding

Reading documentation on not native language - did not bring success.
No examples. Only pieces of code.
For beginners it is not clear how codes should be in the end.
In internet I dont find pages with full examples for OH2.

Can you explain How to install the MiLight Binding?
Thing Configuration - where is i must put this code?

Your questions show me that you haven’t read the documentation for openHAB and therefore do not understand what it is about.

Before diving deeper into this, I would strongly suggest to read the docs, where you can find examples for

How to install a binding with PaperUI

How to define a milight thing in /conf/things/*.things

(or use PaperUI for thing creation)

1 Like

What several people propose:
Instead of writing a binding for yet another smarthome protocol (invented by yourself) for OpenHAB it would be better, if you adopt one of the many protocols already implemented.

Candidates are:

  • REST (JSON over HTTP, which means TCP instead of UDP)
  • MiLight (proprietary UDP protocol)
    There may be others based on UDP which I’m not aware of if you prefer UDP

REST is designed so you don’t have to learn and understand Java at all. You can stay with for example PHP and use JSON und TCP.

UDP has the advantage of having less protocol overhead, so it needs not as much compute power, code and language/ syntax learning.

1 Like

Where can I find developer?
Is there a separate section in the forum?

If you are looking for someone developing a binding to suite your needs, there is no special section in the forum.
You just have to wait until someone speaks up as a reaction to your post and be willing to develop “your” binding.
If nobody speaks up, then there might be nobody volunteering for this, as it is a to special need.

Hi,

There is already a binding here:

https://github.com/andrey-desman/openhab-hdl

Look under bundles/binding/org.openhab.binding.hdl

I had to compile and export the binding JAR by myself. Look up on the Wiki how to set up IDE.

You can declare dimmer as switch if on/off is all you want (only dimmer/relay is supported).

I got it to work, tested with 1.x.

For testing you can have a tcpdump running on UDP/6000, so you can see which commands are actually sent by h/w switches/panels.

The gateway address must be specified in configurations/openhab.cfg It can be exact gateway, address, broadcast address of the lan or generic broadcast address (not recommended, doesn’t work on Windows).
E.g.:

hdl:gateway=192.168.1.13
or
hdl:gateway=192.168.1.255
or
hdl:gateway=255.255.255.255

The items are declared using following syntax:

hdl=“subnet.address:channel”

Example:
Switch a21 {hdl=“1.2:1”}
Switch a22 {hdl=“1.2:2”}
Dimmer a34 {hdl=“1.3:4”}

First two items bind channels 1 and 2 of HDL relay whose address is 1.2
Third items refers to channel 4 of HDL dimmer whose address is 1.3.

Typical Openhab config:

hdl:gateway=192.168.1.140

This is from my item config:

Dimmer Office “Dimmer [%d %%]” {hdl=“1.103:6”}

Sitemap config:

Frame label="Test HDL_" {
	Slider item=Office	switchSupport
}
1 Like

:heart_eyes::heart_eyes::heart_eyes::+1::+1::+1::muscle::muscle::muscle:
But now we have OpenHab version 2 : (

You can stil try to run it with openHAB 2.x

I can’t install it.
Can come one tell me? How to install GitHub - andrey-desman/openhab-hdl: HDL binding for OpenHAB?

Please tell us how you tried to install it and post your binding and item config.

cd /usr/share/openhab2/addons
wget https://github.com/stigli/openhab2-addons/blob/master/addons/binding/org.openhab.binding.hdl/releases/org.openhab.binding.hdl-2.5.0-SNAPSHOT.jar
chown openhab:openhab org.openhab.binding.hdl-2.5.0-SNAPSHOT.jar
reboot

What is “binding and item config”?
It is just installed OH on RPI.
There is no HDL binding in PapperUI.

@Bagunda

As you can read in readme, there is NO configuration in PaperUI.

.

Discovery has not been added yet, so all Things and Items need to be defined in things and items files.

It seems he is trying a oH2 version of the Binding.
@Bagunda please try different download, e.g. via a browser.
Wget sometimes break the jars when downloading from github.

Your original question was regarding the oH1 version of the binding, which needs to be configured.
Please get familiar with openHABs concept, then you should now what binding or item config means.

@hmerk

Please see also this topic:

Just saw it.

By some miracle, I installed this bimding on another mashine. And I saw this:

This appeared after a successful installation.
But I can’t remember how I installed it.
That mashine broke down.
I reinstalled the OS

I try different download 4 thimes.
Via chrome on Windows 10.
And upload through Bitvise SSH Client through SFTP.
And nothing.

It’s strange.
First downloading - is work!
Next downloading have another size and don’t work.

I upload this file to my google cloud.

That was the problem.
Upload file to $OPENHAB_HOME/addons (/usr/share/openhab2/addons).
And OpenHab didn’t need to restart