FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: rud0815 am 08 Februar 2016, 16:36:48

Titel: Wired Module anlernen mit discovery
Beitrag von: rud0815 am 08 Februar 2016, 16:36:48
Hallo,
ich habe seit einiger Zeit Wired Module an einem Raspberry laufen.
Ich wollte jetzt 4 neue Module hinzufügen. Vorher habe ich die FHEM-SW auf den Raspberry aktualisiert.
Wenn ich jetzt
set HM485_Bus_1 discovery start
aufrufe passiert nichts.
Im Log steht
Zitat2016.02.08 12:05:20 2: HM_Bus_1: Discovery - canceled. No results found within 10 seconds!

Warum werden mir die neuen Geräte nicht angezeigt?
Die bestehenden Geräte kann ich jedezeit ansprechen.

Gruß
Wilhelm
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: Thorsten Pferdekaemper am 09 Februar 2016, 09:28:45
Hi,
das mit dem Discovery scheint so eine Sache zu sein. Ich sehe immer mal wieder Probleme damit, aber wenn ich es selbst ausprobiere dann funktioniert es. ...zumindest mit dem HM485d und Original-Homematic Geräten. Ich habe gerade letzte Woche 6 Geräte eingebaut und in einem Rutsch per Discovery angelegt.
...aber das hilft Dir wahrscheinlich nicht. Könntest Du mal die Ausgabe der folgenden Kommandos hier reinstellen:

version

und

list HM485_Bus_1

Außerdem:

Wahrscheinlich willst Du aber nicht warten, bis das alles gelöst ist. Du kannst auch versuchen, die Module zum Senden zu bewegen, indem Du z.B. einen Taster anschließt und mal draufdrückst. Dann sollte FHEM sie auch erkennen und anlegen. Auch wenn das funktioniert, wäre es trotzdem nett, wenn Du die Informationen wie oben liefern könntest, damit wir die Probleme irgend wann mal lösen können.

Gruß,
    Thorsten
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: rud0815 am 09 Februar 2016, 11:23:10
Hallo,

Version gibt folgende Ausgabe:
Zitat
File                     Rev   Last Change

fhem.pl                  10679 2016-01-31 11:16:59Z rudolfkoenig
90_at.pm                 10594 2016-01-22 13:27:34Z rudolfkoenig
98_autocreate.pm         10651 2016-01-28 16:18:49Z rudolfkoenig
10_CUL_HM.pm             10520 2016-01-16 13:41:45Z martinp876
98_dummy.pm              10530 2016-01-16 19:27:21Z rudolfkoenig
91_eventTypes.pm         10530 2016-01-16 19:27:21Z rudolfkoenig
01_FHEMWEB.pm            10583 2016-01-21 10:22:53Z rudolfkoenig
92_FileLog.pm            10530 2016-01-16 19:27:21Z rudolfkoenig
10_HM485.pm                739 2016-01-03 18:33:00Z Thorsten Pferdekaemper
No Id found for 00_HM485_LAN.pm
00_HMLAN.pm              10409 2016-01-08 15:13:59Z martinp876
No Id found for hmw_io12_sw14_dr.pm
No Id found for hmw_io12_sw7_dr.pm
No Id found for hmw_io12_sw7_dr_V3_02.pm
No Id found for hmw_io_12_fm.pm
No Id found for hmw_sen_sc_12_dr.pm
91_notify.pm             10694 2016-02-01 06:43:00Z rudolfkoenig
33_readingsGroup.pm      10532 2016-01-16 19:56:21Z justme1968
99_SUNRISE_EL.pm         10569 2016-01-19 06:30:28Z rudolfkoenig
00_TCM.pm                10338 2016-01-03 06:25:06Z klaus-schauer
98_telnet.pm             10551 2016-01-17 11:03:44Z rudolfkoenig
98_update.pm             10617 2016-01-25 07:40:33Z rudolfkoenig
99_Utils.pm              10570 2016-01-19 06:39:23Z rudolfkoenig
98_version.pm            10658 2016-01-29 19:43:10Z markusbloch
59_Weather.pm            10403 2016-01-07 19:44:04Z borisneubert
98_weblink.pm            10530 2016-01-16 19:27:21Z rudolfkoenig

