Problem with HM-MOD-EM-8 in OH2

Hello everybody
I use a Raspberrymatic (Pi 3B with Openhabian 2.5.1-2) the most things and items work fine.

I have a problem with the HM-MOD-EM-8 module. I would like to use this as a door or window contact. It works just fine in the Homematic WebUi. In Openhab 2 I can find and create the module as a thing, but the integration as items fails. Create new Item seems to work, but only partially. I find the item again, but it does not appear in the Control area. I can also integrate it into Habpanel, but without function, no matter what type of label I choose, I get a maximum of “NULL” as an answer.
Does anyone have any idea what it could be?

Thanks in advance.

Hardy

Are there any error messages in openhab.log?

Hallo MHerbst

thank you for your prompt reply.
I just looked again. I cannot find any entries in the log viewer that relate to the 8-channel transmitter.
I use this on a garage door with a simple microswitch to record the status of the door. In the log viewer I see the entries from the 4-channel receiver HM-LC-Sw4-Ba-PCB, but not from the transmitter. In the Tinymatic app or the Homematic I immediately see the response from the transmitter that the door is open or closed.
The only Error i will find in the logviewer is this one:
2020-02-13 10:21:48.936 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’ --> this Error will shown every minute.
And also a Warning like this:
2020-02-13 09:39:18.783 [WARN ] [ofiles.JSonPathTransformationProfile] - Please specify a function and a source format for this Profile in the ‘function’ and ‘sourceFormat’ parameters. Returning the original state now. --> this Warning was shown in the last days, at several times, but not today.

I re-integrated the transmitter into Openhabian several times.
Every time I want to create items under Things in the transmitter, I press the blue circle and the popup appears -> Link channel
Please select a profile:
Select
But right there at “Select” I can’t choose a profile. The field remains empty.
Otherwise I know that something like “default” or “JSON” is there, I think.

I have no idea right now. Hope you can help.

Hi Hardy,

to me, it looks like a general problem with your openHAB installation. Which version are you running?

I remember this problem in the versions before 2.5.1 but with 2.5.1 is was solved.

2020-02-13 09:39:18.783 [WARN ] [ofiles.JSonPathTransformationProfile] - Please specify a function and a source format for this Profile in the ‘function’ and ‘sourceFormat’ parameters. Returning the original state now. -->

Haven’t seen this error before. But I am not using any profiles.

I re-integrated the transmitter into Openhabian several times.
Every time I want to create items under Things in the transmitter, I press the blue circle and the popup appears -> Link channel

Have you tried to create the item without selecting a profile?

You could also try to create the item in a text file and see whether this works.

Hello Martin,
sorry for the late response, but this are stormy days.
Okay and now i will use the Googletranslator…please stop laughing :wink:

so, my version of openhab is 2.5.1-2

I’ve been looking for the Docs bug. I tried using the Paper UI to install the REST Documentation in the user interfaces. The error is still there.

I have also tried several times to create the module by entering it directly in the .items file. Unfortunately with the same result.

I also ignored the lack of choice of the profile in the Paper UI when clicking on the blue circles.
However, I found that integrating the items in the Maintanence (Low Battery and signal strenght) area of ​​this module works and at least as a test the item signal strenght is also displayed correctly in the Control area. It just doesn’t seem to work in the area of ​​shutter contacts.

I found the items Low Battery and Signal Strenght in the file org.eclipse.smarthome.core.items.Item.json and also the entry of the shutter item …

Hi Hardy,

the translation is fine (BTW: deepl gives even better results than Google Translator).

Which Homematic device causes the problem? Maybe I can find some information in the documentation.

In addition, please enablel the TRACE log, try to add the device again and post the openhab.log. Maybe the log can give us a hint what’s going wrong here.

Yeah okay, now I have to figure out how to set up Tracelog in the Karaf console and then we’ll see. Unfortunately I have to work today and tomorrow and will hardly find the time. But if it is something other than the 8 channel transmitter module that is causing the error, that would be very interesting, because all other modules work…

I guess I’ll need help setting up the log after all. I was able to log on to the KARAF console, but the command log:set TRACE org.openhab.binding.homematic, failed and returned the message -bash: log:set: command not found.

How did you open the console? The message looks like you were in the openHabian shell and not in the Karaf console. In the Karaf console you will see openhab> as prompt.

