I also have configured and put in place the KNX_CONFIG.JSON file (I can see all the KNX objects in the homekit without communications on the bus).
Of which device is the IP In the first line of Json file " knxd_ip | "192.168.1.6" ? of the KNX/IP router? of the RB pi?
I am working on 1.0.X area/sector on ETS 5
Thanks a lot for your big help!
Marco
KNXD_OPTS="-e 1.0.50 -E 1.0.51:18 -u /tmp/eib -b ip:192.168.1.60”
systemctl status knxd.service
and this is what I obtain:
● knxd.service - KNX Daemon
Loaded: loaded (/lib/systemd/system/knxd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2018-10-29 21:32:37 CET; 2s ago
Process: 18110 ExecStart=/usr/bin/knxd $KNXD_OPTS (code=exited, status=2)
Main PID: 18110 (code=exited, status=2)
Oct 29 21:32:37 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Oct 29 21:32:37 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
I think I am very near to the solution, because i can see all the KNX devices in my HOME app.. I just think the KNXD Daemon is corrupted/badly configured..
This is how the Ekinex EK-BC1-TP interface is configured in ETS5
Ekinex interface configuration:
● knxd.service - KNX Daemon
Loaded: loaded (/lib/systemd/system/knxd.service; enabled; vendor preset: ena
Active: activating (auto-restart) (Result: exit-code) since Wed 2018-10-31 19
Process: 747 ExecStart=/usr/bin/knxd $KNXD_OPTS (code=exited, status=2)
Main PID: 747 (code=exited, status=2)
Oct 31 19:51:44 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Oct 31 19:51:44 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-c
lines 1-8/8 (END)
What's wrong?
No idea. Please retrieve error messages with "journalctl -u knxd -n20 --no-pager", your output has been cut off.
Also you might want to add "-f9 -t1022" to the beginning of your
argument list, for more debug info.
-- -- Matthias Urlichs
pi@raspberrypi:~ $ journalctl -u knxd -n20 --no-pager
-- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Thu 2018-11-01 21:17:26 CET. --
Nov 01 21:17:11 raspberrypi systemd[1]: ': /etc/knxd.conf
Nov 01 21:17:11 raspberrypi systemd[1]: Starting KNX Daemon...
Nov 01 21:17:11 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 21:17:11 raspberrypi systemd[1]: Failed to start KNX Daemon.
Nov 01 21:17:11 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Nov 01 21:17:11 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Service hold-off time over, scheduling restart.
Nov 01 21:17:21 raspberrypi systemd[1]: Stopped KNX Daemon.
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Ignoring invalid environment assignment 'KNXD_OPTS=-e 1.0.50 -E 1.0.51:8 -u /tmp/eib -b ip:192.168.1.60”
Nov 01 21:17:21 raspberrypi systemd[1]: # configuration for knxd.service using new configuration format in /etc/knxd.ini
Nov 01 21:17:21 raspberrypi systemd[1]: # use only this line if you used knxd_args to convert your old startup options
Nov 01 21:17:21 raspberrypi systemd[1]: # KNXD_OPTS=/etc/knxd.ini
Nov 01 21:17:21 raspberrypi systemd[1]: # The default options are -u /tmp/eib -b ip:"': /etc/knxd.conf
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Ignoring invalid environment assignment 'KNXD_OPTS=-e 1.0.50 -E 1.0.51:18 -u /tmp/eib -b ip:”
Nov 01 21:17:21 raspberrypi systemd[1]: ': /etc/knxd.conf
Nov 01 21:17:21 raspberrypi systemd[1]: Starting KNX Daemon...
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 21:17:21 raspberrypi systemd[1]: Failed to start KNX Daemon.
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
Nov 01 21:17:21 raspberrypi systemd[1]: knxd.service: Ignoring invalid environment assignment 'KNXD_OPTS=-e 1.0.50 -E 1.0.51:8 -u /tmp/eib -b ip:192.168.1.60”
*Sigh* You might want to fix the quoting on that line.
-- -- Matthias Urlichs
pi@raspberrypi:~ $ journalctl -u knxd -n20 --no-pager
-- Logs begin at Thu 2018-11-01 22:32:47 CET, end at Thu 2018-11-01 22:35:06 CET. --
Nov 01 22:34:42 raspberrypi systemd[1]: Stopped KNX Daemon.
Nov 01 22:34:42 raspberrypi systemd[1]: Starting KNX Daemon...
Nov 01 22:34:42 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 22:34:42 raspberrypi systemd[1]: Failed to start KNX Daemon.
Nov 01 22:34:42 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Nov 01 22:34:42 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
Nov 01 22:34:52 raspberrypi systemd[1]: knxd.service: Service hold-off time over, scheduling restart.
Nov 01 22:34:52 raspberrypi systemd[1]: Stopped KNX Daemon.
Nov 01 22:34:52 raspberrypi systemd[1]: Starting KNX Daemon...
Nov 01 22:34:52 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 22:34:52 raspberrypi systemd[1]: Failed to start KNX Daemon.
Nov 01 22:34:52 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Nov 01 22:34:52 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
Nov 01 22:35:03 raspberrypi systemd[1]: knxd.service: Service hold-off time over, scheduling restart.
Nov 01 22:35:03 raspberrypi systemd[1]: Stopped KNX Daemon.
Nov 01 22:35:03 raspberrypi systemd[1]: Starting KNX Daemon...
Nov 01 22:35:03 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 22:35:03 raspberrypi systemd[1]: Failed to start KNX Daemon.
Nov 01 22:35:03 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
Nov 01 22:35:03 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.
# configuration for knxd.service
KNXD_OPTS="-e 1.0.50 -E 1.0.51:18 -u /tmp/eib -b ip:”
# configuration for knxd.service using new configuration format in /etc/knxd.ini
# use only this line if you used knxd_args to convert your old startup options
# KNXD_OPTS=/etc/knxd.ini
# The default options are "-u /tmp/eib -b ip:"
# which tell knxd to route between all of
# /tmp/eib (legacy socket (-u))
# multicast client (-b ip:).
# knxd's own bus address is 0.0.1; it will assign 0.0.2…0.0.9 to clients.
# The knxd.socket file also tells knxd to listen to
# /run/eib (socket activation via systemd)
# TCP port 6720 (socket activation via systemd)
# You *need* the -e option. Clients cannot connect without "-E".
# You can read knxd's logs with
# $ journalctl -u knxd --since "10 min ago"
# (or whatever). See the manpage for details.
# You need to be a member of the "adm" group.
# Add "-f9 -t1023" to the beginning of the command line for extensive logging.
# *** DO NOT use "-u" / "-u /run/knx" or "-i" / "-i 6720" here.
# Systemd already does that on behalf of knxd, via 'knx.socket'.
# *** DO NOT use both "-RS" and "-b ip:" (unless you specify a
# different multicast address on one of them). You'd create a loop.
# If you have KNX hardware on a serial port or USB, add the appropriate
# "-b TYPE:…" option. In this case, you probably want to set up a multicast
# server, not a client (i.e. use "-D -T -R -S", not "-b ip:").
# DO NOT use both.
#
# If your KNX hardware is a KNX/IP gateway that doesn't do multicast,
# use "-b ipt:192.168.1.2" (or its DNS name) to talk to it.
#
# KNX MUST NOT have more than one path between any two devices. Thus,
# you need to make sure that the KNX/IP gateway does not route multicast
# before you use both "-S" and "-b ipt:".