Blocking.pm              10343 2016-01-03 10:55:45Z rudolfkoenig
No Id found for ConfigurationManager.pm
No Id found for Constants.pm
No Id found for Device.pm
DevIo.pm                  8954 2015-07-13 16:01:48Z rudolfkoenig
No Id found for FhemWebHelper.pm
HMConfig.pm              10669 2016-01-30 17:58:06Z martinp876
No Id found for hmw_central.pm
No Id found for hmw_generic.pm
No Id found for hmw_io_4_fm.pm
No Id found for hmw_io_4_fm_V3_02.pm
No Id found for hmw_io_sr_fm.pm
No Id found for hmw_lc_bl1_dr.pm
No Id found for hmw_lc_bl1_dr_V3_02.pm
No Id found for hmw_lc_dim1l_dr.pm
No Id found for hmw_lc_sw2_dr.pm
No Id found for hmw_lc_sw2_dr_V3_02.pm
No Id found for hmw_virtual.pm
HttpUtils.pm             10616 2016-01-25 07:37:08Z rudolfkoenig
No Id found for PeeringManager.pm
RTypes.pm                10476 2016-01-12 21:03:33Z borisneubert
TcpServerUtils.pm        10346 2016-01-03 12:34:27Z rudolfkoenig
No Id found for Util.pm

list HM_Bus_1 gibt folgende Ausgabe:

Zitat
Internals:
   DEF        192.168.2.2:1000
   DeviceName 192.168.2.2:1000
   FD         4
   HM_Bus_1_MSGCNT 11665
   HM_Bus_1_TIME 2016-02-09 11:18:07
   InterfaceType eQ3-HMW-LGW
   LASTInputDev HM_Bus_1
   Last_Sent_RAW_CMD 00008864 98 00000002 780E00
   Last_Sent_RAW_CMD_State ACK
   MSGCNT     11665
   NAME       HM_Bus_1
   NR         30
   PARTIAL
   ProtokolVersion 01
   STATE      opened
   SerialNumber KEQ0861083
   TYPE       HM485_LAN
   Version    1.0.4
   currentQueueId 0
   hmwId      00000002
   msgCounter 239
   queueId    2
   queueRunning 0
   Readings:
     2016-02-08 18:55:05   state           opened
   Ctrl:
     00008549   98
     00008864   98
   Keepalive:
     ok         1
     retry      0
   Sendqueue:
Attributes:
   hmwId      00000002
   room       Bus


Wir benutzen nur original Homematic Module, es geht um 3 Jalousien Actoren und einen 12/7.
Es sind schon diverse Module angelernt (ca. 20 Stück).
Wir benutzen nur einen Lan-Adapter.

Danke für Deine Hilfe.
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: Thorsten Pferdekaemper am 09 Februar 2016, 11:49:38
Hi,

mir fallen hier zwei Sachen auf, mit denen Discovery Probleme haben koennte:
Ich kann mir das gerade nicht selbst anschauen, will das aber langfristig mal beides untersuchen.

Deine Aktoren haben alle Tastereingaenge. Ueber die kannst Du die Module auch "anlernen". Einfach mal die Tasten betaetigen, dann sollte das jeweilige Device nach ein paar Sekunden in FHEM erscheinen. Wenn Du keine Tasten angeschlossen hast, dann mit einem Stueck Draht einfach einen Tastereingang kurz mit GND verbinden und wieder loslassen.

Gruss,
   Thorsten

Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: rud0815 am 09 Februar 2016, 18:51:59
Es ist zum Verzweifeln, ich bekomme die neuen Geräte nicht angemeldet.
Taster betätigen bringt nichts.
Den hmwId auf 00000001 gestellt auch nicht.

Wilhelm
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: Thorsten Pferdekaemper am 09 Februar 2016, 21:27:11
Hi,
kannst Du mal das Attribut verbose beim HM485_Bus_1 auf 5 setzen und dann eine der Tasten drücken? Die darauf folgende Ausgabe im FHEM-Logfile würde mich interessieren.
Gruß,
   Thorsten
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: rud0815 am 10 Februar 2016, 09:16:10
Guten Morgen,

