Hallo Zusammen,
ich bin absoluter FHEM Neuling. Habe es parallel auf meinen Raspberry Pi mit IO Broker am Laufen.
Die Installation von Python3, das speichern des Skripts, sowie das Anlegen des Dummys in FHEM
habe ich auch hinbekommen.
Wenn ich nun aber über Telnet das Skript starte kommen folgende Fehler:
Tut mir leid, dass ich euch damit belästige, komme aber einfach nicht weiter...
/opt/fhem/scripts/ccfhem.py
Socket opened: localhost listen to 7077
localhost
7072
Bridge found: 00000000000d10128001144fd71e070d (192.168.178.7)
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08032001 0801
type: StartSessionRequestType
reference: 1
takeover: true
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 083510002001
type: StartSessionConfirmType
result: OK
reference: 1
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08652002
type: KeepAliveType
reference: 2
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262003 08c00110011802
type: CnRpdoRequestType
reference: 3
pdid: 192
zone: 1
type: 2
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0820 0801100118012002
type: CnNodeNotificationType
nodeId: 1
productId: 1
zoneId: 1
mode: NODE_NORMAL
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0820 080d100518ff012002
type: CnNodeNotificationType
nodeId: 13
productId: 5
zoneId: 255
mode: NODE_NORMAL
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002003
type: CnRpdoConfirmType
result: OK
reference: 3
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262004 084110011801
type: CnRpdoRequestType
reference: 4
pdid: 65
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002004
type: CnRpdoConfirmType
result: OK
reference: 4
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262005 08a20210011801
type: CnRpdoRequestType
reference: 5
pdid: 290
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002005
type: CnRpdoConfirmType
result: OK
reference: 5
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262006 08a30210011801
type: CnRpdoRequestType
reference: 6
pdid: 291
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002006
type: CnRpdoConfirmType
result: OK
reference: 6
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262007 08a40210011801
type: CnRpdoRequestType
reference: 7
pdid: 292
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002007
type: CnRpdoConfirmType
result: OK
reference: 7
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262008 08a60210011801
type: CnRpdoRequestType
reference: 8
pdid: 294
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002008
type: CnRpdoConfirmType
result: OK
reference: 8
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262009 08e30110011801
type: CnRpdoRequestType
reference: 9
pdid: 227
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002009
type: CnRpdoConfirmType
result: OK
reference: 9
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0826200a 083110011801
type: CnRpdoRequestType
reference: 10
pdid: 49
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 08271000200a
type: CnRpdoConfirmType
result: OK
reference: 10
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0826200b 08920210011806
type: CnRpdoRequestType
reference: 11
pdid: 274
zone: 1
type: 6
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 08271000200b
type: CnRpdoConfirmType
result: OK
reference: 11
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0826200c 08930210011806
type: CnRpdoRequestType
reference: 12
pdid: 275
zone: 1
type: 6
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0828 08c00112023d00
type: CnRpdoNotificationType
pdid: 192
data: "=\000"
192 = 61
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0828 0841120102
type: CnRpdoNotificationType
pdid: 65
data: "\002"
65 = 2
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 08271000200c
type: CnRpdoConfirmType
result: OK
reference: 12
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0826200d 08940210011806
type: CnRpdoRequestType
reference: 13
pdid: 276
zone: 1
type: 6
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 08271000200d
type: CnRpdoConfirmType
result: OK
reference: 13
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0826200e 08dd0110011806
type: CnRpdoRequestType
reference: 14
pdid: 221
zone: 1
type: 6
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 08271000200e
type: CnRpdoConfirmType
result: OK
reference: 14
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 0805200f
type: ListRegisteredAppsRequestType
reference: 15
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0837200f 0a240a100967118d4f8f42f1bef58de381a83c7012106950686f6e6520766f6e204a6f7365660a1f0a10cd11975849c24c73b29712c0854c76dd120b4a6f7365667320695061640a180a100000000000000000000000000000001012044648454d
type: ListRegisteredAppsConfirmType
reference: 15
apps {
uuid: "\tg\021\215O\217B\361\276\365\215\343\201\250<p"
devicename: "iPhone von Josef"
}
apps {
uuid: "\315\021\227XI\302Ls\262\227\022\300\205Lv\335"
devicename: "Josefs iPad"
}
apps {
uuid: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020"
devicename: "FHEM"
}
Traceback (most recent call last):
File "/opt/fhem/scripts/ccfhem.py", line 313, in <module>
main()
File "/opt/fhem/scripts/ccfhem.py", line 260, in main
setreading('registeredDevices', devices)
File "/opt/fhem/scripts/ccfhem.py", line 163, in setreading
fhemsend(cmd)
File "/opt/fhem/scripts/ccfhem.py", line 150, in fhemsend
fhem.send(msg.encode('ascii'))
BrokenPipeError: [Errno 32] Broken pipe
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0828 08a30212013f
type: CnRpdoNotificationType
pdid: 291
data: "?"
291 = 63
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 315, in _message_thread_loop
self._handle_rpdo_notification(message)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 361, in _handle_rpdo_notification
self.callback_sensor(message.msg.pdid, val)
File "/opt/fhem/scripts/ccfhem.py", line 195, in callback_sensor
setreading(var, value)
File "/opt/fhem/scripts/ccfhem.py", line 163, in setreading
fhemsend(cmd)
File "/opt/fhem/scripts/ccfhem.py", line 150, in fhemsend
fhem.send(msg.encode('ascii'))
BrokenPipeError: [Errno 32] Broken pipe
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08032010 0800
type: StartSessionRequestType
reference: 16
takeover: false
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 083510002010
type: StartSessionConfirmType
result: OK
reference: 16
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08652011
type: KeepAliveType
reference: 17
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262012 08c00110011802
type: CnRpdoRequestType
reference: 18
pdid: 192
zone: 1
type: 2
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0820 0801100118012002
type: CnNodeNotificationType
nodeId: 1
productId: 1
zoneId: 1
mode: NODE_NORMAL
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0820 080d100518ff012002
type: CnNodeNotificationType
nodeId: 13
productId: 5
zoneId: 255
mode: NODE_NORMAL
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 082710002012
type: CnRpdoConfirmType
result: OK
reference: 18
BRIDGE: write_message(): 00000000000000000000000000000010 -> 00000000000d10128001144fd71e070d: 08262013 084110011801
type: CnRpdoRequestType
reference: 19
pdid: 65
zone: 1
type: 1
BRIDGE: read_message(): 00000000000d10128001144fd71e070d -> 00000000000000000000000000000010: 0828 08c00112023d00
type: CnRpdoNotificationType
pdid: 192
data: "=\000"
192 = 61
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 315, in _message_thread_loop
self._handle_rpdo_notification(message)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 361, in _handle_rpdo_notification
self.callback_sensor(message.msg.pdid, val)
File "/opt/fhem/scripts/ccfhem.py", line 195, in callback_sensor
setreading(var, value)
File "/opt/fhem/scripts/ccfhem.py", line 163, in setreading
fhemsend(cmd)
File "/opt/fhem/scripts/ccfhem.py", line 150, in fhemsend
fhem.send(msg.encode('ascii'))
BrokenPipeError: [Errno 32] Broken pipe
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 254, in _connection_thread_loop
self.cmd_rpdo_request(sensor_id)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 480, in cmd_rpdo_request
use_queue=use_queue
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 157, in _command
reply = self._get_reply(confirm_type, use_queue=use_queue)
File "/usr/local/lib/python3.5/dist-packages/pycomfoconnect/comfoconnect.py", line 219, in _get_reply
raise ValueError('Timeout waiting for response.')
ValueError: Timeout waiting for response.