Neues Modul: 98_Siro.pm (Ansteuerung von motorisierten Innensichtschutzrollos)

Begonnen von Dr. Smag, 27 September 2017, 00:14:49

Vorheriges Thema - Nächstes Thema

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

dorian67

Zitat von: Byte09 am 12 Oktober 2017, 05:26:58
...
bist du sicher, das der signalduino auch wirklich sendet, schaltest du andere geräte damit , die das bestätigen ?

Ansonsten werden keine weiteren Geräte geschaltet. Kann ich am Wochenende mal ausprobieren.

Zitat
poste doch bitte mal ein list vom signalduino und ein list vom angelegten sirodevice. ... da können wir zumindest mal anfangen.

Hier der List des Siro:
Internals:
   Clients    :IT:CUL_TCM97001:SD_RSL:OREGON:CUL_TX:SD_AS:Hideki:SD_WS07:SD_WS09: :SD_WS:RFXX10REC:Dooya:SOMFY:SD_UT:SD_WS_Maverick:FLAMINGO:CUL_WS:Revolt: :FS10:CUL_FHTTK:Siro:SIGNALduino_un:
   DEF        /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_00000000-if00-port0@57600
   DMSG       nothing
   DevState   initialized
   DeviceName /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_00000000-if00-port0@57600
   FD         16
   LASTDMSG   nothing
   NAME       SIGNALduino
   NR         93
   PARTIAL
   STATE      opened
   TIME       1507788003
   TYPE       SIGNALduino
   sendworking 0
   unknownmessages 2017-10-12 08:00:12-MU;P0=-1967;P1=481;P2=-4622;P3=-9540;D=010121212101010121210101010121210121212101210121010131212121012121210101012121010101012121012;CP=1;#2017-10-12 08:00:12-MU;P0=503;P1=-4525;P2=-21972;P3=-1972;P7=-9558;D=131303131101030101010301030103030701010103010101030303010103030303010103010101030102;CP=0;#2017-10-12 08:00:40-MU;P0=452;P1=-29456;P3=-4554;P4=-1985;P5=136;P6=-19504;P7=-13116;D=010303030403035304040403030404040403030403030604070307;CP=0;#2017-10-12 08:01:14-MU;P0=-9736;P1=496;P2=-1958;P3=-4538;P4=132;P5=-15104;D=012121213131212121213131213131312131213121245;CP=1;#2017-10-12 08:01:15-MU;P0=-116;P1=160;P2=-9578;P3=496;P4=-1951;P5=-4539;P6=-19712;D=01234353535343434353534343434353534353234353435343436;CP=3;#2017-10-12 08:01:15-MU;P0=-7344;P1=462;P2=-4662;P3=-2220;P5=209;P6=-14632;D=012121213131312121313131312121312121213121312135316525213;CP=1;#2017-10-12 08:01:15-MU;P0=428;P2=92;P3=-1973;P4=282;P5=-9706;P6=214;P7=-7020;D=00020034560630300000003004007000300030305000;CP=0;#2017-10-12 08:01:49-MU;P0=-4581;P1=492;P2=-1988;P3=-12056;P4=156;D=01212121010121212121010121010101213121310101012104;CP=1;#2017-10-12 08:01:49-MU;P0=180;P1=-4582;P2=481;P3=-1968;P4=-9584;P5=92;P6=-164;D=012123232321212323232321212321242321232156;CP=2;#2017-10-12 08:01:49-MU;P0=-2198;P1=474;P2=290;P3=-4554;P5=184;P6=-9576;P7=-17044;D=010102010131310131313101320131050161317161010;CP=1;#2017-10-12 08:02:24-MU;P0=141;P1=-4527;P2=490;P3=-1986;P4=242;P5=-9552;D=0121232121210323232121232323232101232121212321232123432521212123212523232321212323234;CP=2;#2017-10-12 08:02:59-MU;P0=-32001;P1=479;P2=-9592;P3=-4665;P4=-2055;P5=356;P6=-7188;P7=264;D=01213121413531354141413167414141313145313;CP=1;#2017-10-12 08:02:59-MU;P0=-1966;P1=485;P2=-4530;P3=-7757;P5=-17216;P6=220;D=01212121010131310101313121212131012101013121212101560101212121010121213131012101310131;CP=1;#2017-10-12 08:04:08-MU;P0=-4539;P1=478;P2=-1974;P3=-9564;P4=-19564;D=012101010121012101212131010101210101012121214;CP=1;
   version    V 3.3.1-dev SIGNALduino - compiled at Jan  3 2017 23:59:32
   MatchList:
     10:SD_WS07 ^P7#[A-Fa-f0-9]{6}F[A-Fa-f0-9]{2}(#R[A-F0-9][A-F0-9]){0,1}$
     11:SD_WS09 ^P9#F[A-Fa-f0-9]+
     12:SD_WS   ^W\d+x{0,1}#.*
     13:RFXX10REC ^(20|29)[A-Fa-f0-9]+
     14:Dooya   ^P16#[A-Fa-f0-9]+
     15:SOMFY   ^Ys[0-9A-F]+
     16:SD_WS_Maverick ^P47#[A-Fa-f0-9]+
     17:SD_UT   ^u30#.*
     18:FLAMINGO ^P13#[A-Fa-f0-9]+
     19:CUL_WS  ^K[A-Fa-f0-9]{5,}
     1:IT       ^i......
     20:Revolt  ^r[A-Fa-f0-9]{22}
     21:FS10    ^P61#[A-F0-9]+
     22:Siro    ^P72#[A-Fa-f0-9]+
     2:CUL_TCM97001 ^s[A-Fa-f0-9]+
     3:SD_RSL   ^P1#[A-Fa-f0-9]{8}
     4:OREGON   ^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*
     5:CUL_TX   ^TX..........
     6:SD_AS    ^P2#[A-Fa-f0-9]{7,8}
     7:Hideki   ^P12#75[A-F0-9]+
     9:CUL_FHTTK ^T[A-F0-9]{8}
     X:SIGNALduino_un ^[u]\d+#.*
   QUEUE:
   READINGS:
     2017-10-11 21:37:55   ping            OK
     2017-10-12 08:00:12   state           opened
     2017-10-12 08:00:12   version         V 3.3.1-dev SIGNALduino - compiled at Jan  3 2017 23:59:32
   keepalive:
     ok         1
     retry      0
   mcIdList:
   msIdList:
   muIdList:
     72
