Hi,
I have installed a binding called te923 from github. It uses a shellscript to read data from my weather station which is connected to my raspbianpi via usb.
I can run the script manually via ssh, so I see that it works. But I have to run it as sudo.
In the openHAB paper UI, I have added the the binding and the thing successfully, but I cant read any data. The error message is the same that I see when I try to run the script without sudo
error: Unexpected answer from cmd command line: Error while setting configuration (-1). Error while setting configuration (-1). - Size is 1 and should be 22
So i am assuming that I somehow have to give openhab sudo rights? Or change the permissions on the shell script?
Let me add that I am not at all experienced with linux.
Thanks, this sounds like what I was searching for. Unfortunately it did not solve my problem.
edit: is it possible that “openhab” is not the right user? How would i find out?
You will probably need to grant openhab some permissions.
To give a specific group access to a USB device you have to add a rule to udev in /etc/udev/rules.d/. Add a file called CHOOSEANAME.rules that contains something like this line:
i have a Problem with TE923 on the Openhab2 Paper UI
Status: OFFLINE - CONFIGURATION_ERROR Unexpected answer from cmd command line: Error while setting configuration (-1). Error while setting configuration (-1). - Size is 1 and should be 22
Putty is ok
[21:09:49] openhabian@RaspberryPi:~$ sudo te923con
[sudo] password for openhabian:
1561318231:23.50:62:20.60:56:i:i:i:i:i:i:i:i:1019.1:i:5:0:3:0.0:0.0:21.1:2336