Home Assistant

Hi

Thanks for the offer to help.

I’ve tried to follow the instructions, but the best I can get is notes in the output saying that “unrecognised messages received”.

Which is okay, because I see the same messages in OpenRemote.
It just means that a packet has come in which isn’t recognised, but it has been received.

So, I’m happy to say that by removing the apostrophes from the tty address, I’ve got a live connection to my Velbus model.

velbus:
  port: '/dev/ttyACM0'

Didn’t work on my Ubuntu machine, but this does :

velbus:
  port: /dev/ttyACM0

So the next issue is getting anything to work in the UI.

If I add this text, I get a single slide switch in the UI.

But if I try to operate it,
It slides to ON.

Waits a few seconds, then slides to off again.

(I can’t get the switch to work in any way)

#Velbus components

#switch:
#        - platform: velbus
#         devices:
#         - name: Switch
#           type: single
#           module: 0x74
#           channel: 5


light:
         - platform: velbus
           devices:
           - name: light
             module: 0xba
             channel: 4

There is a bit of red text that I see in the screen output in Ubuntu, which is shown in this screen grab.

Something about dependencies not being met.
(Screenshot in the zip)

The attached zip file contains the VLP file that is the current configuration of my model / development unit, please feel free to use any of the data in it to configure something to get a working example.

Many thanks,

Stuart

P.S.

There’s no rush :wink:

http://www.mdar.eu/dl/forum_assets/HA-Velbus-MDAR.zip

Hello Thomas and MDAR,

whatever I try to get the VMB1USB interface to work with Home Assistant on a Raspberry Pi 3 it does not work.

I have tried to change the entry of the configuration.yaml file several times, see below:

velbus:
** port: ‘/dev/ttyUSB00’**

to

velbus:
** port: /dev/ttyUSB00**

but also to

velbus:
** port: ‘/dev/ttyACM0’**

and also this one

velbus:
** port: /dev/ttyACM0**

It does NOT work

Here is my latest output of /config/home-assistant.log

2017-10-16 20:45:51 ERROR (SyncWorker_4) [velbus] Could not open serial port, no messages are read or written to the bus
2017-10-16 20:45:51 ERROR (MainThread) [homeassistant.setup] Error during setup of component velbus
Traceback (most recent call last):
** File “/usr/lib/python3.6/site-packages/serial/serialposix.py”, line 244, in open**
** self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)**
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB00’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
** File “/usr/lib/python3.6/site-packages/velbus/connections/init.py”, line 60, in init**
** rtscts=self.RTSCTS)**
** File “/usr/lib/python3.6/site-packages/serial/serialutil.py”, line 182, in init**
** self.open()**
** File “/usr/lib/python3.6/site-packages/serial/serialposix.py”, line 247, in open**
** raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))**
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB00: [Errno 2] No such file or directory: '/dev/ttyUSB00’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
** File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 194, in _async_setup_component**
** component.setup, hass, processed_config)**
** File “/usr/lib/python3.6/asyncio/futures.py”, line 331, in iter**
** yield self # This tells Task to wait for completion.**
** File “/usr/lib/python3.6/asyncio/tasks.py”, line 244, in _wakeup**
** future.result()**
** File “/usr/lib/python3.6/asyncio/futures.py”, line 244, in result**
** raise self._exception**
** File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 55, in run**
** result = self.fn(self.args, self.kwargs)
** File “/usr/lib/python3.6/site-packages/homeassistant/components/velbus.py”, line 33, in setup
*
** connection = velbus.VelbusUSBConnection(port)**
** File “/usr/lib/python3.6/site-packages/velbus/connections/init.py”, line 64, in init**
** raise VelbusException(“Could not open serial port”)**
velbus.connections.VelbusException: 'Could not open serial port’
2017-10-16 20:45:55 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-10-16 20:45:57 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2017-10-16 20:46:21 WARNING (SyncWorker_13) [netdisco.ssdp] Error fetching description at http://192.168.1.65:40000/device_description

Can you please help me to get this to work?

Thnak you,
GiGi

seems you’re pointing to a non-existing device; check the name of your device : to see your devices enter following in a shell:
ls /dev/tty*
or check with
sudo dmesg
the last lines for the name just after you connected the usb device.

Dimming would be great. Are you going to develop more on velbus integration in Home Assistant?

1 Like

I’m going to write documentation for python-velbus library so it becomes easier to understand how to integrate support for other modules.

I don’t have dimmers myself so can’t write support for them.

in the last couple of weeks thomas and i optimized the velbus integration for HomeAssistant.

The system now does autodiscovery of all the (known) modules, currently it supports the relay modules, the vmb*pbn, vm6in, vmb7in (input only) and the glasspanels (input + temperature only)

I’m currently working on adding more modules:

  • vmb1ts
  • vmbpir
  • blind modules

Try openhabian on Rpi and google home.
So far it’s the best i have tested.
Does absolutely everything!

1 Like

Fantastic! Thanks for this, this will mean true integration.

I am struggling since the update of HA to 0.76 and newer:
How do you add Velbus?

The syntax for adding the component which works in .69 doesn’t seem to work anymore, I’m not sure what I’m overlooking. The release notes state that the component should still be added, but that modules will be discovered automatically. When not changing the configuration.yaml while upgrading, I suddenly get the error that the component could not be successfully added.

What could be the reason for this? Any clues on how to solve? In the meantime I’ve downgraded to 0.69 until further notice.

TIA

Ward

HA standing for home assistant?
i am talking about openhab…

Hi Ciceron,
I would like to stick with Home Assistant, however I have no clue how to use the great work by cereal in the newer versions of it.
Best regards

it is easy, give it a try, you wont regret. follow youtube tutorial and ask…

in the latest version you just have to add this to you HA config (homeassistant)

velbus:
port: ‘127.0.0.1:3788’

switch:

  • platform: velbus

binary_sensor:

  • platform: velbus

sensor:

  • platform: velbus

port can be a ip:port format or a linux device.

When thats there and you start HA all devices will be auto-discoverd

1 Like

Dear cereal,
Thank you so much for your answer!
However…
When adding this:
velbus:
port: ‘/dev/ttyACM0’
switch:

  • platform: velbus
    binary_sensor:
  • platform: velbus

I get this error message:
image

When checking out the available hardware, the ACM one disappears if I disconnect the velbus USB to serial module.
image

I’m really stuck :slight_smile:

When researching, I found this article, containing a path to the velbus component:

I can’t seem to find any of the 3 locations mentioned in that debug message.
Could the velbus folder be missing in v0.77?

Once it is solved I would be happy to update and submit the documentation page :slight_smile:

HI Cereal, this didn’t work. Can you help me out?
I’m sure we’re not far off, and then I would have all that lovely functionality.

this is all you need currently, all other info is auto-detected …

Dear Cereal,

Thank you for your answer.
However, in 0.77 it did not work, updating to 0.78 solved it.
So there was a bug :slight_smile:
Thanks again!

0.82 will have velbus thermostat support

next up are the blinds, but this is a bit more tricky to implement as i don’t own these modules …

so there was a bug in 0.77, need to check this out then

cool so version 0.82 will have the thermostat function? Been waiting for ages for that :wink: thanks man