# Velbus binding for OpenHAB

**URL:** <https://forum.velbus.eu/t/velbus-binding-for-openhab/14992>\
**Category:** For developers\
**Created:** [February 10, 2018, 7:32pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992 "2018-02-10T19:32:37Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 3:11pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/41 "2018-05-04T15:11:36Z")

</div>

you already have a working one with newest moduls  
openhabian  
[https://docs.openhab.org/installation/openhabian.html](https://docs.openhab.org/installation/openhabian.html)

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 4, 2018, 8:40pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/42 "2018-05-04T20:40:40Z")

</div>

Hi Ciceron,

Can you share the full log file?  
The message seems to say something about the hexToBytes function, which is used to convert the “address” setting of your Thing to a byte. But from the portion you posted I can’t see what’s going wrong.

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 8:42pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/43 "2018-05-04T20:42:30Z")

</div>

sur right away  
I think all that time i was installing repository binding, have to check ☹

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 8:48pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/44 "2018-05-04T20:48:21Z")

</div>

[openhab.log](https://forum.velbus.eu/uploads/default/original/2X/4/483cd69a18121618eb548d5a7b2df900988b9747.log) (95.6 KB)  
This the log of repository binding not latest one.  
i am preparing a log with latest snapshot binding

I am experiencing same problem even with repository binding…now

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 9:07pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/45 "2018-05-04T21:07:45Z")

</div>

i deleted everything.  
rebooting computer.  
reinstalling 2.3 snapshot  
putting your snapshot binding in addon folder  
launching start.bat  
opening [http://localhost:8080/start/index](http://localhost:8080/start/index)  
choosing simple Ui  
configuration\>system\>access remote repository OFF / autoignore ON/ autoapprove ON / simple mode linking ON \> SAVE  
Configuration\>thing + \>Serial Com choosed ONLINE

- seaching for things

Output: no thing found, but listed in configuration\>things as UNINITIALISED

AM I doing something wrong??

This is the log of YOUR latest SNAPSHOT binding.  
[openhab.log](https://forum.velbus.eu/uploads/default/original/2X/3/394f09966431a2c66f2f79c0f2e6999511ae742d.log) (901.3 KB)

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 4, 2018, 9:23pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/46 "2018-05-04T21:23:51Z")

</div>

Hi Ciceron,

I found the following line in the log file:  
java.lang.NoSuchMethodError: org.eclipse.smarthome.core.util.HexUtils.hexToBytes

Actually, the hexToBytes method is a method that has been added to the openHab snapshot version only a few weeks ago.  
The fact that the method cannot be found could indicate that you are not running on the latest snapshot version of openHab, either because you are running on the Stable version, or because your Snapshot version is from before the addition of the hexToBytes method.

If you are running on a raspberry pi, can you try to switch to the latest snapshot version using openhabian-config -\> openHAB related -\> openHAB unstable?

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 9:26pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/47 "2018-05-04T21:26:37Z")

</div>

hi i am running on windows  
where could i find latest snapshot, couldnt find latest  
i have 2.3.0 snapshot of 26/03/18.  
many thanks

solved:[https://openhab.ci.cloudbees.com/job/openHAB-Distribution/1271/](https://openhab.ci.cloudbees.com/job/openHAB-Distribution/1271/)  
though cloudbees was down

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 4, 2018, 9:33pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/48 "2018-05-04T21:33:26Z")

</div>

Ok, that explains it, the hexToBytes method has been added on 31/03/2018 🙂  
You can find the latest snapshot version on CloudBees:  
[https://openhab.ci.cloudbees.com/job/openHAB-Distribution/](https://openhab.ci.cloudbees.com/job/openHAB-Distribution/)

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 9:41pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/49 "2018-05-04T21:41:50Z")

</div>

reinstalled build 1971, binding in addon.  
I cannot see velbus binding?  
what should i do activate remote repository? install iot market?

I installed iot market, and installed from ADDON\>BINDIND\>binding-velbus - 2.3.0.SNAPSHOT

vMB1DM AND VMB2BL not working.

lof file :[openhab.log](https://forum.velbus.eu/uploads/default/original/2X/c/c4652e8a5f094be1d180d7bc7dea91df1a9c251c.log) (124.7 KB)

Nice packcets added to log!!!

I noticed when lamp at 100% real, slider is at 64%, and it takes like 5 min to aknowledge commande

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 4, 2018, 10:13pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/50 "2018-05-04T22:13:23Z")

