[New Binding] HDL Automation

@stigla

Thanks for your effort.

I read the readme. Unfortunately I could not find the bridge (LAN Gateway) on manufacturers homepage. Which model exactly do you mean?

Hi.

Thank you.

It is what you use to connect to the HDL system from a computer. Need to have to be able to program the system.

HDL-MBUS01IP
Will add as a comment in Readme

Its this from the web page:
https://www.hdlautomation.com/goods.php?id=216

1 Like

How to install it?

You copy the jar file I have linked into the addons folder.

It doesn’t installing. I try rebooting openhab service and rebooting mashine.
Raspberry pi 3.

I have never tried it on an Raspberry my self, but have you seen this topic:

They talk about you need to also update the \openhab2-conf\services\addons.cfg file to get it installed.

It doesn’t installing too

@Bagunda

What is telling the karaf console?

bundle:list
openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State    │ Lvl │ Version                │ Name
────┼──────────┼─────┼────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 20 │ Active   │  80 │ 5.3.1.201602281253     │ OSGi JAX-RS Connector
 21 │ Active   │  80 │ 2.7.0.v20170129-0911   │ Gson: Google Json Library for Java
 22 │ Active   │  80 │ 18.0.0                 │ Guava: Google Core Libraries for Java
 23 │ Active   │  80 │ 3.0.0.v201312141243    │ Google Guice (No AOP)
 24 │ Active   │  80 │ 3.18.1.GA              │ Javassist
 26 │ Active   │  80 │ 3.5.5                  │ JmDNS
 28 │ Active   │  80 │ 1.0.0                  │ Units of Measurement API
 30 │ Active   │  80 │ 1.1.0.Final            │ Bean Validation API
 31 │ Active   │  80 │ 2.0.1                  │ javax.ws.rs-api
 32 │ Active   │  80 │ 3.2.0.v201101311130    │ ANTLR Runtime
 35 │ Active   │  80 │ 3.2.1                  │ Commons Collections
 36 │ Active   │  80 │ 1.1                    │ Commons Exec
 37 │ Active   │  80 │ 2.2.0                  │ Commons IO
 38 │ Active   │  80 │ 2.6                    │ Commons Lang
 47 │ Active   │  80 │ 4.2.1                  │ Apache Karaf :: OSGi Services :: Event
 63 │ Active   │  80 │ 4.6.0                  │ Apache XBean OSGI Bundle Utilities
 64 │ Active   │  80 │ 4.6.0                  │ Apache XBean :: Classpath Resource Finder
 65 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF Common
 66 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF Ecore
 67 │ Active   │  80 │ 2.11.0.v20160420-0247  │ EMF Change Model
 68 │ Active   │  80 │ 2.12.0.v20160420-0247  │ EMF XML/XMI Persistence
 69 │ Active   │  80 │ 3.8.0.v20160509-1230   │ Common Eclipse Runtime
 70 │ Active   │  80 │ 3.6.100.v20160223-2218 │ Extension Registry Support
 80 │ Active   │  80 │ 9.4.11.v20180605       │ Jetty :: Proxy
 94 │ Active   │  80 │ 0.4.1.v20180515-1321   │ org.eclipse.lsp4j
 95 │ Active   │  80 │ 0.4.1.v20180515-1321   │ org.eclipse.lsp4j.jsonrpc
 96 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome OAuth2Client
 97 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Config Core
 98 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Configuration Discovery
 99 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Configuration mDNS Discovery
