Hallo zusammen,
ich habe mittlerweile openhab auf einem Igel laufen und möchte mehrere Hardware-Buttons (Klingel, potentialfreie Ports an unserem Passivhaus-Kompaktgerät usw.) mittels SerialBinding einbinden.
Da mir zwei Ports nicht reichen, habe ich den Igel mit einer Stallion EasyIO-4 (4 ports) aufgerüstet.
Serial HOWTO
Die Serial-Devices wurden auch korrekt erkannt und angelegt:
root@igel:/srv/openhab/logs# ls /dev/ttyE* -al
crw-rw---- 1 root dialout 24, 0 20. Mär 22:58 /dev/ttyE0
crw-rw---- 1 root dialout 24, 1 24. Nov 11:17 /dev/ttyE1
crw-rw---- 1 root dialout 24, 2 24. Nov 11:17 /dev/ttyE2
crw-rw---- 1 root dialout 24, 3 24. Nov 11:17 /dev/ttyE3
Mittels minicom kann ich mich auch auf das Device /dev/ttyE0 verbinden
und sehe Signale meines Klingelknopfes.
Entsprechende Bindings habe ich testweise in meine Itelm-Datei eingefügt:
Switch Klingel0 "Bell0" (Haustechnik) { serial="/dev/ttyE0" }
Switch Klingel1 "Bell1" (Haustechnik) { serial="/dev/ttyE1" }
Switch Klingel2 "Bell2" (Haustechnik) { serial="/dev/ttyE2" }
Switch Klingel3 "Bell3" (Haustechnik) { serial="/dev/ttyE3" }
Das ganze leider mit folgendem Ergebnis:
root@igel:/srv/openhab/logs# grep ttyE openhab.log -A3
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE0: Serial port '/dev/ttyE0' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE1: Serial port '/dev/ttyE1' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE2: Serial port '/dev/ttyE2' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE3: Serial port '/dev/ttyE3' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
Hat jemand eine Idee, warum openhab die Devices ttyE* nicht erkennt? Mache ich etwas falsch?
Über eine Lösung würde ich mich sehr freuen.
Herzliche Grüße!
-Boris
ich habe mittlerweile openhab auf einem Igel laufen und möchte mehrere Hardware-Buttons (Klingel, potentialfreie Ports an unserem Passivhaus-Kompaktgerät usw.) mittels SerialBinding einbinden.
Da mir zwei Ports nicht reichen, habe ich den Igel mit einer Stallion EasyIO-4 (4 ports) aufgerüstet.
Serial HOWTO
Die Serial-Devices wurden auch korrekt erkannt und angelegt:
root@igel:/srv/openhab/logs# ls /dev/ttyE* -al
crw-rw---- 1 root dialout 24, 0 20. Mär 22:58 /dev/ttyE0
crw-rw---- 1 root dialout 24, 1 24. Nov 11:17 /dev/ttyE1
crw-rw---- 1 root dialout 24, 2 24. Nov 11:17 /dev/ttyE2
crw-rw---- 1 root dialout 24, 3 24. Nov 11:17 /dev/ttyE3
Mittels minicom kann ich mich auch auf das Device /dev/ttyE0 verbinden
und sehe Signale meines Klingelknopfes.
Entsprechende Bindings habe ich testweise in meine Itelm-Datei eingefügt:
Switch Klingel0 "Bell0" (Haustechnik) { serial="/dev/ttyE0" }
Switch Klingel1 "Bell1" (Haustechnik) { serial="/dev/ttyE1" }
Switch Klingel2 "Bell2" (Haustechnik) { serial="/dev/ttyE2" }
Switch Klingel3 "Bell3" (Haustechnik) { serial="/dev/ttyE3" }
Das ganze leider mit folgendem Ergebnis:
root@igel:/srv/openhab/logs# grep ttyE openhab.log -A3
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE0: Serial port '/dev/ttyE0' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE1: Serial port '/dev/ttyE1' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE2: Serial port '/dev/ttyE2' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
--
org.openhab.model.item.binding.BindingConfigParseE xception: Could not open serial port /dev/ttyE3: Serial port '/dev/ttyE3' could not be found. Available ports are:
/dev/ttyUSB0
/dev/ttyS1
/dev/ttyS0
Hat jemand eine Idee, warum openhab die Devices ttyE* nicht erkennt? Mache ich etwas falsch?
Über eine Lösung würde ich mich sehr freuen.
Herzliche Grüße!
-Boris
Kommentar