Support for Velbus Home Automation

the bug is in the python-velbus lib, i’m 100% sure about that :slight_smile:

Openhab2 = java so it uses a completely different lib

if you want i can have a look at your install?
if you can let me login i can try to debug the problem and i may find a good solution for everyone

i think i found a potential bug.

do you have a vmbgp1/2 or 4 in your install?

Dear Cereal2nd,

Thank you for your reply! So sorry, I didn’t seem to get notifications of your messages!
I actually just came back here to inform that I tried a clean install of 0.90.1, and only edited the configuration.yaml file with

velbus:
      port: '192.168.0.10:3788'

This resulted in more or less the same: entities don’t show up in lovelace yet (nor in the entities list), but the log shows it has trouble with a few modules.

I would have no problem letting you access that machine, it’s remotely accessible. I’ve sent you details via PM!

Sorry again,
best regards,
Ward

the PR was created today, so i hope that it will be included in the next version of HA/HASS

Dear Cereal2nd,
In this last version of Home Assistant I can’t get a connection. In the previous version everything worked correctly.
Is there any possibility of correcting this situation?
Best regards.
Rui Oliveira

Configuration.yaml in Raspberry Pi

velbus:
port: ‘/dev/ttyACM0’

Home Assistant
0.92.1

Log Details (ERROR)

Sun Apr 28 2019 10:46:05 GMT+0100 (Hora de verão da Europa Ocidental)
Error during setup of component velbus

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/setup.py”, line 153, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/velbus/init.py”, line 25, in async_setup
import velbus
File “/config/deps/lib/python3.7/site-packages/velbus/init.py”, line 158, in
from velbus.controller import Controller, VelbusConnection
File “/config/deps/lib/python3.7/site-packages/velbus/controller.py”, line 8, in
from velbus.connections.socket import SocketConnection
File “/config/deps/lib/python3.7/site-packages/velbus/connections/socket.py”, line 13, in
class SocketConnection(velbus.VelbusConnection):
AttributeError: module ‘velbus’ has no attribute ‘VelbusConnection’

it seems that there is a problem in the python-velbus package …

Good evening,

I followed your instructions exactly but it is still not working. Do you have any other suggestions?

Best regards,

Rui Oliveira

Log Details (ERROR)
Fri May 03 2019 09:51:15 GMT+0100 (GMT+01:00)
Error during setup of component velbus
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/setup.py”, line 153, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/velbus/init.py”, line 25, in async_setup
import velbus
File “/config/deps/lib/python3.7/site-packages/velbus/init.py”, line 158, in
from velbus.controller import VelbusConnection, Controller
File “/config/deps/lib/python3.7/site-packages/velbus/controller.py”, line 8, in
from velbus.connections.socket import SocketConnection
File “/config/deps/lib/python3.7/site-packages/velbus/connections/socket.py”, line 13, in
class SocketConnection(velbus.VelbusConnection):
AttributeError: module ‘velbus’ has no attribute ‘VelbusConnection’

With the 0.94 release all of these problems should be fixed.

I hope to get covers/blinds in before the 1.0 release

hello, i have the same problem as DRACO but i am on 0.94

Log Details (ERROR)
Sat Jun 08 2019 12:58:07 GMT+0200 (Central European Summer Time)
Error during setup of component velbus
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 153, in _async_setup_component
hass, processed_config)
File “/usr/src/homeassistant/homeassistant/components/velbus/init.py”, line 25, in async_setup
import velbus
File “/usr/local/lib/python3.7/site-packages/velbus/init.py”, line 158, in
from velbus.controller import Controller, VelbusConnection
File “/usr/local/lib/python3.7/site-packages/velbus/controller.py”, line 8, in
from velbus.connections.socket import SocketConnection
File “/usr/local/lib/python3.7/site-packages/velbus/connections/socket.py”, line 13, in
class SocketConnection(velbus.VelbusConnection):
AttributeError: module ‘velbus’ has no attribute ‘VelbusConnection’

how can i fix this?

thanks

Hello, problem on 0.94.1

Sat Jun 08 2019 15:19:04 GMT+0100 (Hora de verão da Europa Ocidental)
Error during setup of component velbus
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 153, in _async_setup_component
hass, processed_config)
File “/usr/src/homeassistant/homeassistant/components/velbus/init.py”, line 25, in async_setup
import velbus
File “/usr/local/lib/python3.7/site-packages/velbus/init.py”, line 158, in
from velbus.controller import Controller, VelbusConnection
File “/usr/local/lib/python3.7/site-packages/velbus/controller.py”, line 8, in
from velbus.connections.socket import SocketConnection
File “/usr/local/lib/python3.7/site-packages/velbus/connections/socket.py”, line 13, in
class SocketConnection(velbus.VelbusConnection):
AttributeError: module ‘velbus’ has no attribute ‘VelbusConnection’

Best regards,

it seems that the PR was just to late for 0.94 :frowning:

0.94 still uses the bad python-velbus 2.0.24 and this should be 2.0.26
so if you install the correct one it should work (as it does here)

Hi Cereal2nd,
I installed version 0.96.5 and as far as the Velbus covers are concerned, some modules are detected, others aren’t. The functions up and down are working properly. Stop doesn’t work and neither does the status of the covers (shutters and sunscreens).
Best regards
Rui Oliveira

Hi
I also have a problem discovering modules with velbus. Velbus does not detect any modules. But in the log he sees the modules.


I tried it with usb connection and the velserv but get the same results. I run the velserv on a raspberry with openHab where it does work. I don’t know why he doesn’t discover modules on Home Assistant.

Can anyone help me with this? thank you

There should be more in the log before this …

Hi Ceral2nd
I installed velbus for the first time 25 days ago with the help of Mdar and Cereal see link:
https://forum.velbus.eu/t/hoe-kan-ik-velbus-installeren-in-homeassisant/15850/13 I get this message ever since. Today home assistant restarted with version 0.97.2 with the following log
Naamloos-1
best regards
Yves

do you see any of your devices show up?

is there and error in the logs?
i doesn’t need to be a problem the unrecognized command thing, in most installs this ill be ok.

what module type is module 1 and 4?

hi Ceral2nd
these modules appear in the log:
module 1 = VMBGPOD
module 4 = VMBGP2
module 6 = VMBPIRC

these modules do not appear in the log:
VMB4RYNO, VMB4RYLD

I have now placed a velbus logger. with the following link you can view it:
log velbus

Best Regards
Yves

can you get me a full list of modules and there address?

and can you restart hass with debug log level enabled for the velbus component?

I have put this in the configurtion:


these components are used to date:
velbus