Attributes:
   development m72m72.1
   flashCommand avrdude -c arduino -b [BAUDRATE] -P [PORT] -p atmega328p -vv -U flash:w:[HEXFILE] 2>[LOGFILE]
   group      CUL
   room       System
   verbose    5
   whitelist_IDs 72


Hier der List des Signalduino
 
Internals:
   CHANNEL    1
   DEF        C443A241
   ID         C443A24
   INFO       limited function without ATTR time_to_open / time_to_close / time_down_to_favorite
   IODev      SIGNALduino
   NAME       Siro_WZ
   NR         576
   STATE      100
   TYPE       Siro
   Version    0.38 2017-09-27 Beta
   aktMsg     stop 0 1507788004.52924
   lastMsg    stop 0 1507788004.52928
   lastProg   0
   position   0
   CODE:
     1          C443A241
   READINGS:
     2017-10-11 22:18:19   parsestate      on
     2017-10-11 22:37:02   position        100
     2017-10-11 22:22:35   prog_mode       inaktiv
     2017-10-11 22:37:02   state           100
Attributes:
   IODev      SIGNALduino
   SignalRepeats 8
   devStateIcon {my $icon = ReadingsVal('Siro_C443A241','state', 0);$icon = (int($icon/10)*10); return '.*:fts_shutter_1w_'.$icon}
   down_limit_mode_1 100
   event-min-interval .*:300
   event-on-change-reading .*
   operation_mode 0
   prog_fav_sequence prog,2,stop,2,stop
   room       WZ
   verbose    5
   webCmd     stop:on:off:fav
   


Zitatdu kannst bitte auch mal signalduino und sirodevice auf verbose 5 setzen, und "on" mal drücken. Den Log dann auch mal hier einstellen..

