Ebus binding

I’m currently working on a ebusd converter. So I some Vaillant user are interested to test, follow this topic.

After a mail from a eBus binding user I fixed the binding and looked at the CRC calculation. This version should fix a CRC calculation issue.

You can test the new version: https://drive.google.com/open?id=0B5Vjy5Qe0CabbVpRaE5VREdWTFk

Hello @csowada, what is the status of ebus binding re. OpenHab 2 compatibility?

(I checked https://github.com/csowada/openhab-bindings/tree/master/org.openhab.binding.ebus and it was last updated about two years ago.)

Your post from December 2016 looks like you may still keep working on the binding, is it correct?

P.S. Until now, I have been using ebusd and I parse the data through my own script and publish them to openHab via MQTT, which works, but having it connected directly to openHab might be better.

BTW, I would have a use for the script converting csv (ebusd conf) to json conf file as well (I use Protherm device, which is part of Vaillant Group, but some definitions are different).

Hello @Derka,

this is the old repository, you should look into my fork, specially into this branch.
https://github.com/csowada/openhab/tree/ebus-fix-expand-bytes

Here is the jar file to this version, I still need testers :wink:

But the current released version is full compatible with OH2, but not contains any discovry etc. features from OH2.

If you want to cnvert your configuration files you can try this small tool.

Hi @csowada,

thanks for the correct links. Where do I put the binding config file in OH2? The wiki refers to OH1.8.

I tried (ebusd daemon is stopped, so ttyUSB0 should be available for OH2):

$ cat conf/services/runtime.cfg
ebus:serialPort=/dev/ttyUSB0
ebus:parsers=common,vaillant-bai00

and it seems to be ignored:

2017-01-31 20:57:27.761 [INFO ] [ab.binding.ebus.internal.EBusBinding] - Update eBus Binding configuration ...
2017-01-31 20:57:30.308 [ERROR] [org.apache.felix.configadmin        ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=319, bundle=195/file:/opt/openhab2-runtime/addons/org.openhab.binding.ebus-1.9.0-FIX-001.jar]: Updating property hostname of configuration org.openhab.ebus caused a problem: Set property serialPort or hostname, not both!
org.osgi.service.cm.ConfigurationException: hostname : Set property serialPort or hostname, not both!
        at org.openhab.binding.ebus.internal.EBusBinding.updated(EBusBinding.java:211)[195:org.openhab.binding.ebus:1.9.0.201701162210]
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]

EDIT 1: I tried to install ebus binding from PaperUI (from repo) and it created conf/services/ebus.cfg. Then I removed the configuration from runtime.cfg and put it to the ebus.cfg, but still no go - the error is the same.

I also tried to comment serialPort and use hostname and port in ebus.cfg (while having ebusd daemon running and listening on that port for client connections), but nothing changed.

EDIT 2: ok, I moved a bit farther: OH2 somehow mixed the various edits of conf/services/ebus.cfg into the mirror conf file created on-the-fly in userdata/config/org/openhab/ebus.config so that the latter included both serialPort and hostname directives.

I removed it, also the userdata/cache/* and userdata/tmp/* started OH2 and then copied the binding jar file to addons/. The binding should use /dev/ttyUSB0, and the ebusd daemon is stopped. But still, OH2 complaints:

2017-01-31 21:51:30.598 [INFO ] [ab.binding.ebus.internal.EBusBinding] - Update eBus Binding configuration ...
2017-01-31 21:51:33.064 [ERROR] [org.apache.felix.configadmin        ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=322, bundle=195/file:/opt/openhab2-runtime/addons/org.openhab.binding.ebus-1.9.0-FIX-001.jar]: Unexpected problem updating configuration org.openhab.ebus
java.lang.NoClassDefFoundError: gnu/io/SerialPortEventListener
        at java.lang.ClassLoader.defineClass1(Native Method)[:1.8.0_101]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)[:1.8.0_101]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:327)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:402)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_101]
        at org.openhab.binding.ebus.internal.EBusBinding.updated(EBusBinding.java:224)
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
Caused by: java.lang.ClassNotFoundException: gnu.io.SerialPortEventListener cannot be found by org.openhab.binding.ebus_1.9.0.201701162210
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_101]
        ... 23 more

From OH2 console execute feature:install openhab-transport-serial or drop serial binding jar to addons folder.

1 Like

@splatch: ok, that resolved the problem.

Hello,

I’m trying to use custom praser in OH2 and i have error of ebus.
Without custom is workign ok
Could you please confirm how i should adjust ebus.conf

parserUrl=/etc/openhab2/ebus-config.json
parsers=common,vaillant-vrc470,vaillant-bai00,custom

Hello,

i use a Wolf COB-20 with SM1 solar mobule.
Is the COB-20 compatible with the eBus binding version or is the configuration files missing for this components?
thanks in advance.

Hi all, to play around with the eBUS binding I installed OH 1.8.3 and the 1.8.3 eBUS binding.
I have a Vaillant Ecotec plus VCW 346/5-5 with a Multimatic 700 Thermostat (http://www.vaillant.nl/professioneel/producten/multimatic-700-16832.html)
Looks like the binding doesn’t recognize this VRC 700 :confused:.

Some log files for the devs:

2017-04-23 23:09:45.010 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:09:45.707 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:09:45.728 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:09:54.579 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:09:54.635 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:09:54.851 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:09:54.867 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:09:58.245 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP receiver] KNXnet/IP Tunneling 192.168.1.5:3671: connection state response status: server could not find active data connection with specified ID
2017-04-23 23:10:00.375 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:00.400 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:00.787 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 08 00 53 09 00 24 04 01 17 04 AA
2017-04-23 23:10:00.816 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:01.825 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:10:01.849 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:03.989 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 00 88 00 08 89 01 0F 00 1F 00 00 00 72 00 AA
2017-04-23 23:10:04.007 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:04.948 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 00 00 CA 00 00 00 00 AA
2017-04-23 23:10:04.971 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:05.349 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 04 FF F4 00 01 01 9A 00 AA
2017-04-23 23:10:05.361 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:07.047 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 13 02 05 08 C6 00 00 00 00 AA
2017-04-23 23:10:07.091 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:08.245 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP receiver] KNXnet/IP Tunneling 192.168.1.5:3671: connection state response status: server could not find active data connection with specified ID
2017-04-23 23:10:14.990 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:15.025 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:15.838 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:10:15.865 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:18.247 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP receiver] KNXnet/IP Tunneling 192.168.1.5:3671: connection state response status: server could not find active data connection with specified ID
2017-04-23 23:10:26.011 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:26.026 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:27.392 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:10:27.407 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:28.247 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP receiver] KNXnet/IP Tunneling 192.168.1.5:3671: connection state response status: server could not find active data connection with specified ID
2017-04-23 23:10:35.034 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:35.049 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:35.985 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:10:36.002 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:38.259 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP receiver] KNXnet/IP Tunneling 192.168.1.5:3671: received disconnect response status 0x21 (no active data connection with that ID)
2017-04-23 23:10:38.273 [WARN ] [tuwien.auto.calimero          ] - [KNXnet/IP heartbeat monitor] KNXnet/IP Tunneling 192.168.1.5:3671: close connection - no heartbeat response
2017-04-23 23:10:38.293 [WARN ] [b.k.i.connection.KNXConnection] - KNX link has been lost (reason: no heartbeat response on object link 192.168.1.5:3671 tunneling mode (closed), TP1 hopcount 6)
2017-04-23 23:10:45.267 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:45.281 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:45.773 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:10:45.789 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:55.182 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:10:55.199 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:10:55.905 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 03 05 74 01 BC 00 01 01 9A 00 AA
2017-04-23 23:10:55.917 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:02.087 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:02.113 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:02.615 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 08 00 53 10 00 24 04 01 17 1B AA
2017-04-23 23:11:02.629 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:03.868 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:03.881 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:05.203 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 03 05 74 01 BC 00 01 01 9A 00 AA
2017-04-23 23:11:05.218 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:05.857 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 00 00 CA 00 00 00 00 AA
2017-04-23 23:11:05.874 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:06.631 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 04 FF F4 00 01 01 9A 00 AA
2017-04-23 23:11:06.647 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:07.234 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 03 01 00 D8 04 AA
2017-04-23 23:11:07.266 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:12.840 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 03 05 FF 01 98 00 01 01 9A 00 AA
2017-04-23 23:11:12.855 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:14.776 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 03 05 78 01 64 00 01 01 9A 00 AA
2017-04-23 23:11:14.805 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:16.760 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:16.776 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:17.915 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:17.928 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:25.421 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:25.457 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:26.086 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:26.105 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:35.302 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:35.319 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:35.908 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:35.933 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:46.486 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:46.499 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:47.564 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:47.577 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:56.001 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:11:56.019 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:11:56.288 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:11:56.308 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:04.048 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:04.073 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:04.867 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 08 00 53 11 00 24 04 01 17 FE AA
2017-04-23 23:12:04.887 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:05.138 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:05.156 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:06.362 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 00 88 00 08 89 01 0F 00 1F 00 00 00 72 00 AA
2017-04-23 23:12:06.380 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:07.569 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 03 05 FF 01 98 00 01 01 9A 00 AA
2017-04-23 23:12:07.595 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:08.045 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 00 00 CA 00 00 00 00 AA
2017-04-23 23:12:08.070 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:08.715 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 12 02 04 FF F4 00 01 01 9A 00 AA
2017-04-23 23:12:08.727 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:09.665 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 03 01 00 D8 04 AA
2017-04-23 23:12:09.678 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:17.503 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:17.517 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:18.568 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:18.582 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:26.243 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:26.257 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:27.307 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:27.334 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:35.727 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:35.742 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:36.440 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:36.468 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:45.640 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:45.655 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:46.717 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:46.733 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:56.644 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:12:56.661 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:12:56.913 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:12:56.932 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:13:05.186 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 11 01 01 89 00 09 31 31 00 80 32 35 00 00 FF C5 00 AA
2017-04-23 23:13:05.204 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:13:05.423 [DEBUG] [.ebus.internal.parser.Analyses] - 10 FE B5 16 08 00 53 12 00 24 04 01 17 4A AA
2017-04-23 23:13:05.439 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------
2017-04-23 23:13:06.108 [DEBUG] [.ebus.internal.parser.Analyses] - 10 08 B5 10 09 00 00 00 FF FF FF 05 00 00 7E 00 01 01 9A 00 AA
2017-04-23 23:13:06.141 [DEBUG] [.ebus.internal.parser.Analyses] -   >>> Unknown ----------------------------------------

Hello there.

Can’t get Heating Curve setting working. Getting data working fine.

In my custom json:

{
  "comment":  "VR630 HC Heating Curve",
  "id":       "HeatingCurve",
  "class":    "hc",
  "command":  "B5 09",
  "data":     "0D 35 00",
  "dst":      "26",
  "values": {
    "value": {"type": "uint", "pos": 12, "label": "Heating Curve", "factor": 0.01}
  }
}, {
  "comment":  "VR630 Set HC Heating Curve",
  "id":       "set_HeatingCurve",
  "class":    "hc",
  "command":  "B5 09",
  "data":     "0E 35 00 00",
  "dst":      "26",
  "values": {
    "value": {"type": "uint", "pos": 9, "label": "Set Heating Cruve", "factor": 0.01, "min": 0.1, "max": 4.0}
  }
}

Record in items file:

Number Vhc_HeatingCurve "Heating Curve [%.1f]" <line> { ebus="id:hc.HeatingCurve.value, dst:26, refresh:60, set:hc.set_HeatingCurve.value" }

Sitemap:

Setpoint item=Vhc_HeatingCurve minValue=0.1 maxValue=4 step=0.1

But it doesn’t work:

12:52:14.173 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'Vhc_HeatingCurve' received command 1.2
12:52:14.179 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/command/Vhc_HeatingCurve] {bridgemarker=true, item=Vhc_HeatingCurve, command=1.2} | {org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler}={event.topics=openhab/*, service.pid=org.openhab.ebus, component.name=org.openhab.binding.ebus, component.id=299, service.id=477, service.bundleid=211, service.scope=bundle} | Bundle(org.openhab.binding.ebus_1.10.0 [211])]
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)[:1.8.0_131]
	at org.openhab.binding.ebus.internal.connection.EBusCommandProcessor.composeEBusTelegram(EBusCommandProcessor.java:242)[211:org.openhab.binding.ebus:1.10.0]
	at org.openhab.binding.ebus.internal.connection.EBusCommandProcessor.composeSendData(EBusCommandProcessor.java:334)[211:org.openhab.binding.ebus:1.10.0]
	at org.openhab.binding.ebus.internal.EBusBinding.internalReceiveCommand(EBusBinding.java:76)[211:org.openhab.binding.ebus:1.10.0]
	at org.openhab.core.binding.AbstractBinding.receiveCommand(AbstractBinding.java:97)[177:org.openhab.core.compat1x:2.1.0]
	at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:45)[177:org.openhab.core.compat1x:2.1.0]
	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[6:org.apache.karaf.services.eventadmin:4.0.8]
	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[6:org.apache.karaf.services.eventadmin:4.0.8]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
12:52:14.189 [INFO ] [marthome.event.ItemStateChangedEvent] - Vhc_HeatingCurve changed from 1.30 to 1.2

Who can help?

Hello MiniOh,

your solar module sm1 should be compatible, I use the same here. But I’n not sure with your COB-20, but you can try the wolf configuration files.

Hello,

it looks good so far. Could you try uchar instead of uint. Your target array is to small for uint (2bytes).

Hi, csowada,

I tried to change from uint to uchar. After that no errors in the log, but it doesn’t works again. I see, that your ebus binding is trying to send this command:

FF 26 B5 09 04 0E 35 00 82 2E 00 00 00 00

But if I try to change HeatingCurve through ebusd, it send another command (and it works like a charm):

31 26 B5 09 05 0E 35 00 82 00 47 00 00

It looks like you need an additional 00 in data, because it should be 5 bytes long.

1 Like

Many thanks my friend, it was so obvious, but I don’t think about it.

Hello again.

I have another trouble. Here is two commands in my custom json:

{
  "comment":  "Min HC temp",
  "id":       "FlowTempMin",
  "class":    "hc",
  "command":  "B5 09",
  "data":     "0D 30 00",
  "dst":      "26",

  "values": {
    "value": {"type": "uchar", "pos": 12, "label": "Min HC temp"}
  }
}, {
  "comment":  "Max HC temp",
  "id":       "FlowTempMax",
  "class":    "hc",
  "command":  "B5 09",
  "data":     "0D 31 00",
  "dst":      "26",

  "values": {
    "value": {"type": "uchar", "pos": 12, "label": "Max HC temp"}
  }
}

First command works fine:

10:19:07.213 [DEBUG] [onnection.AbstractEBusWriteConnector] - Succcesful send: FF 26 B5 09 03 0D 30 00 01 00 01 0F 94 00 AA
10:19:07.217 [DEBUG] [inding.ebus.internal.parser.Analyses] - FF 26 B5 09 03 0D 30 00 01 00 01 0F 94 00 AA
10:19:07.217 [DEBUG] [inding.ebus.internal.parser.Analyses] -   >>> Min HC temp

But second doesn’t work:

10:17:12.246 [DEBUG] [onnection.AbstractEBusWriteConnector] - Succcesful send: FF 26 B5 09 03 0D 31 00 9A 00 01 31 A9 01 00 AA
10:17:12.249 [DEBUG] [nal.connection.AbstractEBusConnector] - Received telegram was invalid, skip!

Through ebusctl there are also no problems:

root@nuc:~# ebusctl r -h 26b509030D3100
0131
root@nuc:~# ebusctl r -h 26b509030D3000
010f
root@nuc:~# ebusctl r -f -c hc FlowTempMax
49
root@nuc:~# ebusctl r -f -c hc FlowTempMin
15

Can you help me?

In your telegram is the special byte A9. There was a bug in an older version with encoding of this special byte. Do you use the newest version?

I have latest available in openhab2-addons package: binding-ebus1 1.10.0.

So, I found a bug in the current version. This is a fixed, but not really tested version.

You can download it here: https://drive.google.com/open?id=0B5Vjy5Qe0CabSUhSQm5iSjc1TFE

1 Like