Bridging Velbus with TCP through snap package

Oh no no no

I think you’re confusing me with someone with some coding skills.

I see my pull was committed - any idea on when the snap package will be updated? the channel still shows the 1.4.1 only… (dated 2021-08-20 / 2021-08-20)

or is there another way to test this?

Correct, the snap package was not yet built due to a missing git tag, it is now available.

2 Likes

tested it … but still no receiving of commands through serial

image

happy to debug jointly if required

I think you may need to check snap logs velbus-tcp to see if any errors are listed there. Otherwise it may be easier to just use the python-velbustcp library to do further tests. Since velbus-tcp-snap is just a wrapper around the python code to build the library as a Ubuntu snap.

I rebooted my machine - and now Velbus won’t start – this probably happened after an update of the operating system -

logs indicate:
velbus-tcp.velbus-tcp[3502]: cannot perform operation: mount --bind /snap/core18/current/etc/nsswitch.conf /tmp/snap.rootfs_dVmC9V/etc/nsswitch.conf: Permission denied

Can you post this on the GitHub project issues page please.

I had a situation where I updated the Kernel in Debian Buster and the whole Snap environment failed.

There’s was absolutely nothing I could do to resolve it.

The only solution was to flash Debian Bullseye to the machine and start again.

(All back up and running within 30 minutes)

For the time being, you can use @jeroends VelServ application
This 100% works

(More information on this — How-To : Install and Run VelServ - a Velbus TCP Gateway - #21 by MDAR )

Just remove the Snap environment and install VelServ

apt remove snapd

wget http://www.mdar.co.uk/dl/velbus/velbus-tcp.sh to download a simple setup script

Run it using

sudo sh velbus-tcp.sh

Port 6000 will then be your Velbus connection.

1 Like

This doesn’t quite look like an issue with the software we provide through the snap system. I’d suggest getting help through the snapcraft forums.

1 Like

Hmm. i don’t know what version of linux is on my NUC. i did a few years ago a Home assistant install with i think a linux distribution

i tried to put the snap install command from the terminal (but maybe i must first change to another directory) snap is not reckognised.

You can find out which Debian version you have with this command

lsb_release -a

Which I found on this webpage after a quick Google search

https://unix.stackexchange.com/questions/177205/how-do-i-know-which-version-of-debian-im-running

It’s very possible that you simply don’t have the Snap environment installed… Yet

apt list --installed | grep snap

Again, found after a quick Google search

https://superuser.com/questions/1754310/linux-debian-how-to-find-out-if-a-package-has-been-installed-via-package-manage

If snap isn’t installed, you can add it with this command

apt install snap

If… You don’t want the extra Snap environment software, you can use VelServ instead. (Which is C++ based)

too bad it seems the command line is a util of HA, not from the linux. And i dit: ha network info
Then i seems there is indeed a docker, there is the common adres what i use on a browser with 192.168… but also a range (i think for the docker) from 172…

the Ha Os i got is:

Generic x86-64

Have you tried looking for hints with a search engine?

https://www.google.com/search?q=homeassistant+ssh+password

yup, everything i tried > connection refused.

I just have made an extra backup. I think i must made a new HA, (i can not re install as i needed the lights every day)