... und hier der Logauszug:
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MC;LL=-767;LH=707;SL=-400;SH=335;D=4A952AA92A52AA54A8;C=368;L=69;
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MC;LL=-763;LH=714;SL=-394;SH=346;D=4A952AA92A52AA54A8;C=369;L=69;
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MU;P0=-11010;P1=-31896;P2=668;P3=4798;P4=-1583;P5=-420;P6=335;P7=-752;D=03415156767671567676715676767671515156715676767156767156767676767156767671567676710341515676767156767671567676767151515671567676715676715676767676715676767156767671034151567676715676767156767676715151567156767671567671567676767671567676715676767113425256;CP=6;O;
2017.10.12 08:08:55 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:55 5 : SIGNALduino: Starting demodulation at Position 249
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MU;P0=-784;P1=319;P2=686;P3=-410;D=010102310101023101010102323231023101010231010231010;CP=1;
2017.10.12 08:08:55 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:55 5 : SIGNALduino: start pattern for MU Protocol id 72 -> Siro shutter mismatches, aborting
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MS;P0=-11089;P1=4808;P2=-1554;P3=710;P4=-400;P5=343;P6=-754;D=5012343456565634565656345656565634343456345656563456563456565656563456565634343434;CP=5;SP=0;O;
2017.10.12 08:08:56 4 : SIGNALduino/msg READ: MU;P0=-757;P1=337;P2=709;P3=-401;P4=-11244;P5=4812;P6=-1544;D=010102310101023101010102323231023101010231010231010101010231010102323232314562323101010231010102310101010232323102310101023101023101010101023101010232323231;CP=1;
2017.10.12 08:08:56 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:56 5 : SIGNALduino: Starting demodulation at Position 77
2017.10.12 08:08:56 5 : SIGNALduino: dispatching bits: 1 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 1 1 1 0
2017.10.12 08:08:56 4 : SIGNALduino: decoded matched MU Protocol id 72 dmsg P72#C443A2411E length 40
2017.10.12 08:08:56 5 : SIGNALduino Dispatch: P72#C443A2411E, test ungleich: disabled
2017.10.12 08:08:56 5 : SIGNALduino Dispatch: P72#C443A2411E, dispatch
2017.10.12 08:08:56 5 : SIGNALduino: dispatch P72#C443A2411E
2017.10.12 08:08:56 4 : Siro_Parse: msg = C443A2411E length: P72#C443A2411E
2017.10.12 08:08:56 4 : Siro_Parse: rawData = C443A2411E length: 10
2017.10.12 08:08:56 4 : Siro_Parse: converted to bits: 1100010001000011101000100100000100011110
fhemlog'>2017.10.12 08:08:56 4 : Siro_Parse: device ID: C443A242017.10.12 08:08:56 4 : Siro_Parse: Channel: 12017.10.12 08:08:56 4 : Siro_Parse: Cmd: 1  Newstate: off2017.10.12 08:08:56 4 : Siro_Parse: deviceCode: C443A2412017.10.12 08:08:56 4 : def -> HASH(0x3059a38)2017.10.12 08:08:56 4 : Siro_Parse: channel parse-> 1 - devicecode -> C443A2412017.10.12 08:08:56 5 : list -> 2017.10.12 08:08:56 5 : Siro_Parse_Liste: name -> Siro_WZ - chan -> 1 - def -> HASH(0x3059a38) lhash -> HASH(0x3793dc8)2017.10.12 08:08:56 4 : Siro_Parse  Siro_WZ off2017.10.12 08:08:56 4 : Siro_Parse operationmode -> 02017.10.12 08:08:56 4 : Siro_Parse set mode to physical2017.10.12 08:08:56 5 : AUFRUF SIRO_SET :HASH(0x3793dc8), Siro_WZ, off 2017.10.12 08:08:56 5 : -------------START----------------------2017.10.12 08:08:56 5 : Siro_Set hash -> HASH(0x3793dc8)2017.10.12 08:08:56 5 : Siro_Set name -> Siro_WZ2017.10.12 08:08:56 5 : Siro_Set args -> off 2017.10.12 08:08:56 5 : ---------------END--------------------2017.10.12 08:08:56 1 : Siro_Set:limited function without definition of time_to_close and time_to_open. Please define this attributes.2017.10.12 08:08:56 1 : PERL WARNING: Argument "" isn't numeric in multiplication (*) at ./FHEM/98_Siro.pm line 847.2017.10.12 08:08:56 5 : Siro_set: handing over to Siro_Send_Command with following arguments: off 0 2017.10.12 08:08:56 5 : -------------START----------------------2017-10-12 08:08:56 Siro Siro_WZ parsestate: off
2017-10-12 08:08:56 Siro Siro_WZ 0
2017-10-12 08:08:56 Siro Siro_WZ position: 0
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-766;LH=704;SL=-402;SH=330;D=254A554924;C=366;L=38;
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-761;LH=712;SL=-384;SH=348;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-771;LH=706;SL=-397;SH=334;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=A54A9554952955249;C=367;L=68;


Zitatgruss Byte09

PS: sorry  für die Frage, nur um sicher zu gehen, der Motor wurde aber bereits an die Fernbedienung angelernt und reagiert auf die Fernbedienung direkt , hoffe ich ?

Jepp. funktioniert. Anfangs- und Endeposition sind auch definiert und funktioniert

Gruß Dorian

Byte09

Zitat von: dorian67 am 12 Oktober 2017, 08:18:12
Ansonsten werden keine weiteren Geräte geschaltet. Kann ich am Wochenende mal ausprobieren.

