Update vom 21.02.19 00_SIGNALduino.pm kann Siro nicht mehr schalten

Begonnen von Invers, 21 Februar 2019, 13:03:26

Vorheriges Thema - Nächstes Thema

Ralf9

Es ist mittlerweile ein workaround eingebaut mit dem der Protokollhash vom svn nachgeladen wird.

%ProtocolListSIGNALduino = SIGNALduino_LoadProtocolHash("$attr{global}{modpath}/FHEM/lib/signalduino_protocols.hash");
if (exists($ProtocolListSIGNALduino{error})  ) {
        Log3 "SIGNALduino", 1, "Error loading protocol hash. module is not in standalone mode:($ProtocolListSIGNALduino{error}). Try loading from svn.fhem.de";
        delete($ProtocolListSIGNALduino{error});
        %ProtocolListSIGNALduino = eval GetFileFromURL("https://svn.fhem.de/fhem/trunk/fhem/FHEM/lib/signalduino_protocols.hash",4,"",1,4);


Gruß Ralf
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Loki

Bei mir geht es mit der aktuellen Version (16472) leider nichts mehr.

2019.03.21 12:05:03 1 : PERL WARNING: Use of uninitialized value $hashstring in concatenation (.) or string at ./FHEM/98_Siro.pm line 2060.
2019.03.21 12:05:03 1 : stacktrace:
2019.03.21 12:05:03 1 : main::__ANON__ called by ./FHEM/98_Siro.pm (2060)
2019.03.21 12:05:03 1 : main::Siro_Testgroup called by ./FHEM/98_Siro.pm (1162)
2019.03.21 12:05:03 1 : main::Siro_Set called by fhem.pl (3684)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (1882)
2019.03.21 12:05:03 1 : main::DoSet called by fhem.pl (1914)
2019.03.21 12:05:03 1 : main::CommandSet called by fhem.pl (1228)
2019.03.21 12:05:03 1 : main::AnalyzeCommand called by fhem.pl (1081)
2019.03.21 12:05:03 1 : main::AnalyzeCommandChain called by ./FHEM/01_FHEMWEB.pm (2666)
2019.03.21 12:05:03 1 : main::FW_fC called by ./FHEM/01_FHEMWEB.pm (896)
2019.03.21 12:05:03 1 : main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (567)
2019.03.21 12:05:03 1 : main::FW_Read called by fhem.pl (3689)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (744)
2019.03.21 12:05:03 1 : PERL WARNING: Use of uninitialized value $devicestring in concatenation (.) or string at ./FHEM/98_Siro.pm line 2067.
2019.03.21 12:05:03 1 : stacktrace:
2019.03.21 12:05:03 1 : main::__ANON__ called by ./FHEM/98_Siro.pm (2067)
2019.03.21 12:05:03 1 : main::Siro_Testgroup called by ./FHEM/98_Siro.pm (1162)
2019.03.21 12:05:03 1 : main::Siro_Set called by fhem.pl (3684)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (1882)
2019.03.21 12:05:03 1 : main::DoSet called by fhem.pl (1914)
2019.03.21 12:05:03 1 : main::CommandSet called by fhem.pl (1228)
2019.03.21 12:05:03 1 : main::AnalyzeCommand called by fhem.pl (1081)
2019.03.21 12:05:03 1 : main::AnalyzeCommandChain called by ./FHEM/01_FHEMWEB.pm (2666)
2019.03.21 12:05:03 1 : main::FW_fC called by ./FHEM/01_FHEMWEB.pm (896)
2019.03.21 12:05:03 1 : main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (567)
2019.03.21 12:05:03 1 : main::FW_Read called by fhem.pl (3689)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (744)
2019.03.21 12:05:03 1 : PERL WARNING: Argument "undef" isn't numeric in division (/) at ./FHEM/98_Siro.pm line 1254.
2019.03.21 12:05:03 1 : stacktrace:
2019.03.21 12:05:03 1 : main::__ANON__ called by ./FHEM/98_Siro.pm (1254)
2019.03.21 12:05:03 1 : main::Siro_Set called by fhem.pl (3684)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (1882)
2019.03.21 12:05:03 1 : main::DoSet called by fhem.pl (1914)
2019.03.21 12:05:03 1 : main::CommandSet called by fhem.pl (1228)
2019.03.21 12:05:03 1 : main::AnalyzeCommand called by fhem.pl (1081)
2019.03.21 12:05:03 1 : main::AnalyzeCommandChain called by ./FHEM/01_FHEMWEB.pm (2666)
2019.03.21 12:05:03 1 : main::FW_fC called by ./FHEM/01_FHEMWEB.pm (896)
2019.03.21 12:05:03 1 : main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (567)
2019.03.21 12:05:03 1 : main::FW_Read called by fhem.pl (3689)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (744)
2019.03.21 12:05:03 1 : PERL WARNING: Argument "undef" isn't numeric in division (/) at ./FHEM/98_Siro.pm line 1255.
2019.03.21 12:05:03 1 : stacktrace:
2019.03.21 12:05:03 1 : main::__ANON__ called by ./FHEM/98_Siro.pm (1255)
2019.03.21 12:05:03 1 : main::Siro_Set called by fhem.pl (3684)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (1882)
2019.03.21 12:05:03 1 : main::DoSet called by fhem.pl (1914)
2019.03.21 12:05:03 1 : main::CommandSet called by fhem.pl (1228)
2019.03.21 12:05:03 1 : main::AnalyzeCommand called by fhem.pl (1081)
2019.03.21 12:05:03 1 : main::AnalyzeCommandChain called by ./FHEM/01_FHEMWEB.pm (2666)
2019.03.21 12:05:03 1 : main::FW_fC called by ./FHEM/01_FHEMWEB.pm (896)
2019.03.21 12:05:03 1 : main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (567)
2019.03.21 12:05:03 1 : main::FW_Read called by fhem.pl (3689)
2019.03.21 12:05:03 1 : main::CallFn called by fhem.pl (744)
2019-03-21 12:05:03 Siro Rollo_Gruppe action: up
2019-03-21 12:05:03 Siro Rollo_Gruppe 0
2019-03-21 12:05:03 Siro Rollo_Gruppe position: 0
2019-03-21 12:05:03 Siro Rollo_Sofa action: up
2019-03-21 12:05:03 Siro Rollo_Sofa 0
2019-03-21 12:05:03 Siro Rollo_Sofa position: 0
2019.03.21 12:05:03 5 : Siro_sendCommand: BinHash: = 1110001000110010001111100010
2019.03.21 12:05:03 5 : Siro_sendCommand: BinCommand: = 00010001
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro set value = Rollo_Sofa off 0 0
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro_sendCommand: Rollo_Sofa -> message :P72#1110001000110010001111100010000100010001#R8:
2019.03.21 12:05:03 5 : SIGNALduino/write: sending via Set sendMsg P72#1110001000110010001111100010000100010001#R8
2019.03.21 12:05:03 5 : SIGNALduino: sendmsg msg=P72#1110001000110010001111100010000100010001#R8
2019.03.21 12:05:03 2 : Siro_sendCommand: name -> Rollo_Sofa command -> off channel -> 1 bincmd -> 00010001
2019-03-21 12:05:03 Siro Rollo_Garten_links action: up
2019-03-21 12:05:03 Siro Rollo_Garten_links 0
2019-03-21 12:05:03 Siro Rollo_Garten_links position: 0
2019.03.21 12:05:03 5 : Siro_sendCommand: BinHash: = 1110001000110010001111100010
2019.03.21 12:05:03 5 : Siro_sendCommand: BinCommand: = 00010001
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro set value = Rollo_Garten_links off 0 0
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro_sendCommand: Rollo_Garten_links -> message :P72#1110001000110010001111100010001000010001#R8:
2019.03.21 12:05:03 5 : SIGNALduino/write: sending via Set sendMsg P72#1110001000110010001111100010001000010001#R8
2019.03.21 12:05:03 5 : SIGNALduino: sendmsg msg=P72#1110001000110010001111100010001000010001#R8
2019.03.21 12:05:03 2 : Siro_sendCommand: name -> Rollo_Garten_links command -> off channel -> 2 bincmd -> 00010001
2019-03-21 12:05:03 Siro Rollo_Garten_rechts action: up
2019-03-21 12:05:03 Siro Rollo_Garten_rechts 0
2019-03-21 12:05:03 Siro Rollo_Garten_rechts position: 0
2019.03.21 12:05:03 5 : Siro_sendCommand: BinHash: = 1110001000110010001111100010
2019.03.21 12:05:03 5 : Siro_sendCommand: BinCommand: = 00010001
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro set value = Rollo_Garten_rechts off 0 0
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro_sendCommand: Rollo_Garten_rechts -> message :P72#1110001000110010001111100010010000010001#R8:
2019.03.21 12:05:03 5 : SIGNALduino/write: sending via Set sendMsg P72#1110001000110010001111100010010000010001#R8
2019.03.21 12:05:03 5 : SIGNALduino: sendmsg msg=P72#1110001000110010001111100010010000010001#R8
2019.03.21 12:05:03 2 : Siro_sendCommand: name -> Rollo_Garten_rechts command -> off channel -> 4 bincmd -> 00010001
2019-03-21 12:05:03 Siro Rollo_Garten_tuer action: up
2019-03-21 12:05:03 Siro Rollo_Garten_tuer 0
2019-03-21 12:05:03 Siro Rollo_Garten_tuer position: 0
2019.03.21 12:05:03 5 : Siro_sendCommand: BinHash: = 1110001000110010001111100010
2019.03.21 12:05:03 5 : Siro_sendCommand: BinCommand: = 00010001
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro set value = Rollo_Garten_tuer off 0 0
2019.03.21 12:05:03 5 : Siro_sendCommand: Siro_sendCommand: Rollo_Garten_tuer -> message :P72#1110001000110010001111100010001100010001#R8:
2019.03.21 12:05:03 5 : SIGNALduino/write: sending via Set sendMsg P72#1110001000110010001111100010001100010001#R8
2019.03.21 12:05:03 5 : SIGNALduino: sendmsg msg=P72#1110001000110010001111100010001100010001#R8
2019.03.21 12:05:03 2 : Siro_sendCommand: name -> Rollo_Garten_tuer command -> off channel -> 3 bincmd -> 00010001
2019-03-21 12:05:04 Siro Rollo_Gruppe action: no action



über Alexa:
2019.03.21 12:08:01 5 : Siro_Set: aufgerufen -> cmd -> position args -> position 75 0
2019.03.21 12:08:01 5 : Siro_Set:newposstate -> 75
2019.03.21 12:08:01 5 : Siro_set: test auf double stop
2019.03.21 12:08:01 5 : Siro_set: testprogmode -> 1553166481.05445
2019.03.21 12:08:01 5 : Siro_set: lastprogmode -> 0
2019.03.21 12:08:01 5 : Siro_set: lastaction -> position
2019.03.21 12:08:01 5 : Siro_set: cmd -> position
2019.03.21 12:08:01 5 : Siro_Set: teste autostop: 0 < 100 0 < 0 - position
2019.03.21 12:08:01 5 : Siro_Set: nodrive -> false
2019-03-21 12:08:01 Siro Rollo_Garten_rechts action: down to position 75
2019.03.21 12:08:01 5 : Siro_Set: direkt positiondrive: -> timing: (18.75 = 75*0.25) -> close runningtime:18.75 - modification in % :75
2019.03.21 12:08:01 5 : Siro_Set: direkt positiondrive: -> setting timer to 18.75
2019.03.21 12:08:01 5 : Siro_Set: kein stateupdate erfolgt
2019.03.21 12:08:01 5 : Siro_set: handing over to Siro_Send_Command with following arguments: on 75 0
2019.03.21 12:08:01 5 : Siro_sendCommand: hash -> HASH(0x55c92db8c2a0) - Rollo_Garten_rechts -> cmd :on: - args -> on 75 0
2019.03.21 12:08:01 5 : Siro_sendCommand: operationmode -> 0
2019.03.21 12:08:01 2 : Siro_sendCommand: name -> Rollo_Garten_rechts command -> on channel -> 4 bincmd -> 00110011
2019.03.21 12:08:01 5 : Siro_set: runningtime -> 0.00517797470092773


über Homebridge:
2019.03.21 12:09:18 5 : Siro_Set: aufgerufen -> cmd -> position args -> position 0 0
2019.03.21 12:09:18 5 : Siro_Set:newposstate -> 0
2019.03.21 12:09:18 5 : Siro_set: test auf double stop
2019.03.21 12:09:18 5 : Siro_set: testprogmode -> 1553166558.34839
2019.03.21 12:09:18 5 : Siro_set: lastprogmode -> 0
2019.03.21 12:09:18 5 : Siro_set: lastaction -> position
2019.03.21 12:09:18 5 : Siro_set: cmd -> position
2019.03.21 12:09:18 5 : Siro_Set: teste autostop: 0 < 100 100 < 0 - position
2019.03.21 12:09:18 5 : recognized position 0
2019-03-21 12:09:18 Siro Rollo_Garten_rechts action: up
2019.03.21 12:09:18 4 : Siro_Set: aktposition -> 100 - percenttorun -> 100 - offdirekttime -> 0.25
2019.03.21 12:09:18 4 : Siro_Set: voraussichtliche fahrdauer bis 0%: -> 25
2019.03.21 12:09:18 5 : Siro_Set: stateupdate erfolgt -> 0
2019-03-21 12:09:18 Siro Rollo_Garten_rechts 0
2019-03-21 12:09:18 Siro Rollo_Garten_rechts position: 0
2019.03.21 12:09:18 5 : Siro_set: handing over to Siro_Send_Command with following arguments: off 0 0
2019.03.21 12:09:18 5 : Siro_sendCommand: hash -> HASH(0x55c92db8c2a0) - Rollo_Garten_rechts -> cmd :off: - args -> off 0 0
2019.03.21 12:09:18 5 : Siro_sendCommand: operationmode -> 0
2019.03.21 12:09:18 2 : Siro_sendCommand: name -> Rollo_Garten_rechts command -> off channel -> 4 bincmd -> 00010001
2019.03.21 12:09:18 5 : Siro_set: runningtime -> 0.00469207763671875



Eigenartig ist auch noch, dass bei gleichem Mapping, Alexa auf 75% fahren will, Siri auf 100% beim Kommando "hoch".

list vom device:
Internals:
   CFGFN      FHEM/fhem_WOHN_SCHLAF.cfg
   CHANNEL    4
   DEF        E2323E24
   FUUID      5c43a4ef-f33f-a31c-4675-ccfa42a5d86fce27
   ID         E2323E2
   IODev      SIGNALduino
   NAME       Rollo_Garten_rechts
   NR         237
   NTFY_ORDER 50-Rollo_Garten_rechts
   STATE      0
   TYPE       Siro
   Version    V 0.49
   state      0
   CODE:
     1          E2323E24
   READINGS:
     2019-03-21 12:09:44   action          no action
     2019-03-21 12:07:23   last_reset_os   28
     2019-03-21 12:09:44   operating_seconds 1977.24
     2019-03-21 12:09:18   position        0
     2019-03-21 12:09:18   state           0
   helper:
     LastMODE   virtual
     MODE       virtual
     aktMsg     position 0 1553166558.34876
     lastMsg    position 100 1553166522.75891
     lastProg   0
     lastparse 
     lastparse_stop stop 1540383714.7373
     motorstart 1553166558.35289
     parse_aborted 0
     position   0
     positiontimer 35.5
Attributes:
   DbLogExclude .*
   IODev      SIGNALduino
   SignalLongStopRepeats 15
   SignalRepeats 8
   alexaName  Rollo Garten rechts
   alias      Rollo Garten rechts
   devStateIcon {return '.*:fts_shutter_1w_'.(int($state/10)*10)}
   down_auto_stop 0
   down_limit_mode_1 100
   eventMap   off:hoch on:runter
   genericDeviceType blind
   homebridgeMapping TargetPosition=position,cmd=position,cmds=100:on,invert=1,minValue=0,maxValue=100,minStep=1
CurrentPosition=position,cmd=position,invert=1,minValue=0,maxValue=100,minStep=1
   invers_position 0
   operation_mode 0
   prog_fav_sequence prog,2,stop,2,stop
   room       01_Wohnzimmer,Alexa,Homekit,Siro
   time_to_close 25
   time_to_open 25
   verbose    0
   webCmd     hoch:runter

Ralf9

Wenn Du im "Information menu" mit "Display protocollist" die Protocollist Overview öffnest, wird dann auch die ID 72 angezeigt?
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Loki

Oh, da steht ,,whitelist active" als Titel, aber keine weiteren Einträge drin.
Nur in den Attributen habe ich den Eintrag ,,whitelist_IDs 72"


Ralf9

Solange da keine Einträge drin sind, kann es nicht funktionieren.
Bei dir hat anscheinend das nachladen vom protocollhash nicht geklappt.

Damit müsste es funktionieren
update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/master/controls_signalduino.txt
FHEM auf Cubietruck mit Igor-Image, SSD und  hmland + HM-CFG-USB-2,  HMUARTLGW Lan,   HM-LC-Bl1PBU-FM, HM-CC-RT-DN, HM-SEC-SC-2, HM-MOD-Re-8, HM-MOD-Em-8
HM-Wired:  HMW_IO_12_FM, HMW_Sen_SC_12_DR, Selbstbau IO-Module HBW_IO_SW
Maple-SIGNALduino, WH3080,  Hideki, Id 7

Loki

ok, nun reagieren die Rollos wieder. Danke.

Aber das Verhalten bei Alexa, dass nur bis zur 75% Marke hoch fährt, Homebridge aber bei gleichem Befehl vollständig öffnet besteht immer noch.
Woran könnte das liegen?

justme1968

alexa kennt rein ganz rauf oder ganz runter. rauf und runter fahren jeweils nur ein stück. ganz rauf und ganz runter geht nur über eine direkte prozentangabe.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Loki

Eigenartig, bis vor kurzem es über Alexa mit ,,Rollo hoch" und ,,Rollo runter" Problemlos.

Sidey

Zitat von: Loki am 21 März 2019, 12:10:58
Bei mir geht es mit der aktuellen Version (16472) leider nichts mehr.

Dies Stacktrace Fehler, kommen alle vom Siro Modul.
Signalduino, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker