Busch-Jaeger Free@Home

Yes, I have successfully created virtual switches under F@H SysAp (following ABB developer program), and I have implemented the switches in OH through revised code (as implemented in jar file from previous post).

Although, I also struggled in the beginning, and was in dialogue with ABB developers to trouble shoot issues. This was in the phase between SysAp version 2.3.2 and 2.4.0, and the issues should be resolved for SysAp 2.4.0 (at least for me). My issue was that I did not get the correct setup for the fhapi ā€œuserā€ under SysAp setup (as illustrated in the ABB tutorial) although following ABB guide, and I was not able to write/put anything to SysAp (using Postman). Got it working, and still works.

Next challenge for me, after having created virtual switch from Postman, was to be able to operate the switch under SysAp. The switch was found and implemented in SysAp, but it was not possible to perform state change (ON/OFF). I had to reboot SysAp, and eventually was able to operate switch, and could then implement switch in OpenHab.

1 Like

Thanks for your information.

So I have to contact the ABB developers to solve my issue. Which way did you use to contact the support? I didnā€™t find any contact information in the developer portal.

I have been in contact with ABB via:
Smarter Home Developer --> DE-SmarterHomeDeveloper@abb.com

Hello, Iā€™m using successfully this binding with SysAP 2.4. Iā€™m new to OpenHab and I want to start a bash script if a scene in free@home is started.

So I created a new rule ā€œtest.rulesā€ with content

rule "test"
when
  Item FFFF48000003 received update
then
  logInfo("test", FFFF48000003.state)
end

The rule is loaded without error. If I active the scene over the f@h Android App nothing is written to log.

Maybe the ID of the item is wrong. In PaperUI " TV_Neue Szene_4800_FFFF48000003" is shown as the name of the item.

In events.log file is not shown that the scene is activated in f@h. Is it already possible to fetch it in OpenHab?

Does anyone have a hint?
Thanks :slight_smile:

Well, actually, if the scene is activated on the F@H side (i.e. via F@H switch, action etc), the F@H SysAp does not report the actual update/state change for the scene, and will thus not be able to trigger a OpenHab rule as you try to achieve. If the scene is triggered from OpenHab side, the update/state change for the scene should be reported.

For my own setup, I have created virtual switches (using the ABB developer program), which again are linked to the scene in F@H SysAp (virtual switch ON/OFF). I.e. when scene is triggered from the F@H system, the belonging virtual switch is switched ON. The virtual switches are included in the OpenHab setup, and these switches report ā€œON/OFFā€, and could be used to trigger rules similar to what you try to achieve.

Also, I see you are using ā€œItem FFFF4800003ā€, but is this item actually linked to a channel of your scene thing?

For instance, for one of my scenes, I have linked an item AltAvActivate which is linked to my scene thing as follows:

Switch   AltAv_Activate   "Activate scene" <mediacontrol>  {channel="freeathome:scene:FFFF48000006:activate"}

@kjoglums thanks for your fast feedback!

Is it transmitted from f@h to OpenHab when a hardware button is pressed?

When you activate a regular F@H switch (e.g. regular relay switch, dimmer switch etc), either via hardware switch or F@H app, the activation is reported by F@H SysAp (ON/OFF, dimmer value etc), and is transmitted from F@H to OH. However, scene activation itself on the ā€œF@H sideā€ (switch, F@H app etc) is not reported by the F@H SysAp (only state change of the things/channels involved in the scene), and there is thus ā€œnothingā€ to transmit from F@H to OpenHab for scene activation, and one would therefore not be able to track/log scene activation as a ON/OFF feature. That is the reason why I have linked virtual switches to my scenes, to be able to detect actual scene activation from ā€œF@Hā€ side.

Okay, thanks again for feedback!

I read the documentation of ABB developer program (https://developer.eu.mybuildings.abb.com/getting-started). Am I right that you can only create virtual switches by connecting your SysAp to the cloud? I tried to use the URLs for local IP (eg. http://sysap/fhapi/v1/api/rest/configuration) but the response is HTTP 404

That is true: You will only be able to create virtual switches by connecting to SysAp via cloud. I.e. you need to follow the 3 steps shown in the bottom of page Sign up / Request / Subscribe. Then you will need to download the Postman software and follow the ABB Tutorials.

The cloud connection is only required for the creation of the virtual switches. Once the switches are created, and recognised in the SysAp GUI, you can play around with the switches under regular running environment.

Hi everyone, Iā€™ve been messing around with the free @ home binding in OpenHAB for a while. And ā€¦ by now I have reached the point where the binding is connected with my Sysap. Unfortunately I only see my BJ scenes in the list of Things. And adding a switch manually gives unfortunately no result. Is there anyone who can get me started? Do I have to configure something manually?

I am not very familiar with programming, so any explanation please in layman language;) Thanks in advance!

Ultimately, I want my free@home switches connect with Apple Homekit. Is there anyone who has this working already?

So, I understand you have your bridge Online.

However, are you not getting any autodiscovered things in PaperUI when you go to ā€œInboxā€ ā€”> Add ā€”> ā€œFree@Home bindingā€? What is your log showing when you try to run autodiscovery from inbox?

Hi Stian,

This is how the logs look like (sorry, as a new user i canā€™t upload files so I had to copy/paste):

2020-01-14 18:10:56.909 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0000ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.920 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0001ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.919 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0001ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.927 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0002ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.928 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0002ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.936 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0003ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.935 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0003ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.949 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000002ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.950 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000002ā€™ to inbox.

2020-01-14 18:10:56.958 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000003ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.962 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000003ā€™ has been added.

2020-01-14 18:10:56.965 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000004ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.966 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000004ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.979 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000006ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.979 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000006ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.986 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000008ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.986 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000008ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:56.993 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000009ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:56.993 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000009ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 18:10:57.001 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF4800000Eā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 18:10:57.001 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF4800000Eā€™ to inbox.

2020-01-14 18:10:59.568 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - Ops!

javax.xml.bind.UnmarshalException: null

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) ~[?:1.8.0_222]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:548) ~[?:?]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:234) ~[?:?]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:199) ~[?:?]

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) ~[?:1.8.0_222]

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214) ~[?:1.8.0_222]

at org.openhab.binding.freeathome.internal.xmpp.rocks.extensions.abb.com.protocol.data.Project$Builder.build(Project.java:164) ~[?:?]

at org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler.onMessageEvent(FreeAtHomeBridgeHandler.java:367) ~[?:?]

at org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler.lambda$0(FreeAtHomeBridgeHandler.java:206) ~[?:?]

at rocks.xmpp.util.XmppUtils.lambda$notifyEventListeners$1(XmppUtils.java:177) ~[?:?]

at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891) ~[?:1.8.0_222]

at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404) ~[?:1.8.0_222]

at rocks.xmpp.util.XmppUtils.notifyEventListeners(XmppUtils.java:175) ~[?:?]

at rocks.xmpp.core.session.XmppSession.lambda$handleElement$16(XmppSession.java:1208) ~[?:?]

at rocks.xmpp.util.concurrent.QueuedExecutorService.doExecute(QueuedExecutorService.java:154) ~[?:?]

at rocks.xmpp.util.concurrent.QueuedExecutorService.lambda$poll$0(QueuedExecutorService.java:126) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

Caused by: org.xml.sax.SAXParseException: The reference to entity ā€œNā€ must end with the ā€˜;ā€™ delimiter.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1850) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3061) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) ~[?:1.8.0_222]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:228) ~[?:?]

... 16 more

2020-01-14 18:10:59.594 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - JaxbException null

What system are you running OH under, and which OH version are you running? And what java version?

Also, which F@H binding version are you using, are you using the latest jar (for OH 2.5.0) from link above: Link?

See from your log that you are discovering one switch, i.e. BEED7F330018. Not sure why you get the UnmarshalException, but it could relate to OH version vs F@H binding version (e.g. java version).

Have you tried deleting F@H bridge from PaperUI, rebooting OH and creating new bridge?

Iā€™m running OH on a Raspberry Pi 3. Itā€™s version 2.5.0. It was installed by the prepackaged SD-Card Image, witch comes with openjdk version ā€œ1.8.0_222ā€.