Hier der List des Siro:
Internals:
   Clients    :IT:CUL_TCM97001:SD_RSL:OREGON:CUL_TX:SD_AS:Hideki:SD_WS07:SD_WS09: :SD_WS:RFXX10REC:Dooya:SOMFY:SD_UT:SD_WS_Maverick:FLAMINGO:CUL_WS:Revolt: :FS10:CUL_FHTTK:Siro:SIGNALduino_un:
   DEF        /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_00000000-if00-port0@57600
   DMSG       nothing
   DevState   initialized
   DeviceName /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_00000000-if00-port0@57600
   FD         16
   LASTDMSG   nothing
   NAME       SIGNALduino
   NR         93
   PARTIAL
   STATE      opened
   TIME       1507788003
   TYPE       SIGNALduino
   sendworking 0
   unknownmessages 2017-10-12 08:00:12-MU;P0=-1967;P1=481;P2=-4622;P3=-9540;D=010121212101010121210101010121210121212101210121010131212121012121210101012121010101012121012;CP=1;#2017-10-12 08:00:12-MU;P0=503;P1=-4525;P2=-21972;P3=-1972;P7=-9558;D=131303131101030101010301030103030701010103010101030303010103030303010103010101030102;CP=0;#2017-10-12 08:00:40-MU;P0=452;P1=-29456;P3=-4554;P4=-1985;P5=136;P6=-19504;P7=-13116;D=010303030403035304040403030404040403030403030604070307;CP=0;#2017-10-12 08:01:14-MU;P0=-9736;P1=496;P2=-1958;P3=-4538;P4=132;P5=-15104;D=012121213131212121213131213131312131213121245;CP=1;#2017-10-12 08:01:15-MU;P0=-116;P1=160;P2=-9578;P3=496;P4=-1951;P5=-4539;P6=-19712;D=01234353535343434353534343434353534353234353435343436;CP=3;#2017-10-12 08:01:15-MU;P0=-7344;P1=462;P2=-4662;P3=-2220;P5=209;P6=-14632;D=012121213131312121313131312121312121213121312135316525213;CP=1;#2017-10-12 08:01:15-MU;P0=428;P2=92;P3=-1973;P4=282;P5=-9706;P6=214;P7=-7020;D=00020034560630300000003004007000300030305000;CP=0;#2017-10-12 08:01:49-MU;P0=-4581;P1=492;P2=-1988;P3=-12056;P4=156;D=01212121010121212121010121010101213121310101012104;CP=1;#2017-10-12 08:01:49-MU;P0=180;P1=-4582;P2=481;P3=-1968;P4=-9584;P5=92;P6=-164;D=012123232321212323232321212321242321232156;CP=2;#2017-10-12 08:01:49-MU;P0=-2198;P1=474;P2=290;P3=-4554;P5=184;P6=-9576;P7=-17044;D=010102010131310131313101320131050161317161010;CP=1;#2017-10-12 08:02:24-MU;P0=141;P1=-4527;P2=490;P3=-1986;P4=242;P5=-9552;D=0121232121210323232121232323232101232121212321232123432521212123212523232321212323234;CP=2;#2017-10-12 08:02:59-MU;P0=-32001;P1=479;P2=-9592;P3=-4665;P4=-2055;P5=356;P6=-7188;P7=264;D=01213121413531354141413167414141313145313;CP=1;#2017-10-12 08:02:59-MU;P0=-1966;P1=485;P2=-4530;P3=-7757;P5=-17216;P6=220;D=01212121010131310101313121212131012101013121212101560101212121010121213131012101310131;CP=1;#2017-10-12 08:04:08-MU;P0=-4539;P1=478;P2=-1974;P3=-9564;P4=-19564;D=012101010121012101212131010101210101012121214;CP=1;
   version    V 3.3.1-dev SIGNALduino - compiled at Jan  3 2017 23:59:32
   MatchList:
     10:SD_WS07 ^P7#[A-Fa-f0-9]{6}F[A-Fa-f0-9]{2}(#R[A-F0-9][A-F0-9]){0,1}$
     11:SD_WS09 ^P9#F[A-Fa-f0-9]+
     12:SD_WS   ^W\d+x{0,1}#.*
     13:RFXX10REC ^(20|29)[A-Fa-f0-9]+
     14:Dooya   ^P16#[A-Fa-f0-9]+
     15:SOMFY   ^Ys[0-9A-F]+
     16:SD_WS_Maverick ^P47#[A-Fa-f0-9]+
     17:SD_UT   ^u30#.*
     18:FLAMINGO ^P13#[A-Fa-f0-9]+
     19:CUL_WS  ^K[A-Fa-f0-9]{5,}
     1:IT       ^i......
     20:Revolt  ^r[A-Fa-f0-9]{22}
     21:FS10    ^P61#[A-F0-9]+
     22:Siro    ^P72#[A-Fa-f0-9]+
     2:CUL_TCM97001 ^s[A-Fa-f0-9]+
     3:SD_RSL   ^P1#[A-Fa-f0-9]{8}
     4:OREGON   ^(3[8-9A-F]|[4-6][0-9A-F]|7[0-8]).*
     5:CUL_TX   ^TX..........
     6:SD_AS    ^P2#[A-Fa-f0-9]{7,8}
     7:Hideki   ^P12#75[A-F0-9]+
     9:CUL_FHTTK ^T[A-F0-9]{8}
     X:SIGNALduino_un ^[u]\d+#.*
   QUEUE:
   READINGS:
     2017-10-11 21:37:55   ping            OK
     2017-10-12 08:00:12   state           opened
     2017-10-12 08:00:12   version         V 3.3.1-dev SIGNALduino - compiled at Jan  3 2017 23:59:32
   keepalive:
     ok         1
     retry      0
   mcIdList:
   msIdList:
   muIdList:
     72