</div>

for comparison here is a log from velserver, dimmer at 0% and 100%  
[PB\_Velbus-server\_2018-05-04\_23-09.log](https://forum.velbus.eu/uploads/default/original/2X/2/245fdfc7f00611663f478c66cd6a73541ba7fc50.log) (967 Bytes)

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 5, 2018, 8:16am UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/51 "2018-05-05T08:16:02Z")

</div>

Hi,

You shouldn’t install anything from the iot market, because the version from the iot market is still an old one.  
Just put the jar in the addons folder.

If you see the error “Unresolved requirement: Import-Package: [gnu.io](http://gnu.io)” in your log file, you can try entering “feature:install openhab-transport-serial” in the Openhab console. This should explicitely install the package that is currently missing…

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 5, 2018, 10:14am UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/52 "2018-05-05T10:14:16Z")

</div>

@Ciceron: with the logging I found a bug in the detection of the 1st gen vs 2nd gen device.  
Can you try this new version?  
`https://we.tl/FCXdYj1NwC`

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 5, 2018, 10:53am UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/53 "2018-05-05T10:53:59Z")

</div>

> [@cedricb](#):
>
> [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/FCXdYj1NwC)

Better behavior,

OFF : ok  
ON : not working

slider ok but doesnt reflect real %  
real 100% : 64% slider  
if you CLICK on slider : needs to press 2 times to get middle value (if you choose 13% or any other value it goes to 32 % and after 2nd push it takes the choosed %)

VMB2BL WORKS!!! cool  
and name modules are read!  
thank you cedric 😄

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 11, 2018, 11:05pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/54 "2018-05-11T23:05:57Z")

</div>

HELLO Cedric  
Any news concerning vmb1dm issue.  
How could i add vmb8pb and vmb6in as things?  
I see them but couldnt interact in any manner with those modules.  
Thanks

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 17, 2018, 4:12pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/55 "2018-05-17T16:12:19Z")

</div>

Any news?  
Thanks  
…

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 26, 2018, 6:21pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/56 "2018-05-26T18:21:52Z")

</div>

Any update Cedric  
Concerning the above?

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 26, 2018, 7:48pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/57 "2018-05-26T19:48:28Z")

</div>

Hi Ciceron,

Here is an updated version that should fix the slider behavior:  
[https://we.tl/fFjq594FSp](https://we.tl/fFjq594FSp)

Regarding the ON-command, can you check the Build number of your VMB1DM?  
The command that is used is available since Build 1006.

The VMB8PB and VMB6IN have “trigger-channels” that can be used in rules to make openHAB react to changes on these channels. (See [Rules - openHAB 2 - Empowering the Smart Home](https://docs.openhab.org/configuration/rules-dsl.html#channel-based-triggers))

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 28, 2018, 11:21am UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/58 "2018-05-28T11:21:45Z")

</div>

NEW binding not working:

slider stuck at 32% and no action ,  
ON not working

Build 702

thanks

---

<div class="post-metadata">

**Author:** ![Ciceron](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Ciceron](https://forum.velbus.eu/u/Ciceron)\
**Post date:** [May 28, 2018, 12:21pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/59 "2018-05-28T12:21:59Z")

</div>

The VMB8PB and VMB6IN triggers not detected.

---

<div class="post-metadata">

**Author:** ![cedricb](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cedricb](https://forum.velbus.eu/u/cedricb)\
**Post date:** [May 28, 2018, 8:52pm UTC](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992/60 "2018-05-28T20:52:30Z")

</div>

Hi Ciceron,

From your previous post I assumed the maximum dim value for the VMB1DM was 64, so what I did in this version is:

- When sending a packet using the following value as dim value: (slider percentage / 100) \* 64
- When receiving a dim status setting the slider at the following value: (dimValue /64) \* 100  
Any idea where it goes wrong?

The ON functionality wont work on build 702, as it requires at least build 1006.  
But once the slider is working, you can easily achieve +/- the same behavior by creating a virtual switch item and a rule that sets the dimmer value to the wanted ON-state (e.g. 100%).

What do you mean by the VMB8PB and VMBIN triggers not being detected?  
Do you see the trigger-channels in openHAB?  
Is there anything related to these channels in your log file?

[Previous page](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992.md?page=2)

[Next page](https://forum.velbus.eu/t/velbus-binding-for-openhab/14992.md?page=4)
