Hallo,
ich habe heute begonnen die Umstellung von EIB auf KNX zu machen.
In der fhem.cfg ist folgendes drin:
# TUL einbinden
define tul TUL tul:/dev/ttyACM0 1.1.249
attr tul icon cul
attr tul useEIB 0
define zuRolloKG_WE at *{sunset("REAL",0,"16:00","22:00")} { if ($we) {fhem("set zRolloKG zu")} }
attr zuRolloKG_WE group Timer_Keller
attr zuRolloKG_WE icon fts_shutter_down
attr zuRolloKG_WE room Zeitsteuerung
########### ----> ZENTRALFUNKTIONEN
define zRolloKG structure room RolloBad RolloBuero RolloHeizung RolloWerkstatt
attr zRolloKG userattr room_map structexclude
attr zRolloKG devStateIcon auf:shutter_open zu:shutter_closed
attr zRolloKG eventMap on:auf off:zu
attr zRolloKG group 1_Zentral_KG
attr zRolloKG icon fts_shutter_automatic
attr zRolloKG room Zentralfunktion
############ Oberpunkt ROLLOS
define RollosAlle structure room zRolloKG,zRolloEG,zRolloOG
attr RollosAlle devStateIcon auf:shutter_open zu:shutter_closed undefined:light_question
attr RollosAlle eventMap on:auf off:zu
attr RollosAlle group 1_RollosKG
attr RollosAlle icon fts_shutter
attr RollosAlle room 6_ROLLOS
define RolloBuero KNX 0306:dpt1
attr RolloBuero IODev tul
attr RolloBuero devStateIcon auf:shutter_open zu:shutter_closed
attr RolloBuero eventMap on:auf off:zu
attr RolloBuero group KG_Buero
attr RolloBuero room 1_KG,6_ROLLOS
define FileLog_RolloBuero FileLog ./log/RolloBuero-%Y.log RolloBuero
attr FileLog_RolloBuero group KG_Buero
attr FileLog_RolloBuero logtype text
attr FileLog_RolloBuero room Logdateien
Wenn jetzt die Zentralfunktion "zuRolloKG_WE" ausgeführt wird, müllt er mir den BUS zu und schießt den TUL ab.
Logfile:
2016.04.30 19:48:55 1: tul:/dev/ttyACM0 disconnected, waiting to reappear
2016.04.30 19:49:00 3: TUL setting tul baudrate to 19200
2016.04.30 19:49:00 1: TUL tul:/dev/ttyACM0 reappeared (tul)
2016.04.30 19:49:05 3: Control Byte 0x09 does not match expected mask 2x1001nnnn
2016.04.30 19:49:05 3: TUL tul refused message: 09f90300e10080
2016.04.30 19:49:10 3: Control Byte 0x8b does not match expected mask 2x1001nnnn
2016.04.30 19:49:10 3: TUL tul refused message: 8bbc110e1402e10081
2016.04.30 19:49:15 3: Control Byte 0x09 does not match expected mask 2x1001nnnn
2016.04.30 19:49:15 3: TUL tul refused message: 09f90300e10080
2016.04.30 19:49:20 3: Control Byte 0x8b does not match expected mask 2x1001nnnn
2016.04.30 19:49:20 3: TUL tul refused message: 8bbc110e1402e10081
2016.04.30 19:49:25 3: Control Byte 0x09 does not match expected mask 2x1001nnnn
2016.04.30 19:49:25 3: TUL tul refused message: 09f90300e10080
2016.04.30 19:49:30 3: Control Byte 0x8b does not match expected mask 2x1001nnnn
2016.04.30 19:49:30 3: TUL tul refused message: 8bbc110e1402e10081
2016.04.30 19:49:35 3: Control Byte 0x09 does not match expected mask 2x1001nnnn
2016.04.30 19:49:35 3: TUL tul refused message: 09f90300e10080
2016.04.30 19:49:40 3: Control Byte 0x8b does not match expected mask 2x1001nnnn
2016.04.30 19:49:40 3: TUL tul refused message: 8bbc110e1402e10081
2016.04.30 19:49:45 3: Control Byte 0x09 does not match expected mask 2x1001nnnn
2016.04.30 19:49:45 3: TUL tul refused message: 09f90300e10080
Eventmonitor zeigt folgendes:
2016-04-30 19:52:22 structure RollosAlle undefined
2016-04-30 19:52:22 structure zRolloKG zu
2016-04-30 19:52:22 KNX RolloBad setG1: zu
2016-04-30 19:52:22 KNX RolloBad zu
2016-04-30 19:52:22 KNX RolloBuero setG1: zu
2016-04-30 19:52:22 KNX RolloBuero zu
2016-04-30 19:52:22 KNX RolloHeizung setG1: zu
2016-04-30 19:52:22 KNX RolloHeizung zu
2016-04-30 19:52:22 KNX RolloWerkstatt setG1: zu
2016-04-30 19:52:22 KNX RolloWerkstatt zu
2016-04-30 19:52:22 structure RollosAlle undefined
2016-04-30 19:52:22 structure zRolloKG zu
2016-04-30 19:52:22 KNX RolloBad setG1: zu
2016-04-30 19:52:22 KNX RolloBad zu
2016-04-30 19:52:22 KNX RolloBuero setG1: zu
2016-04-30 19:52:22 KNX RolloBuero zu
2016-04-30 19:52:22 KNX RolloHeizung setG1: zu
2016-04-30 19:52:22 KNX RolloHeizung zu
2016-04-30 19:52:23 KNX RolloWerkstatt setG1: zu
2016-04-30 19:52:23 KNX RolloWerkstatt zu
HILFE ?!
ABend!
Du hast irgend eine Rekursion drin - kenne mich mit den structs aber nicht aus. Ich nehme an:
- Zentral WE steuert ein Rollo
- Ein Rollo wirft ein Event
- Die Zentralfunktion reagiert auf dieses Event und steuert alle Einzelrollos nochmal
- Ein Rollo wirft ein Event
- ...
Ich würd mal versuchen, bei den einzelnen Devices mit event-on-change-reading rumzuspielen...
Geändert ggü. EIB hat sich eigentlich nur das werfen der Events - pro neuer Nachricht werden u.U. mehrere Events geworfen (bsp. getG1, lastSender und state).
Grüße, Andi