Attributes:
   development m72m72.1
   flashCommand avrdude -c arduino -b [BAUDRATE] -P [PORT] -p atmega328p -vv -U flash:w:[HEXFILE] 2>[LOGFILE]
   group      CUL
   room       System
   verbose    5
   whitelist_IDs 72


Hier der List des Signalduino
 
Internals:
   CHANNEL    1
   DEF        C443A241
   ID         C443A24
   INFO       limited function without ATTR time_to_open / time_to_close / time_down_to_favorite
   IODev      SIGNALduino
   NAME       Siro_WZ
   NR         576
   STATE      100
   TYPE       Siro
   Version    0.38 2017-09-27 Beta
   aktMsg     stop 0 1507788004.52924
   lastMsg    stop 0 1507788004.52928
   lastProg   0
   position   0
   CODE:
     1          C443A241
   READINGS:
     2017-10-11 22:18:19   parsestate      on
     2017-10-11 22:37:02   position        100
     2017-10-11 22:22:35   prog_mode       inaktiv
     2017-10-11 22:37:02   state           100
Attributes:
   IODev      SIGNALduino
   SignalRepeats 8
   devStateIcon {my $icon = ReadingsVal('Siro_C443A241','state', 0);$icon = (int($icon/10)*10); return '.*:fts_shutter_1w_'.$icon}
   down_limit_mode_1 100
   event-min-interval .*:300
   event-on-change-reading .*
   operation_mode 0
   prog_fav_sequence prog,2,stop,2,stop
   room       WZ
   verbose    5
   webCmd     stop:on:off:fav
   


... und hier der Logauszug:
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MC;LL=-767;LH=707;SL=-400;SH=335;D=4A952AA92A52AA54A8;C=368;L=69;
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MC;LL=-763;LH=714;SL=-394;SH=346;D=4A952AA92A52AA54A8;C=369;L=69;
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MU;P0=-11010;P1=-31896;P2=668;P3=4798;P4=-1583;P5=-420;P6=335;P7=-752;D=03415156767671567676715676767671515156715676767156767156767676767156767671567676710341515676767156767671567676767151515671567676715676715676767676715676767156767671034151567676715676767156767676715151567156767671567671567676767671567676715676767113425256;CP=6;O;
2017.10.12 08:08:55 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:55 5 : SIGNALduino: Starting demodulation at Position 249
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MU;P0=-784;P1=319;P2=686;P3=-410;D=010102310101023101010102323231023101010231010231010;CP=1;
2017.10.12 08:08:55 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:55 5 : SIGNALduino: start pattern for MU Protocol id 72 -> Siro shutter mismatches, aborting
2017.10.12 08:08:55 4 : SIGNALduino/msg READ: MS;P0=-11089;P1=4808;P2=-1554;P3=710;P4=-400;P5=343;P6=-754;D=5012343456565634565656345656565634343456345656563456563456565656563456565634343434;CP=5;SP=0;O;
2017.10.12 08:08:56 4 : SIGNALduino/msg READ: MU;P0=-757;P1=337;P2=709;P3=-401;P4=-11244;P5=4812;P6=-1544;D=010102310101023101010102323231023101010231010231010101010231010102323232314562323101010231010102310101010232323102310101023101023101010101023101010232323231;CP=1;
2017.10.12 08:08:56 4 : SIGNALduino: Fingerprint for MU Protocol id 72 -> Siro shutter matches, trying to demodulate
2017.10.12 08:08:56 5 : SIGNALduino: Starting demodulation at Position 77
2017.10.12 08:08:56 5 : SIGNALduino: dispatching bits: 1 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 1 1 1 0
2017.10.12 08:08:56 4 : SIGNALduino: decoded matched MU Protocol id 72 dmsg P72#C443A2411E length 40
2017.10.12 08:08:56 5 : SIGNALduino Dispatch: P72#C443A2411E, test ungleich: disabled
2017.10.12 08:08:56 5 : SIGNALduino Dispatch: P72#C443A2411E, dispatch
2017.10.12 08:08:56 5 : SIGNALduino: dispatch P72#C443A2411E
2017.10.12 08:08:56 4 : Siro_Parse: msg = C443A2411E length: P72#C443A2411E
2017.10.12 08:08:56 4 : Siro_Parse: rawData = C443A2411E length: 10
2017.10.12 08:08:56 4 : Siro_Parse: converted to bits: 1100010001000011101000100100000100011110
fhemlog'>2017.10.12 08:08:56 4 : Siro_Parse: device ID: C443A242017.10.12 08:08:56 4 : Siro_Parse: Channel: 12017.10.12 08:08:56 4 : Siro_Parse: Cmd: 1  Newstate: off2017.10.12 08:08:56 4 : Siro_Parse: deviceCode: C443A2412017.10.12 08:08:56 4 : def -> HASH(0x3059a38)2017.10.12 08:08:56 4 : Siro_Parse: channel parse-> 1 - devicecode -> C443A2412017.10.12 08:08:56 5 : list -> 2017.10.12 08:08:56 5 : Siro_Parse_Liste: name -> Siro_WZ - chan -> 1 - def -> HASH(0x3059a38) lhash -> HASH(0x3793dc8)2017.10.12 08:08:56 4 : Siro_Parse  Siro_WZ off2017.10.12 08:08:56 4 : Siro_Parse operationmode -> 02017.10.12 08:08:56 4 : Siro_Parse set mode to physical2017.10.12 08:08:56 5 : AUFRUF SIRO_SET :HASH(0x3793dc8), Siro_WZ, off 2017.10.12 08:08:56 5 : -------------START----------------------2017.10.12 08:08:56 5 : Siro_Set hash -> HASH(0x3793dc8)2017.10.12 08:08:56 5 : Siro_Set name -> Siro_WZ2017.10.12 08:08:56 5 : Siro_Set args -> off 2017.10.12 08:08:56 5 : ---------------END--------------------2017.10.12 08:08:56 1 : Siro_Set:limited function without definition of time_to_close and time_to_open. Please define this attributes.2017.10.12 08:08:56 1 : PERL WARNING: Argument "" isn't numeric in multiplication (*) at ./FHEM/98_Siro.pm line 847.2017.10.12 08:08:56 5 : Siro_set: handing over to Siro_Send_Command with following arguments: off 0 2017.10.12 08:08:56 5 : -------------START----------------------2017-10-12 08:08:56 Siro Siro_WZ parsestate: off
2017-10-12 08:08:56 Siro Siro_WZ 0
2017-10-12 08:08:56 Siro Siro_WZ position: 0
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-766;LH=704;SL=-402;SH=330;D=254A554924;C=366;L=38;
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-761;LH=712;SL=-384;SH=348;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:08:59 4 : SIGNALduino/msg READ: MC;LL=-771;LH=706;SL=-397;SH=334;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=4A952AA92A52AA492;C=367;L=67;
2017.10.12 08:09:00 4 : SIGNALduino/msg READ: MC;LL=-767;LH=704;SL=-394;SH=343;D=A54A9554952955249;C=367;L=68;