Hier ein Tick den nach dem Auslösen eines Taster.

Zitat2016.02.10 09:07:43 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 218 Cmd: 101
2016.02.10 09:07:43 4: HM_Bus_1: Event:HASH(0x4b4c768)
2016.02.10 09:07:43 5: HM_Bus_1 dispatch ��e�aAi�
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: MsgId: 218
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:43 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00006141 msgData = 6902C800
2016.02.10 09:07:43 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 219 Cmd: 101
2016.02.10 09:07:43 4: HM_Bus_1: Event:HASH(0x44ca8f8)
2016.02.10 09:07:43 5: HM_Bus_1 dispatch � �eaA9
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: MsgId: 219
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:43 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00000002 msgData =
2016.02.10 09:07:43 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 220 Cmd: 101
2016.02.10 09:07:43 4: HM_Bus_1: Event:HASH(0x44c6b08)
2016.02.10 09:07:43 5: HM_Bus_1 dispatch ��e�_2i�
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: MsgId: 220
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:43 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00005F32 msgData = 6902C800
2016.02.10 09:07:43 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 221 Cmd: 101
2016.02.10 09:07:43 4: HM_Bus_1: Event:HASH(0x4480f20)
2016.02.10 09:07:43 5: HM_Bus_1 dispatch � �e_2y
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: MsgId: 221
2016.02.10 09:07:43 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:43 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00000002 msgData =
2016.02.10 09:07:44 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 222 Cmd: 101
2016.02.10 09:07:44 4: HM_Bus_1: Event:HASH(0x4b4bce8)
2016.02.10 09:07:44 5: HM_Bus_1 dispatch ��e���i�
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: MsgId: 222
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:44 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 000097B4 msgData = 6902C800
2016.02.10 09:07:44 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 223 Cmd: 101
2016.02.10 09:07:44 4: HM_Bus_1: Event:HASH(0x44bb3a8)
2016.02.10 09:07:44 5: HM_Bus_1 dispatch � �e��y
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: MsgId: 223
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:44 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00000002 msgData =
2016.02.10 09:07:44 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 224 Cmd: 101
2016.02.10 09:07:44 4: HM_Bus_1: Event:HASH(0x44ca248)
2016.02.10 09:07:44 5: HM_Bus_1 dispatch ��e�a?i�
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: MsgId: 224
2016.02.10 09:07:44 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:07:44 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 0000613F msgData = 6902C800
2016.02.10 09:07:57 3: HM_Funk_1: Unknown code A0E888202167C55172B550101000043::-84:HM_Funk_1, help me!
2016.02.10 09:08:04 5: HM_Bus_1: HM485_LAN_Write TX: 252
2016.02.10 09:08:04 5: SW: fd02fc7c4b
2016.02.10 09:08:04 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 252 Cmd: 97
2016.02.10 09:08:04 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: Alive: (252) 00 AliveStatus: 00
2016.02.10 09:08:12 3: HM_Funk_1: Unknown code A092BA11213C8601669E6::-39:HM_Funk_1, help me!
2016.02.10 09:08:12 3: HM_Funk_1: Unknown code A092BA11213C8601669E6::-39:HM_Funk_1, help me!
2016.02.10 09:08:15 3: HM_Funk_1: Unknown code A0C2986701F90CA00000000DA31::-93:HM_Funk_1, help me!
2016.02.10 09:08:24 5: HM_Bus_1: HM485_LAN_Write TX: 253
2016.02.10 09:08:24 5: SW: fd02fc7d4b
2016.02.10 09:08:24 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 253 Cmd: 97
2016.02.10 09:08:24 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: Alive: (253) 00 AliveStatus: 00
2016.02.10 09:08:32 3: HM_Funk_1: Unknown code A0E2B82021672431669E6010100804E::-81:HM_Funk_1, help me!
2016.02.10 09:08:35 3: HM_Funk_1: Unknown code A0B29A2581F90CA1F8D750000::-93:HM_Funk_1, help me!
2016.02.10 09:08:35 3: HM_Funk_1: Unknown code A0E2982021F8D751F90CA0101000040::-87:HM_Funk_1, help me!
2016.02.10 09:08:44 5: HM_Bus_1: HM485_LAN_Write TX: 254
2016.02.10 09:08:44 5: SW: fd02fe4b
2016.02.10 09:08:44 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 254 Cmd: 97
2016.02.10 09:08:44 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: Alive: (254) 00 AliveStatus: 00
2016.02.10 09:08:47 3: HM_Funk_1: Unknown code A0C7386701A3688000000002C4F::-76:HM_Funk_1, help me!
2016.02.10 09:08:47 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 225 Cmd: 101
2016.02.10 09:08:47 4: HM_Bus_1: Event:HASH(0x44ca5d8)
2016.02.10 09:08:47 5: HM_Bus_1 dispatch ��e�����-�KF
2016.02.10 09:08:47 5: HM_Bus_1: HM485_Parse: MsgId: 225
2016.02.10 09:08:47 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:08:47 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00012DCE msgData = 4B010046
2016.02.10 09:08:47 4: HM_Bus_1: Device 00012DCE not defined yet. We need the type for autocreate
2016.02.10 09:08:47 5: HM_Bus_1: HM485_QueueCommand68
2016.02.10 09:08:47 5: HM_Bus_1: HM485_QueueStart: Num: 26504
2016.02.10 09:08:47 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 226 Cmd: 101
2016.02.10 09:08:47 4: HM_Bus_1: Event:HASH(0x4b4be20)
2016.02.10 09:08:47 5: HM_Bus_1 dispatch ��e�����-�AMEQ0279324
2016.02.10 09:08:47 5: HM_Bus_1: HM485_Parse: MsgId: 226
2016.02.10 09:08:47 5: HM_Bus_1: HM485_Parse: ProcessEvent
2016.02.10 09:08:47 5: HM_Bus_1: HM485_ProcessEvent: hmwId = 00012DCE msgData = 4101120003064D455130323739333234
2016.02.10 09:08:47 4: HM_Bus_1: Device 00012DCE not defined yet. We need the type for autocreate
2016.02.10 09:08:47 5: HM_Bus_1: HM485_QueueCommand68
2016.02.10 09:08:47 5: HM_Bus_1: HM485_QueueStart: Num: 26505
2016.02.10 09:09:07 5: HM_Bus_1: HM485_LAN_Write TX: 255
2016.02.10 09:09:07 5: SW: fd02ff4b
2016.02.10 09:09:07 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: MsgId: 255 Cmd: 97
2016.02.10 09:09:07 5: HM_Bus_1: HM485_LAN_parseIncommingCommand: Alive: (255) 00 AliveStatus: 00

