trying to get openhab 2 with this setup up and running:
Rasp3, openhabian, TUL
Installed knxd, installed the knx binding and changed config to this:
ip=224.0.23.12
type=TUNNEL / ROUTER --> both not working
port=3671
localIp=192.168.178.25
Then trying to switch a light:
knxtool groupswrite ip:192.168.178.25 0/0/5 1
but getting this error:
Open failed: Connection refused
I read so much now that I do not know what to do at all.
thanks for your answer. I belive you mean this:
KNXD_OPTIONS="–eibaddr=1.1.128 --client-addrs=1.1.129:8 -d -D -T -R -S -i --listen-local=/tmp/knx -b tpuarts:/dev/ttyAMA0"
I wanted to try out also tpuarts:/dev/ttyS0" but openhabian user has no rights to change this.
This is not a good sign… in theory, you should see something like:
Possible addresses for KNX USB devices:
device: 1:7:1:0:0 (ABB STOTZ-KONTAKT GmbH:KNX-USB Interface (MDRC))
Try:
lsusb
and post the output.
(I don’t use knxd and this forum is for openHAB but I will try to help… you could also search the knxd forums to see if you can find the solution there)
[18:32:21] openhabian@openHABianPi:~$ sudo su
[sudo] password for openhabian:
[18:33:49] root@openHABianPi:/home/openhabian# findknxusb
Possible addresses for KNX USB devices:
[18:34:04] root@openHABianPi:/home/openhabian# lsusb
Bus 001 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[18:34:15] root@openHABianPi:/home/openhabian#
[18:32:21] openhabian@openHABianPi:~$ sudo su
[sudo] password for openhabian:
[18:33:49] root@openHABianPi:/home/openhabian# findknxusb
Possible addresses for KNX USB devices:
[18:34:04] root@openHABianPi:/home/openhabian# lsusb
Bus 001 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[18:34:15] root@openHABianPi:/home/openhabian#
On a sidenote: that’s nonsense, either su or sudo bash or sudo <command>.
Dunno if it relates to your problem, but you should do su - to ensure environment is also set to be that of the root user.