Jepp. funktioniert. Anfangs- und Endeposition sind auch definiert und funktioniert

Gruß Dorian
Ich schaue mir das heute abend an , im Moment leider auf der Arbeit.

Gruss Byte09

Gesendet von meinem SM-G900F mit Tapatalk


Byte09

Zitat von: Byte09 am 12 Oktober 2017, 08:37:57
Ich schaue mir das heute abend an , im Moment leider auf der Arbeit.

Gruss Byte09

Gesendet von meinem SM-G900F mit Tapatalk
Sehe aber auf die schnelle , das im signalduino das mc Protokoll aktiviert ist , das solltest du abschalten . Das hat aber nur mit dem Empfang der fb zu tun.

Gruss Byte09

Gesendet von meinem SM-G900F mit Tapatalk


Per

Zitat von: Byte09 am 12 Oktober 2017, 05:51:19Gebraucht wird ja ein "an" und dann ein "stop" .
Nee, eigentlich brauchst du ein "hoch" +  "stop" bzw. "runter" + "stop". Also ein hoch_for_timer und ein runter_for_timer.
Dafür könntest du zwar die Set_Ex nutzen und überschreiben, schneller geht es aber, dafür eigene Befehle zu implementieren. Die dann zwar den gleichen Namen haben können, aber wenn die Set_Ex nicht eingebunden sind, gibt es auch keine Komplikationen.

Byte09

Zitat von: Per am 12 Oktober 2017, 11:37:12
Nee, eigentlich brauchst du ein "hoch" +  "stop" bzw. "runter" + "stop". Also ein hoch_for_timer und ein runter_for_timer.
Dafür könntest du zwar die Set_Ex nutzen und überschreiben, schneller geht es aber, dafür eigene Befehle zu implementieren. Die dann zwar den gleichen Namen haben können, aber wenn die Set_Ex nicht eingebunden sind, gibt es auch keine Komplikationen.
Ist schon klar , die funktionen sind ja bereits drinnen. Es ging ja nur darum , warum ich eben die set Extension nicht nutzen konnte .

Gruss byte

Gesendet von meinem SM-G900F mit Tapatalk


Byte09