The F@H binding is version freeathome-2.5.1-SNAPSHOT.jar

The BEED7F330018 switch is a Philips HUE smartplug (the BJ Sysap is connected with a Philips HUE bridge). This is the only discovering switch.

By the way, I have just set the F @ H binding to show unsupported devices as dummy. Then I see all my switches appear as a dummy.

Deleting the F@H bridge form PaperUI, rebooting OH and creating a new bridge offers no solution.

What do you think? Update the JAVA version?

This is how the logs now looks like, with two errors:

  1. 2020-01-14 20:41:08.503 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - JaxbException null
  2. 2020-01-14 20:42:11.524 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - Ops!

2020-01-14 20:40:56.265 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F33000Fā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.271 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D3E861ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.270 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D3E861ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.276 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F330010ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.276 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F330010ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.294 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F330012ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.294 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F330012ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.300 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D2B8CCā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.299 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D2B8CCā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.305 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D3E865ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.304 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D3E865ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.310 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F330015ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.310 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F330015ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.316 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F330016ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.315 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F330016ā€™ to inbox.

2020-01-14 20:40:56.321 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0000ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.322 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0000ā€™ has been added.

2020-01-14 20:40:56.331 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0001ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.331 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0001ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.336 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0002ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.336 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0002ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.341 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:switch:BEED7F330018_ch0003ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.341 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:switch:BEED7F330018_ch0003ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.346 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4CF83ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.346 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4CF83ā€™ to inbox.

2020-01-14 20:40:56.351 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4CF84ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.351 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4CF84ā€™ has been added.

2020-01-14 20:40:56.356 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F33001Aā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.355 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F33001Aā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.380 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:BEED7F33001Bā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.380 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:BEED7F33001Bā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.385 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB224222E51ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.385 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB224222E51ā€™ to inbox.

2020-01-14 20:40:56.390 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D458FAā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.391 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D458FAā€™ has been added.

2020-01-14 20:40:56.396 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4D616ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.396 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4D616ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.402 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D458FDā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.401 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D458FDā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.407 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4D65Aā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.407 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4D65Aā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.413 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4D665ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.413 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4D665ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.419 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4722Cā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.418 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4722Cā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.425 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:ABB700D4D629ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.425 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:ABB700D4D629ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.430 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000006ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.429 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000006ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.435 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000008ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.434 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000008ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.440 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF48000009ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.440 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF48000009ā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.461 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:FFFF48010001ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.460 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:FFFF48010001ā€™ to inbox.

2020-01-14 20:40:56.465 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:scene:FFFF4800000Eā€™ to inbox.

==> /var/log/openhab2/events.log <==

2020-01-14 20:40:56.466 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:scene:FFFF4800000Eā€™ has been added.

2020-01-14 20:40:56.471 [home.event.InboxAddedEvent] - Discovery Result with UID ā€˜freeathome:dummy:FFFF4A000001ā€™ has been added.

==> /var/log/openhab2/openhab.log <==

2020-01-14 20:40:56.470 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜freeathome:dummy:FFFF4A000001ā€™ to inbox.

2020-01-14 20:41:08.466 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - Ops!

javax.xml.bind.UnmarshalException: null

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) ~[?:1.8.0_222]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:548) ~[?:?]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:234) ~[?:?]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:199) ~[?:?]

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) ~[?:1.8.0_222]

at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214) ~[?:1.8.0_222]

at org.openhab.binding.freeathome.internal.xmpp.rocks.extensions.abb.com.protocol.data.Project$Builder.build(Project.java:164) ~[?:?]

at org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler.onMessageEvent(FreeAtHomeBridgeHandler.java:367) ~[?:?]

at org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler.lambda$0(FreeAtHomeBridgeHandler.java:206) ~[?:?]

at rocks.xmpp.util.XmppUtils.lambda$notifyEventListeners$1(XmppUtils.java:177) ~[?:?]

at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891) ~[?:1.8.0_222]

at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404) ~[?:1.8.0_222]

at rocks.xmpp.util.XmppUtils.notifyEventListeners(XmppUtils.java:175) ~[?:?]