100 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Config Dispatcher
101 │ Active   │  75 │ 0.10.0.oh240           │ Eclipse SmartHome Config XML
102 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core
103 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Audio
104 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Binding XML
105 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core ID
106 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Persistence
107 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Scheduler Service
108 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Semantics
109 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Thing
110 │ Active   │  75 │ 0.10.0.oh240           │ Eclipse SmartHome Core Thing XML
111 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Transformation Service
112 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core Voice
113 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Console
114 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Console for OSGi runtime Karaf
115 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome HTTP Interface Bundle
116 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome JavaSound I/O, Fragments: 183
117 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Monitor
118 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Net I/O Bundle
119 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome REST Interface Bundle
120 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Core REST API
121 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome REST mDNS Announcer
122 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome REST Interface JAX-RS optimization Bundle
123 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Sitemap REST API
124 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome SSE REST API
125 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Voice REST API
126 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
127 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Web Audio Support
128 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Model Core
129 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Item Model
130 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Item Model IDE
131 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Item Model Runtime
132 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Language Server
133 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Persistence Model
134 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Persistence Model IDE
135 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Persistence Runtime
136 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Rule Model
137 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Rule Model IDE
138 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Rule Runtime
139 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Script
140 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Script Model IDE
141 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Script Runtime
142 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Sitemap Model
143 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Sitemap Model IDE
144 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Sitemap Runtime
145 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Thing Model
146 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Thing Model IDE
147 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Thing Model Runtime
148 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Json Storage Service
149 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome UI
150 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome UI Icons
151 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Classic IconSet
152 │ Active   │  80 │ 2.14.0.v20180522-1629  │ Xtend Runtime Library
153 │ Active   │  80 │ 2.14.0.v20180522-1629  │ Xtend Macro Interfaces
154 │ Active   │  80 │ 2.14.0.v20180522-1821  │ Xtext
155 │ Active   │  80 │ 2.14.0.v20180522-1833  │ Xtext Common Types
156 │ Active   │  80 │ 2.14.0.v20180522-1821  │ Xtext IDE Core
157 │ Active   │  80 │ 2.14.0.v20180522-1821  │ Xtext Utility
158 │ Active   │  80 │ 2.14.0.v20180522-1833  │ Xbase Model
159 │ Active   │  80 │ 2.14.0.v20180522-1833  │ Xbase Generic IDE Services
160 │ Active   │  80 │ 2.14.0.v20180522-1629  │ Xbase Runtime Library
175 │ Active   │  80 │ 1.9.6                  │ MIME streaming extension
177 │ Active   │  80 │ 6.2.0                  │ org.objectweb.asm
178 │ Active   │  80 │ 6.2.0                  │ org.objectweb.asm.commons
179 │ Active   │  80 │ 6.2.0                  │ org.objectweb.asm.tree
180 │ Active   │  90 │ 2.4.0                  │ openHAB Core
181 │ Active   │  80 │ 2.4.0                  │ openHAB Karaf Integration
183 │ Resolved │  80 │ 2.4.0                  │ openHAB Sound Support, Hosts: 116
184 │ Active   │  80 │ 2.4.0                  │ openHAB Dashboard UI
189 │ Active   │  80 │ 1.0.2                  │ Units of Measurement Common Library
190 │ Active   │  80 │ 1.0.8                  │ Units of Measurement Implementation for Java SE
191 │ Active   │  80 │ 3.3.0                  │ Commons Net
192 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Basic UI, Fragments: 194
193 │ Active   │  80 │ 0.10.0.oh240           │ Eclipse SmartHome Paper UI, Fragments: 197
194 │ Resolved │  75 │ 2.4.0                  │ openHAB Basic UI Fragment, Hosts: 192
195 │ Active   │  80 │ 2.4.0                  │ HABPanel User Interface
196 │ Active   │  80 │ 2.4.0                  │ HomeBuilder User Interface
197 │ Resolved │  75 │ 2.4.0                  │ openHAB Paper UI Theme Fragment, Hosts: 193
198 │ Active   │  80 │ 1.6.0                  │ Commons Codec
199 │ Active   │  80 │ 4.2.3                  │ Apache HttpClient OSGi bundle
200 │ Active   │  80 │ 4.2.3                  │ Apache HttpCore OSGi bundle
201 │ Active   │  80 │ 3.1.0.7                │ Apache ServiceMix :: Bundles :: commons-httpclient
202 │ Active   │  80 │ 1.13.0                 │ openHAB MQTT Binding
203 │ Active   │  80 │ 2.4.0                  │ openHAB 1.x Compatibility Layer
204 │ Active   │  80 │ 1.13.0                 │ openHAB MQTT Transport Bundle
205 │ Active   │  80 │ 2.1.0                  │ json-path
206 │ Active   │  80 │ 2.2                    │ json-smart
207 │ Active   │  75 │ 0.10.0.oh240           │ Eclipse SmartHome JSonPath Transformation Service
208 │ Active   │  75 │ 0.10.0.oh240           │ Eclipse SmartHome Map Transformation Service

@Bagunda

Ok. It’s not installed. Be sure to place the correct downloaded .jar file into addons folder.

https://github.com/stigli/openhab2-addons/raw/master/addons/binding/org.openhab.binding.hdl/releases/org.openhab.binding.hdl-2.5.0-SNAPSHOT.jar

Size 172,8 KB.

Now I can switch from OH to HDL. But OH does not get any feedback of relay: if I switch relay from HDL, I do not see changes in OH interface.

What kind of relay are you using?
I am using MR1216_233 in my config and working OK.