@dorian67

habe mich wohl blöd ausgedrückt. den logauszug hätte ich mit einem "on" im Siromudul gebraucht , nicht mit einen "on" ( runter ) auf der fernbedienung. kannst du mir den nochmal einstellen ?

und gib im Signalduino bitte mal folgendes ein :

set SIGNALduino sendMsg 1100010001000011101000100100000100110011#R8

damit sollte der Motor runterfahren. Wenn das nicht geht , stimmt mit dem Signalduino schon etwas nicht.

gruss Byte09


dorian67

Zitat von: Byte09 am 12 Oktober 2017, 19:34:54
@dorian67

habe mich wohl blöd ausgedrückt. den logauszug hätte ich mit einem "on" im Siromudul gebraucht , nicht mit einen "on" ( runter ) auf der fernbedienung. kannst du mir den nochmal einstellen ?

und gib im Signalduino bitte mal folgendes ein :

set SIGNALduino sendMsg 1100010001000011101000100100000100110011#R8

damit sollte der Motor runterfahren. Wenn das nicht geht , stimmt mit dem Signalduino schon etwas nicht.

gruss Byte09

Ok. Habe den Befehl abgesendet und es ist nix passiert.
Werde am Wochenende mal versuchen eine Steckdose mit dem SignalDuino zu schalten. Melde mich dann.
Vielen Dank erst mal und bis ...

Gruß

Dorian

Jewe


dorian67

Hallo nochmal,

habe das Problem gefunden. Hat mir doch keine Ruhe gelassen. Also die Steckdose lies sich schalten. Rollo nicht. Habe dann etwas rumprobiert und den "operation mode" auf "1" gestellt. Danach funktioniert "stop", "on" und "off".

Byte09, danke dir für deine Unterstützung

Gruß

Dorian

Byte09

Zitat von: dorian67 am 12 Oktober 2017, 21:51:04
Hallo nochmal,

habe das Problem gefunden. Hat mir doch keine Ruhe gelassen. Also die Steckdose lies sich schalten. Rollo nicht. Habe dann etwas rumprobiert und den "operation mode" auf "1" gestellt. Danach funktioniert "stop", "on" und "off".

Byte09, danke dir für deine Unterstützung

Gruß

Dorian
Das kann bzw soll aber nicht sein. Der Mode 1 ist ein komplett anderer Betriebsmodus.  In der Kombination wirst du Probleme bekommen , da das Modul immer den Befehl auf einem anderen Kanal weiterleitet,  was er von der fb erkennt.

wenn du im mode 1 sendest, ohne das du einen "mode 1 channel" angegeben hast sendet er auf kanal 0. d.H alle rollos mit der entsprechenden ID reagieren auf das signal. Daher gehe ich jetzt davon aus, das das Device per aotocreate schon nicht korrekt angelegt wurde und einen falschen Kanal beinhaltet ( ggf. wegen nicht abgeschaltetem MC protokoll ? ) . du solltest das device nochmal komplett löschen und neu anlegen. vorher bitte unbedingt sas manchester protokoll im signalduino abschalten wie im ersten beitrag beschrieben.

.... zumindest ist das ein Ansatz , das problem zu suchen.




Gruss byte09

Gesendet von meinem SM-G900F mit Tapatalk


Byte09

Version V 0.42 im Anhang


# 0.34 2017-09-17 Invers Dokumentation, Byte Korrekturen Log
# 0.35 2017-09-24 Byte Fehlerkorrekturen , Einbau Device  mit Kanal 0 als Gruppendevice ( noch gesperrt ) . Attribut "channel" enfernt , Kanalwahl nur noch über das Device möglich .
# 0.36 2017-09-24 Byte Device0 Favoritenanfahrt und Positionsanfahrt durch FHEM möglich
# 0.37 2017-09-25 SMag Prerelease-Vorbereitungen. Codeformatierung, Fehlerkorrekturen, Textkorrekturen.
# 0.38 2017-09-27 optimierung sub Siro_Setgroup($) -> laufzeitverbesserung
#
# 0.39 2017-10-14 Log überarbeitet / Parse überarbeitet / Define überarbeitet / interne Datenstruktur geändert / Internals überarbeitet / Groupdevice ( Kanal 0 ) möglich . Fehlerkorrekturen / attribut down_for_timer und up_for_timer eingebaut
# 0.40 2017-10-15 Code bereinigt
# 0.41 2017-10-17 anpassung der %Sets je nach device ( groupdevice )
# 0.42 2017-10-18 attr "down_auto_stop" eingefügt - beendet runterfahrt durch on/close/fb bei ATTR. weiterfahrt durch nochmalige cmd . Comandref ergänzt


gruss Byte09

Byte09