If this message was really issued by the Karaf console then I think that your openHAB installation is definitely not OK. Does the command bundle:list work? It should print a list of all installed bundles. It it works, please post the output. Maybe some important bundles are missing.

Hello Martin

now i found the Karaf Konsole…i think…at the Prompt of openhab> bundle:list will return the following:

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
ID │ State │ Lvl │ Version │ Name
────┼────────┼─────┼─────────────────────────┼─────────────────────────────────
19 │ Active │ 80 │ 5.3.1.201602281253 │ OSGi JAX-RS Connector
20 │ Active │ 80 │ 2.8.2.v20180104-1110 │ Gson: Google Json Library for J
21 │ Active │ 80 │ 18.0.0 │ Guava: Google Core Libraries fo
22 │ Active │ 80 │ 27.1.0.jre │ Guava: Google Core Libraries fo
23 │ Active │ 80 │ 1.0.1 │ Guava InternalFutureFailureAcce
24 │ Active │ 80 │ 3.0.0.v201312141243 │ Google Guice (No AOP)
25 │ Active │ 80 │ 4.8.35.v20190528-1517 │ ClassGraph
29 │ Active │ 80 │ 3.5.5 │ JmDNS
31 │ Active │ 80 │ 1.0.0 │ Units of Measurement API
33 │ Active │ 80 │ 1.1.0.Final │ Bean Validation API
35 │ Active │ 80 │ 2.0.1 │ javax.ws.rs-api
36 │ Active │ 80 │ 2.9.2 │ Joda-Time
37 │ Active │ 80 │ 0.5.8 │ Jollyday
38 │ Active │ 80 │ 3.2.0.v201101311130 │ ANTLR Runtime
40 │ Active │ 80 │ 1.1 │ Commons Exec
41 │ Active │ 80 │ 2.2.0 │ Commons IO
42 │ Active │ 80 │ 2.6 │ Commons Lang
51 │ Active │ 80 │ 4.2.7 │ Apache Karaf :: OSGi Services :
66 │ Active │ 80 │ 1.4.7.1 │ Apache ServiceMix :: Bundles ::
69 │ Active │ 80 │ 4.14.0 │ Apache XBean OSGI Bundle Utilit
70 │ Active │ 80 │ 4.14.0 │ Apache XBean :: Classpath Resou
71 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Common
72 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Ecore
73 │ Active │ 80 │ 2.11.0.v20160420-0247 │ EMF Change Model
74 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF XML/XMI Persistence
75 │ Active │ 80 │ 3.10.400.v20190516-1504 │ Common Eclipse Runtime
104 │ Active │ 80 │ 0.8.0.v20190822-0801 │ org.eclipse.lsp4j
105 │ Active │ 80 │ 0.8.0.v20190822-0801 │ org.eclipse.lsp4j.jsonrpc
106 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xtend Runtime Library
107 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xtend Macro Interfaces
108 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext
109 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xtext Common Types
110 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext IDE Core
111 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext Utility
112 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xbase Model
113 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xbase Generic IDE Services
114 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xbase Runtime Library
129 │ Active │ 80 │ 1.9.6 │ MIME streaming extension
131 │ Active │ 80 │ 7.1.0 │ org.objectweb.asm.commons
132 │ Active │ 80 │ 7.1.0 │ org.objectweb.asm.tree
133 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Core
134 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Audio
135 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: OAut
136 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Bind
137 │ Active │ 90 │ 2.5.0 │ openHAB Core :: Bundles :: Boot
138 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
139 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
140 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
141 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
142 │ Active │ 75 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
143 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Ephe
144 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: ID
145 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Cons
146 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Cons
147 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: HTTP
149 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Moni
150 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Netw
151 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: REST
152 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Audi
153 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: REST
154 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: REST
155 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: REST
156 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Site
157 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: SSE
158 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Voic
159 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: mDNS
160 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Kara
161 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
162 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
163 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
164 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
165 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Lang
166 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
167 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
168 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
169 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
170 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
171 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
172 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
173 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
174 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
175 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
176 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
177 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
178 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
179 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
180 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Mode
181 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Pers
182 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Sche
183 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Sema
184 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: JSON
185 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Thing
186 │ Active │ 75 │ 2.5.0 │ openHAB Core :: Bundles :: Thin
187 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Tran
188 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: UI
189 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: UI I
190 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Voice
191 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: Dashbo
200 │ Active │ 80 │ 1.4.0 │ ThreeTen-Extra
201 │ Active │ 80 │ 1.0.3 │ Units of Measurement Common Lib
202 │ Active │ 80 │ 1.0.10 │ Units of Measurement Implementa
203 │ Active │ 80 │ 1.9.2 │ Jackson JSON processor
204 │ Active │ 80 │ 1.9.2 │ Data mapper for Jackson JSON pr
205 │ Active │ 80 │ 1.6.0 │ Commons Codec
206 │ Active │ 80 │ 4.2.3 │ Apache HttpClient OSGi bundle
207 │ Active │ 80 │ 4.2.3 │ Apache HttpCore OSGi bundle
208 │ Active │ 80 │ 3.1.0.7 │ Apache ServiceMix :: Bundles ::
209 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: 1.x
212 │ Active │ 80 │ 1.0.0 │ IO.Socket Engine Client
213 │ Active │ 80 │ 1.0.0 │ IO.Socket Socket Client
214 │ Active │ 80 │ 20180813.0.0 │ JSON in Java
215 │ Active │ 80 │ 1.10.0 │ Apache Commons Codec
216 │ Active │ 80 │ 3.2.2 │ Apache Commons Collections
217 │ Active │ 80 │ 3.3.0 │ Commons Net
218 │ Active │ 80 │ 3.8.1.1 │ Apache ServiceMix :: Bundles ::
219 │ Active │ 80 │ 1.13.0.1 │ Apache ServiceMix :: Bundles ::
220 │ Active │ 80 │ 2.5.2 │ JUPnP Library
221 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: A
222 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: B
223 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: H
224 │ Active │ 80 │ 1.14.0 │ openHAB HTTP Binding
225 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: K
226 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: N
227 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: Conf
228 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: UPnP
229 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: I
230 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: I
231 │ Active │ 80 │ 2.5.1 │ openHAB Add-ons :: Bundles :: I
232 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
233 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
234 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
235 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
236 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
237 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
238 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
239 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
240 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: Basic
241 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: Classi
242 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: HABmin
243 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: HABPan
244 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: HomeBu
245 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: Icon S
246 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: Paper
247 │ Active │ 75 │ 2.5.1 │ openHAB Add-ons :: Bundles :: T
248 │ Active │ 80 │ 1.1.1.201605111122 │ Swagger Provider
249 │ Active │ 80 │ 2.9.10 │ Jackson-annotations
250 │ Active │ 80 │ 2.9.10 │ Jackson-core
251 │ Active │ 80 │ 2.9.10 │ jackson-databind
252 │ Active │ 80 │ 2.9.10 │ Jackson-dataformat-YAML
253 │ Active │ 80 │ 1.5.8 │ swagger-annotations
254 │ Active │ 80 │ 1.5.8 │ swagger-core
255 │ Active │ 80 │ 1.5.8 │ swagger-jaxrs
256 │ Active │ 80 │ 1.5.8 │ swagger-models
257 │ Active │ 80 │ 3.19.0.GA │ Javassist
258 │ Active │ 80 │ 3.2.1 │ Apache Commons Lang
259 │ Active │ 80 │ 2.5.1 │ openHAB UI :: Bundles :: openHA
260 │ Active │ 80 │ 1.23.0 │ SnakeYAML
261 │ Active │ 80 │ 0.9.10.v20160429-1435 │ reflections (wrap)
262 │ Active │ 80 │ 1.5.8.v20160511-1038 │ swagger-jersey2-jaxrs (wrap)

I now have to use the console with the command “set:log TRACE”. But the output is very confusing.
It scrolls through so fast, I can’t recognize anything.

The TRACE output is also written to openhab.log. So all messages will be in this file.

I found the log files. There were seven 16-megabyte pieces tonight alone. At the moment the system is probably logging every little thing. I still have no idea how this can help. I can’t find my way around it at all and have no idea what to look for. What do I have to look for there? I can’t post such a big log here.

If there are so many log messages, you maybe have enabled the logging for everything. You can try the following:

  • in the Karaf console you can check with log:get which Loglevels are active. The only one with Level DEBUG should be org.openhab.binding.homematic. All other should have a higher level.
  • shut down openhab
  • remove openhab.log
  • start openhab again
  • perform some actions with the HM-MOD-EM8
  • the the logging for the Homematic binding back to INFO

Now you should have a much smaller openhab.log.

Hi Martin

Here I am again, it was carnival after all. I’ve tried to log it now, according to your instructions. But there are about 96 pages in Word, I don’t think it makes sense to post so many lines here. I attached the log file.
I don’t need to tell you how to search it.

I’m appending the line from the thing file.
homematic:HM-MOD-EM-8:3014F711A0001F58A9A71131:PEQ1916936:1#STATE
Contact

I hope you can find something there.
I also tried to update everything again, but the error that I can’t create the switches as items remains.