at rocks.xmpp.core.session.XmppSession.lambda$handleElement$16(XmppSession.java:1208) ~[?:?]

at rocks.xmpp.util.concurrent.QueuedExecutorService.doExecute(QueuedExecutorService.java:154) ~[?:?]

at rocks.xmpp.util.concurrent.QueuedExecutorService.lambda$poll$0(QueuedExecutorService.java:126) ~[?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

Caused by: org.xml.sax.SAXParseException: The reference to entity ā€œNā€ must end with the ā€˜;ā€™ delimiter.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1850) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3061) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[?:1.8.0_222]

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) ~[?:1.8.0_222]

at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:228) ~[?:?]

... 16 more

2020-01-14 20:41:08.503 [ERROR] [rnal.handler.FreeAtHomeBridgeHandler] - JaxbException null

With the OH / Java / F@H versions of yours (pretty much the latest versions), you should get the binding working, so no need to make any changes.

The fact that you get the things as dummy things would indicate you have devices which are not recognised by the binding. Are you having a setup with wireless devices?

From your inbox, could you list example of different devices (switch, dimmer switch, thermostat etc) with full names? The binding use a number sequence from the full name to define the thing as correct type, and set up the correct channels. Might be we need to update binding for additional device types/number.

E.g., as per now, the binding associates the following number sequence:

  • Scenes: 4800
  • 1/1 Dim actuator 9017
  • 2/1 Dim actuator 9019
  • Dimmer 4ch 101C / 1021 / 901C
  • 1/1 Switch actuator 900C
  • 2/1 Switch actuator 9010
  • Switch act 4ch B002
  • Thermostat 1004 / 9004

Etc, etc.

Also, I see you are getting an error related to JaxbException. Apparently your SysAp is sending XML stream with some character(s) which cause the exception. Do not fully understand whyā€¦ Are you using some special characters in the name of some of your F@H devices?

No, my devices are all wired.

This are some items shown as dummy in my Inbox:

Dummy_BXK_Sensor/ Schaltaktor 2/2-fach_1010_ABB700D3E861

Dummy_DKM_Sensor/ Schaltaktor 1/1-fach_100C_ABB700D458FD

Dummy_DOG_Sensor/ Schaltaktor 1/1-fach_100C_ABB700D4D63D

Dummy_EDL_Sensor/ Schaltaktor 1/1-fach_100C_ABB700D4D616

Dummy_EGD_Sensor/ Schaltaktor 1/1-fach_100C_ABB700D4591C

Dummy_FBB_Sensor/ Schaltaktor 2/1-fach_100E_ABB700D4722C

The installer of my F @ H system has given each item a name that consists of three letters. I think this is optional. Can this cause the error?

Thanks in any case for your help!

I could not see why the naming convention used by your installer should cause such issues. Although, some issue exists with the incoming XML stream as you get the JaxbException.

Have tried to implement your device description (e.g. 1010, 100C and 100E) in the discovery service, and have created a new version of the binding:
Link

Could you please test if the new version of the binding discovers your devices correctly as switches during inbox discovery, and not as dummy?

Wow Stian, you are my hero! It works!

There are still a few actors who appear as dummy. Would you also like to add this items? Then it is completely perfect!

Dummy__SysAP Kommunikationsinterface_1012_ABB700D4CF83

Dummy__SysAP Kommunikationsinterface_2012_ABB700D4CF84

Dummy__SysAP_FFFF_ABB700000000

Dummy_AUY_Sensoreinheit 2-fach_1002_ABB700D41DAF

Dummy_NOB_Sensoreinheit 1-fach_1000_ABB700D4ADE6

Dummy_RFP_Sensoreinheit 1-fach_1000_ABB700D2B8CC

Dummy_SSU brandmelder a_BinƤreingang 2-fach, UP_B005_ABB224222E51

THXS

The SysAP stuff is really just dummy things, and has no interest to OpenHab. As for ā€œSSU brandmelderā€, this is a device not implemented/covered by the binding.

Have updated binding to try to discover/implement ā€œ1000ā€ devices and the ā€œ1002ā€ device. Not sure how they operate, but you could test and see if the correct response is achieved.

Link