Zitat von: volschin am 04 Oktober 2017, 00:21:42
Und Apple sagt (wie ca. 9 von 10 Herstellern): 0% = kein Licht, also Rollo zu.
Ist die Frage, ob es aus Kompatibilitätssicht Sinn macht, gegen den Strom der Großen zu schwimmen?

ich habe ein attribut "invert_position" eingebaut, welches bei bedarf gesetzt werden kann . wird mit der nächsten version verfügbar sein.

gruss Byte09

Byte09

#58
Version V 0.44 im Anhang

# 0.43 2017-10-19 Byte attr "invers_position[0/1]" eingefügt. Invertiert positionsanzeige und anfahrt 0 -> 100% = rollo geschlossen - 1 -> 0% =rollo geschlossen
# 0.44 2017-10-19 Byte bugfix -> set favorite. Unterscheidung ob "time_down_to_favorite" gesetzt oder nicht. ( interpretation :favorite programmiert oder nicht ) - entsprechende anpassung des kommandos ( erst löschen -> dann speichern )


bei setzten oder ändern des attributes "invers_position" werden gesetzte Attribute "down_auto_stop" und "down_limit_mode_1" entsprechend umgerechnet und geändert. Das Attribut "devStateIcon" wird ebenfalls angepasst, aber nur dann, wenn das "Standartattribut" gesetzt ist. falls hier eigene devStateIcons definiert sind, müssen diese manuell an die neue Situation angepasst werden.

gruss Byte09

Invers

Ich erhalte folgende Meldung und das Rollo fährt nicht auf Pos 50:

2017.10.23 01:35:20 3: Siro_set: handing over to Siro_Send_Command with following arguments: on 50 0
2017.10.23 01:35:20 2: Siro_sendCommand: execute comand on - sendMsg to HASH(0x439c400) channel 4 -> P72#1000010000110001010011001101010000110011#R9
2017.10.23 01:35:21 1: PERL WARNING: Use of uninitialized value $runningtime in concatenation (.) or string at ./FHEM/98_Siro.pm line 1348.
2017.10.23 01:35:21 1: PERL WARNING: Use of uninitialized value $runningtime in addition (+) at ./FHEM/98_Siro.pm line 1349.
2017.10.23 01:35:21 3: Siro_set: handing over to Siro_Send_Command with following arguments: position 50 0
2017.10.23 01:35:21 1: PERL WARNING: Use of uninitialized value $command in hex at ./FHEM/98_Siro.pm line 332.
2017.10.23 01:35:21 2: Siro_sendCommand: execute comand position - sendMsg to HASH(0x439c400) channel 4 -> P72#1000010000110001010011001101010000000000#R9
2017.10.23 01:35:21 2: Siro_sendCommand: execute comand stop - sendMsg to HASH(0x439c400) channel 4 -> P72#1000010000110001010011001101010001010101#R9
2017.10.23 01:35:28 2: Siro_sendCommand: execute comand stop - sendMsg to HASH(0x439c400) channel 4 -> P72#1000010000110001010011001101010001010101#R9


Ich schalte über ein DOIF 2x aus Sichereitsgründen. Klappt aber trotzdem nicht.
Ich nutze Version 0.44

List vom Device:

Internals:
   CFGFN
   CHANNEL    14
   DEF        84314CDe
   ID         84314CD
   IODev      sduino
   NAME       Siro_SZR
   NR         452
   STATE      0
   TYPE       Siro
   Version    V 0.44
   state      0
   CODE:
     1          84314CDE
   READINGS:
     2017-10-23 08:00:02   position        0
     2017-10-23 08:00:02   state           0
   helper:
     LastMODE   virtual
     MODE       virtual
     aktMsg     position 0 1508738402.16854
     lastMsg    stop 50 1508715328.80938
     lastProg   0
     lastparse
     lastparse_stop stop 1508708425.39511
     parse_aborted 0
     position   0
     positiontimer 23073.3
Attributes:
   IODev      sduino
   SignalLongStopRepeats 15
   SignalRepeats 9
   channel_send_mode_1 4
   cmdIcon    50:rc_RIGHT off:rc_UP on:rc_DOWN stop:rc_STOP
   comment    Geladen am:
21.10.2017
   debug_mode 0
   devStateIcon {my $icon = ReadingsVal('Siro_SZR','state', 0);$icon = (int($icon/10)*10); return '.*:fts_shutter_'.$icon}
   down_auto_stop 0
   down_limit_mode_1 100
   event-min-interval .*:300
   event-on-change-reading .*
   eventMap   /position 50:50/
   fp_Rollo   602,175,2,rechts Schlafzimmer
   genericDeviceType blind
   invers_position 0
   operation_mode 1
   prog_fav_sequence prog,2,stop,2,stop
   room       Rollo,Schlafzimmer
   time_down_to_favorite 13.5
   time_to_close 17
   time_to_open 18
   webCmd     stop:on:off:50
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2