Wegen dem
ZitatWe need the type for autocreate
hier mein Code dazu:
define autocreate autocreate
attr autocreate autosave 1
attr autocreate filelog /opt/fhem/log/%NAME-%Y.log
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: Thorsten Pferdekaemper am 10 Februar 2016, 09:29:14
Hi,
ich bin mir nicht ganz sicher, aber es kann sein, dass da was hängt. Kannst Du mal Folgendes versuchen?
Im Kommandofeld das hier eingeben:

reload 10_HM485.pm

Danach dann 30 Sekunden warten, dann wieder eine Taste drücken. ...diesmal aber bitte nur an EINEM Gerät und nicht gleich an allen.
Gruß,
   Thorsten
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: rud0815 am 10 Februar 2016, 12:25:29
Hallo,
mit dem reload hat es geklappt.

Allerdings habe ich erst nur ein Gerät angemeldet.
Als ich später die anderen Drei anmelden wollte, ging es wieder nicht.
Jedoch nach einem weiteren reload konnte ich die drei Geräte anlernen.

Danke für die Hilfe.

Wilhelm
Titel: Antw:Wired Module anlernen mit discovery
Beitrag von: Thorsten Pferdekaemper am 10 Februar 2016, 13:42:31
Hi,
da muss ich wohl doch nochmal genau nachsehen, was da haengenbleibt. Es scheint mit dem Original-HMW-Adapter zu tun zu haben.
...aber gut, dass es bei Dir jetzt erstmal klappt.
Gruss,
   Thorsten