Hallo zusammen,
ich habe eine frische OpenHab Installation (auf Banana Pi via apt-get) und diese mit dem KNX-Binding an den Bus angebunden.
Ein Test-Schaltvorgang über HABPanel funktioniert - die Gruppenadresse wird nur zweimal gesendet. Ich sehe im OpenHab Logfile und im Gruppenmonitor immer zwei Einträge für einen Befehl.
Bereits beim Speichern der Items-Datei (Licht.items) erhalte ich zwei Einträge in der Logdatei:
[Dir Watcher] 2017-09-17 20:53:58.542 [INFO ] [el.core.internal.ModelRepositoryImpl]:130 - Refreshing model 'Licht.items'
[Dir Watcher] 2017-09-17 20:53:58.687 [INFO ] [el.core.internal.ModelRepositoryImpl]:130 - Refreshing model 'Licht.items'
Ich habe die Logausabe um den Thread-Name (in diesem Fall Dir Watcher) und die Zeilennummer (hier: 130) erweitert. Der gleiche Thread erkennt die Änderung kurz nacheinander - das macht mich schonmal misstrauisch.
Wenn ich dann den Switch im HABPanel drücke, werden folgende Logausgaben erzeugt:
[Log dispatcher] 2017-09-17 20:56:13.902 [INFO ] [tuwien.auto.calimero ]:51 - calimero.link.192.168.178.102:3671: send message to 0/0/8, wait for confirmation
[EventAdminThread #1] 2017-09-17 20:56:13.914 [DEBUG] [.binding.knx.internal.bus.KNXBinding]:150 - Wrote value 'OFF' to datapoint 'command DP 0/0/8 LIC_AZ_L15_1, DPT main 0 id 1.001, low priority'
[Log dispatcher] 2017-09-17 20:56:13.950 [INFO ] [tuwien.auto.calimero ]:51 - calimero.link.192.168.178.102:3671: send message to 0/0/8, wait for confirmation
[EventAdminThread #3] 2017-09-17 20:56:13.955 [DEBUG] [.binding.knx.internal.bus.KNXBinding]:150 - Wrote value 'OFF' to datapoint 'command DP 0/0/8 LIC_AZ_L15_1, DPT main 0 id 1.001, low priority'
Im Gruppenmonitor sehe ich folgendes:
Wer kann mir weiterhelfen?
Anbei meine Konfiguration:
OpenHab2 Version: 4.0.8
KNX-Bindiung: 1.10
/etc/openhab2/services/knx.cfg
# KNX gateway IP address
# (optional, if serialPort or connection type 'ROUTER' is specified)
ip=192.168.178.102
# Local KNX Binding bus address.
# Use it, when two or more openHAB Instances are connected to the same KNX bus.
# (optional, defaults to 0.0.0)
busaddr=15.10.1
# Ignore local KNX Events, prevents internal events coming from
# 'openHAB event bus' a second time to be sent back to the 'openHAB event bus'.
# Note: To send back events second time is a Bug, but for backward compatibility, the behavior is not changed.
# For new installations, its recommend to set "ignorelocalevents=true"
# (optional, defaults to false)
ignorelocalevents=true
# KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
# Note: If you cannot get the ROUTER mode working (even if it claims it is connected),
# use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
type=TUNNEL
# KNX gateway port (optional, defaults to 3671)
# Note: If you use eibd, setting to 6720
#port=
# Local endpoint to specify the multicast interface, no port is used (optional)
localIp=192.168.178.115
/etc/openhab2/items/Licht.items
Switch LIC_AZ_L15_1 "Licht Arbeitszimmer" (EG_AZ) { knx="0/0/8" }
Switch LIC_FL0_L15_1 "Licht Kellerflur" (FL0) { knx="0/0/20" }
Danke für eure Hilfe!
Gruß,
Martin
ich habe eine frische OpenHab Installation (auf Banana Pi via apt-get) und diese mit dem KNX-Binding an den Bus angebunden.
Ein Test-Schaltvorgang über HABPanel funktioniert - die Gruppenadresse wird nur zweimal gesendet. Ich sehe im OpenHab Logfile und im Gruppenmonitor immer zwei Einträge für einen Befehl.
Bereits beim Speichern der Items-Datei (Licht.items) erhalte ich zwei Einträge in der Logdatei:
[Dir Watcher] 2017-09-17 20:53:58.542 [INFO ] [el.core.internal.ModelRepositoryImpl]:130 - Refreshing model 'Licht.items'
[Dir Watcher] 2017-09-17 20:53:58.687 [INFO ] [el.core.internal.ModelRepositoryImpl]:130 - Refreshing model 'Licht.items'
Ich habe die Logausabe um den Thread-Name (in diesem Fall Dir Watcher) und die Zeilennummer (hier: 130) erweitert. Der gleiche Thread erkennt die Änderung kurz nacheinander - das macht mich schonmal misstrauisch.
Wenn ich dann den Switch im HABPanel drücke, werden folgende Logausgaben erzeugt:
[Log dispatcher] 2017-09-17 20:56:13.902 [INFO ] [tuwien.auto.calimero ]:51 - calimero.link.192.168.178.102:3671: send message to 0/0/8, wait for confirmation
[EventAdminThread #1] 2017-09-17 20:56:13.914 [DEBUG] [.binding.knx.internal.bus.KNXBinding]:150 - Wrote value 'OFF' to datapoint 'command DP 0/0/8 LIC_AZ_L15_1, DPT main 0 id 1.001, low priority'
[Log dispatcher] 2017-09-17 20:56:13.950 [INFO ] [tuwien.auto.calimero ]:51 - calimero.link.192.168.178.102:3671: send message to 0/0/8, wait for confirmation
[EventAdminThread #3] 2017-09-17 20:56:13.955 [DEBUG] [.binding.knx.internal.bus.KNXBinding]:150 - Wrote value 'OFF' to datapoint 'command DP 0/0/8 LIC_AZ_L15_1, DPT main 0 id 1.001, low priority'
Im Gruppenmonitor sehe ich folgendes:
# | Zeit | Dienst | Flags | Prio | Quell-Adresse | Quell-Name | Ziel-Adresse | Ziel-Name | Rout | Typ | DPT | Info |
3139 | 17.09.2017 20:56:13,953 | vom Bus | Niedrig | 15.10.1 | - | 0/0/8 | LIC_AZ_L15_1 schalten | 6 | GroupValueWrite | 1.001 Schalten | $00 | Aus | |
3140 | 17.09.2017 20:56:14,002 | vom Bus | Niedrig | 15.10.1 | - | 0/0/8 | LIC_AZ_L15_1 schalten | 6 | GroupValueWrite | 1.001 Schalten | $00 | Aus |
Wer kann mir weiterhelfen?
Anbei meine Konfiguration:
OpenHab2 Version: 4.0.8
KNX-Bindiung: 1.10
/etc/openhab2/services/knx.cfg
# KNX gateway IP address
# (optional, if serialPort or connection type 'ROUTER' is specified)
ip=192.168.178.102
# Local KNX Binding bus address.
# Use it, when two or more openHAB Instances are connected to the same KNX bus.
# (optional, defaults to 0.0.0)
busaddr=15.10.1
# Ignore local KNX Events, prevents internal events coming from
# 'openHAB event bus' a second time to be sent back to the 'openHAB event bus'.
# Note: To send back events second time is a Bug, but for backward compatibility, the behavior is not changed.
# For new installations, its recommend to set "ignorelocalevents=true"
# (optional, defaults to false)
ignorelocalevents=true
# KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
# Note: If you cannot get the ROUTER mode working (even if it claims it is connected),
# use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
type=TUNNEL
# KNX gateway port (optional, defaults to 3671)
# Note: If you use eibd, setting to 6720
#port=
# Local endpoint to specify the multicast interface, no port is used (optional)
localIp=192.168.178.115
/etc/openhab2/items/Licht.items
Switch LIC_AZ_L15_1 "Licht Arbeitszimmer" (EG_AZ) { knx="0/0/8" }
Switch LIC_FL0_L15_1 "Licht Kellerflur" (FL0) { knx="0/0/20" }
Danke für eure Hilfe!
Gruß,
Martin
Kommentar