Can you see the message that is on the HDL bus when you are switching?

I have also Updated for 2.5.3 with new build, so I see if I get it uploaded this weekend.

I have MR0416. But I have MSP08M and have not response data from it too.

I have some dependencies in code for item types, I will look into adding this relay’s in code.

I updated the bindings with those 2, I also changed some things UID, you can see in the readme, but since I also added MSP08M as a valied HDL item, I changed the things UID to MS08. I do not have those to items in my setup so have not tested it with them.

The same things(. It is seems, that feedback from HDL-bus does not get in OH.

Hmm. I might be that I am still not supporting that source device type.
There should be a in logger a debug message saying:
“In HDLPacket Type: {XXX} but unhandled device: {XXX} in Device.” Then I know what device type it is in the HDL bus packet and I can add that also to the binding.

There are no errors:

2020-04-26 14:29:14.514 [hingStatusInfoChangedEvent] - 'hdl:bridge:Setup' changed from UNINITIALIZED to INITIALIZING
2020-04-26 14:29:14.536 [hingStatusInfoChangedEvent] - 'hdl:bridge:Setup' changed from INITIALIZING to ONLINE
2020-04-26 14:29:14.589 [hingStatusInfoChangedEvent] - 'hdl:MR0416:Setup:1034' changed from UNINITIALIZED to INITIALIZING
2020-04-26 14:29:14.621 [hingStatusInfoChangedEvent] - 'hdl:MR0416:Setup:1034' changed from INITIALIZING to ONLINE
2020-04-26 14:29:27.344 [.ItemChannelLinkAddedEvent] - Link 'Test5-hdl:MR0416:Setup:1034:RelayCh1' has been added.
2020-04-26 14:29:39.328 [ome.event.ItemCommandEvent] - Item 'Test4' received command ON
2020-04-26 14:29:39.360 [nt.ItemStatePredictedEvent] - Test4 predicted to become ON
2020-04-26 14:29:39.378 [vent.ItemStateChangedEvent] - Test4 changed from NULL to ON
2020-04-26 14:29:41.347 [ome.event.ItemCommandEvent] - Item 'Test4' received command OFF
2020-04-26 14:29:41.355 [nt.ItemStatePredictedEvent] - Test4 predicted to become OFF
2020-04-26 14:29:41.363 [vent.ItemStateChangedEvent] - Test4 changed from ON to OFF
2020-04-26 14:29:42.909 [ome.event.ItemCommandEvent] - Item 'Test4' received command ON
2020-04-26 14:29:42.916 [nt.ItemStatePredictedEvent] - Test4 predicted to become ON
2020-04-26 14:29:42.922 [vent.ItemStateChangedEvent] - Test4 changed from OFF to ON
2020-04-26 14:29:45.419 [ome.event.ItemCommandEvent] - Item 'Test5' received command ON
2020-04-26 14:29:45.428 [nt.ItemStatePredictedEvent] - Test5 predicted to become ON
2020-04-26 14:29:45.439 [vent.ItemStateChangedEvent] - Test5 changed from NULL to ON
2020-04-26 14:29:46.770 [ome.event.ItemCommandEvent] - Item 'Test5' received command OFF
2020-04-26 14:29:46.777 [nt.ItemStatePredictedEvent] - Test5 predicted to become OFF
2020-04-26 14:29:46.781 [vent.ItemStateChangedEvent] - Test5 changed from ON to OFF
2020-04-26 14:29:48.377 [ome.event.ItemCommandEvent] - Item 'Test4' received command OFF
2020-04-26 14:29:48.385 [nt.ItemStatePredictedEvent] - Test4 predicted to become OFF
2020-04-26 14:29:48.391 [vent.ItemStateChangedEvent] - Test4 changed from ON to OFF
Things:

Bridge hdl:bridge:Setup [Ip="192.168.2.114", Port=6000]
{
	Thing MR0416 1034 [Subnet=10, DeviceID=2]
}

Items

Switch  Test4        "Test4" {channel="hdl:MR0416:Setup:1034:RelayCh1"}
Switch  Test5        "Test5"  {channel="hdl:MR0416:Setup:1034:RelayCh1"}

Sorry I had forgot to update some of the return code for the new Thing. So download the latest jar again.

Also the 1034 should be 10002 (10 (subnet) 002 (deciveID)) comes the same twice I know
so
Thing MR0416 1034 [Subnet=10, DeviceID=2]

should be
Thing MR0416 10002 [Subnet=10, DeviceID=2]

1 Like

So download the latest jar again.

No workable links to download new binding.