Regards, Hardy.

Translated with www.DeepL.com/Translator (free version)openhablog.txt (266.0 KB)

Hi Martin
today i saw in the log that all devices somehow produce duplicate entries. Once with a short number and once with a long one. Is this because I installed Homematic and another bridge?

I’ll give you two hurdles where you can see that.
2020-03-04 14:16:30.302 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (String) value ‘3014F711A0001F58A9A71131’ for ‘CENTRAL:0#PONG’ from gateway with id ‘d4752d1b’.
2020-03-04 14:16:30.316 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (String) value ‘3014F711A0001F58A9A71131’ for ‘CENTRAL:0#PONG’ from gateway with id ‘3014F711A0001F58A9A71131’.

I also noticed, after I integrated a new shutter switch, that at first the same error occurred as with the HM-MOD-EM-8 transmitter: When trying to create an item, the field with the storage location remains free …But only for a short time! It appeared in the Openhab (Paper UI) in the lower right corner “Error 503 Jersey not Ready” or something similar. But shortly after that it worked after all.

Does this help?

Puuhhh, need to look closer at it but probably not before the weekend.

I don’t think. What other bridge did you install?

This looks like some timing problems. Maybe the PI ist a bit overloaded.

To be more precise, I did not install another bridge, but for Homematic another one more, as it looks like. I find among the things once the

eQ3-HmIP-CCU3-App - 192.168.178.55 ONLINE
Homematic Bridge
homematic:bridge:3014F711A0001F58A9A71131

…and then these.
Homematic Bridge ONLINE
Homematic Bridge
homematic:bridge:d4752d1b

and I have no idea why I need so many bindings.
I was also unsure about the installation as it is my first project in this direction. I don’t know what is better to fix this installation, or maybe start from scratch…no, forget it, better not…

Hello to the round, hello Martin

Here’s an update on the situation…
I now have Openhab2 new on an extra Raspberry. Again the same error, HM-MOD-EM-8 can not be integrated as an item. At least not via WebUi. But I managed to capture the HM-MOD-EM-8 manually in text form. This works as well, but it inverts the switching function of the function window contact. But I need this for my garage. Now I have the problem that I see the state closed in Homematic APP when the garage is closed, but the state open in Openhab.

So I bought a HMiP-MOD-RC8…the same device only as an IP variant, in the hope that Openhab will recognize this better. Far from it, here Openhab doesn’t even recognize the window contact function anymore. It only outputs the function LONGPRESS in Openhab. Even the BUTTON function is greyed out. CONTACT is not even present. Catastrophe…(freely after Manusakis) :wink:

I think I’m now looking for an interim solution and wait and hope for an update which will fix the problem with these really great stations. Because there are certainly a lot of possible applications.
I will use two channels in parallel with my microswitches on the 8 channel HM-MOD-EM8. Then channel 1 sends the value “closed” to Homematic and channel 2, inverted, “closed” to Openhab. I can change the output value in Openhab or in Homematic. Just not separately for the systems.

Thanks a lot and especially to you Martin!

If that’s ok, I will not close the thread as solved, because it is not!

If anyone else has an idea, feel free to bring it to me!

See you soon and true to my motto, we are a bit closer to Mars again…

Greeting
Hardy

Translated with www.DeepL.com/Translator (free version)

Hi Hardy,

it seems that these two devices behave differently than other devices. Probably the binding needs a special implementation for these two devices. I have to find out how to get the necessary information.

Hi there,
i’ve got the same Problem in OH2 - solved with pseudo Items witch state are inverted by rule (closed is open, open is closed).
The Inputs are configured as contact in Homematic.
In OH3 you can edit the settings of each channel in the Thing but there are no chanels for the inputs in “add items from thing” …
only the maintance channels are present
when i click on the "expert Mode"in the thing menu, i get a error message “There was an error generating the items definition: TypeError: Cannot read property ‘tags’ of undefined”
hope you can understand my german-english and can help :wink: