AutoShuttersControl erkennt Rollladenfahrten nicht.

Begonnen von JWRu, 10 April 2020, 08:34:44

Vorheriges Thema - Nächstes Thema

JWRu

ZitatDie neue Version runter laden und bitte den Vorgang wiederholen. Ich habe mehr Ausgaben eingebaut.
Habe ich gemacht.

Event Monitor:
Zitat2020-04-15 10:41:29 DUOFERN Rollladen_EZ_links moving: down
2020-04-15 10:41:29 DUOFERN Rollladen_EZ_links set_down
2020-04-15 10:41:51 DUOFERN Rollladen_EZ_links closed
2020-04-15 10:41:51 DUOFERN Rollladen_EZ_links position: 0
2020-04-15 10:41:51 DUOFERN Rollladen_EZ_links moving: stop

Log:
Zitat2020.04.15 10:41:29 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: down'
        ];
2020.04.15 10:41:29 Notify:  Vor dem Return 2020.04.15 10:41:29 Notify:  Nach dem Return 2020.04.15 10:41:29 Notify:  In der ELSE Condition es wurde nichts weiter erkannt 2020.04.15 10:41:29 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_down'
        ];
2020.04.15 10:41:29 Notify:  Vor dem Return 2020.04.15 10:41:29 Notify:  Nach dem Return 2020.04.15 10:41:29 Notify:  In der ELSE Condition es wurde nichts weiter erkannt 2020.04.15 10:41:32 3: DUOFERN unknown msg: 810100BB00000000000000000000006F529B404B6700
2020.04.15 10:41:51 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: closed',
          'position: 0',
          'moving: stop'
        ];
2020.04.15 10:41:51 Notify:  Vor dem Return 2020.04.15 10:41:51 Notify:  Nach dem Return 2020.04.15 10:41:51 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

CoolTux

Wir haben den Übeltäter. Das RegEx scheint nicht sauber zu sein. Nu muss ich schauen wieso.
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

CoolTux

So ich habe noch eine Version mit mehr Ausgaben. Magst Du bitte testen.
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

CoolTux

Also die RegEx ist soweit in Ordnung, die greift entsprechend. Jetzt kann es nur noch am auslesen des PositionReadings liegen.
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

JWRu

ZitatSo ich habe noch eine Version mit mehr Ausgaben. Magst Du bitte testen.

Event Monitor:
2020-04-15 11:49:31 DUOFERN Rollladen_EZ_links moving: down
2020-04-15 11:49:31 DUOFERN Rollladen_EZ_links set_down
2020-04-15 11:49:52 DUOFERN Rollladen_EZ_links closed
2020-04-15 11:49:52 DUOFERN Rollladen_EZ_links position: 0
2020-04-15 11:49:52 DUOFERN Rollladen_EZ_links moving: stop


Log:
2020.04.15 11:49:31 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: down'
        ];
2020.04.15 11:49:31 Notify:  Vor dem Return
2020.04.15 11:49:31 Notify:  Nach dem Return
2020.04.15 11:49:31 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 11:49:31 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 11:49:31 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 11:49:31 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_down'
        ];
2020.04.15 11:49:31 Notify:  Vor dem Return
2020.04.15 11:49:31 Notify:  Nach dem Return
2020.04.15 11:49:31 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 11:49:31 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 11:49:31 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 11:49:52 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: closed',
          'position: 0',
          'moving: stop'
        ];
2020.04.15 11:49:52 Notify:  Vor dem Return
2020.04.15 11:49:52 Notify:  Nach dem Return
2020.04.15 11:49:52 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 11:49:52 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 11:49:52 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

CoolTux

Ausgabe vor der Condition  - PosReading ist: -pct-

Das ist Dein Problem. Er ist der Meinung pct wäre richtig.

Mach mal bitte

{ ascAPIget('PosCmd','ROLLONAME') }

in der FHEMWEB Kommandozeile
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

JWRu

ZitatMach mal bitte { ascAPIget('PosCmd','ROLLONAME') } in der FHEMWEB Kommandozeile
Es kommt "position"
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

CoolTux

Lade mal bitte die neue Version runter und teste damit noch mal.
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

CoolTux

Wenn das auch nicht klappt lösche bitte im FHEMWEB bei dem Rollo das Attribut ASC_Pos_Reading und setze es danach neu.
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

JWRu

Ich habe die neueste Version noch nicht geladen.
Mit der Vorversion (11:02) wurde das Hochfahren erkannt:
2020.04.15 12:15:53 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: up'
        ];
2020.04.15 12:15:53 Notify:  Vor dem Return
2020.04.15 12:15:53 Notify:  Nach dem Return
2020.04.15 12:15:53 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:15:53 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:15:53 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:15:53 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_up'
        ];
2020.04.15 12:15:53 Notify:  Vor dem Return
2020.04.15 12:15:53 Notify:  Nach dem Return
2020.04.15 12:15:53 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:15:53 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:15:53 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:16:14 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: opened',
          'position: 100',
          'moving: stop'
        ];
2020.04.15 12:16:14 Notify:  Vor dem Return
2020.04.15 12:16:14 Notify:  Nach dem Return
2020.04.15 12:16:14 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:16:14 Notify:  RegEx hat Position erkannt
2020.04.15 12:16:14 Notify:  ASC_Pos_Reading Event vom Rollo wurde erkannt  - RECEIVED EVENT: 2020.04.15 12:16:14 EventProcessingShutters:  Fn wurde durch Notify aufgerufen da ASC_Pos_Reading Event erkannt wurde  - RECEIVED EVENT: $VAR1 = 'state: opened position: 100 moving: stop
';
2020.04.15 12:16:14 - AutoShuttersControl (myASC) - Devname: myASC Name: myASC Notify: $VAR1 = [
          'Rollladen_EZ_links_PosValue: 100'
        ];
2020.04.15 12:16:14 Notify:  Vor dem Return
2020.04.15 12:16:14 Notify:  Nach dem Return
2020.04.15 12:16:14 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:16:14 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:16:14 EventProcessingShutters: Rollladen_EZ_links - Event vom Rollo erkannt. Es wird nun eine etwaige manuelle Fahrt ausgewertet. Int von gettimeofday: 1586945774 Last Position Timestamp: 1586944026 Drive Up Max Duration: 24 Last Position: 100 aktuelle Position: 100
2020.04.15 12:16:14 - AutoShuttersControl (myASC) - Devname: myASC Name: myASC Notify: $VAR1 = [
          'state: manual'
        ];
2020.04.15 12:16:14 Notify:  Vor dem Return
2020.04.15 12:16:14 Notify:  Nach dem Return
2020.04.15 12:16:14 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:16:14 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:16:14 EventProcessingShutters: eine manualle Fahrt wurde erkannt!
2020.04.15 12:16:14 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'ASC_ShuttersLastDrive: manual'
        ];
2020.04.15 12:16:14 Notify:  Vor dem Return
2020.04.15 12:16:14 Notify:  Nach dem Return
2020.04.15 12:16:14 Notify:  Ausgabe vor der Condition  - PosReading ist: -position-
2020.04.15 12:16:14 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:16:14 Notify:  In der ELSE Condition es wurde nichts weiter erkannt


Die neueste Version (12:14) teste ich jetzt mal.
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

CoolTux

Das verstehe ich nicht. Ich ändere rein gar nichts ausser an der Logausgabe.
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

JWRu

Version (12:14)

Event Monitor:
2020-04-15 12:26:00 DUOFERN Rollladen_EZ_links moving: down
2020-04-15 12:26:00 DUOFERN Rollladen_EZ_links set_down
2020-04-15 12:26:21 DUOFERN Rollladen_EZ_links closed
2020-04-15 12:26:21 DUOFERN Rollladen_EZ_links position: 0
2020-04-15 12:26:21 DUOFERN Rollladen_EZ_links moving: stop


Log:
2020.04.15 12:26:00 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: down'
        ];
2020.04.15 12:26:00 Notify:  Vor dem Return
2020.04.15 12:26:00 Notify:  Nach dem Return
2020.04.15 12:26:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:00 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:26:00 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:26:00 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_down'
        ];
2020.04.15 12:26:00 Notify:  Vor dem Return
2020.04.15 12:26:00 Notify:  Nach dem Return
2020.04.15 12:26:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:00 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:26:00 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:26:02 3: DUOFERN unknown msg: 810100BB00000000000000000000006F529B404B6700
2020.04.15 12:26:21 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: closed',
          'position: 0',
          'moving: stop'
        ];
2020.04.15 12:26:21 Notify:  Vor dem Return
2020.04.15 12:26:21 Notify:  Nach dem Return
2020.04.15 12:26:21 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:21 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:26:21 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:26:21 Notify:  In der ELSE Condition es wurde nichts weiter erkannt


Wieder das Problem mit pct. Ich setze jetzt mal ASC_Pos_Reading neu.
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

JWRu

Immer noch pct. Wie man im Log sieht, hat ASC mitbekommen, dass ASC_Pos_Reading gelöscht und anschließend neu gesetzt wurde:
2020.04.15 12:30:49 - AutoShuttersControl (myASC) - Devname: global Name: myASC Notify: $VAR1 = [
          'DELETEATTR Rollladen_EZ_links ASC_Pos_Reading'
        ];
2020.04.15 12:30:49 Notify:  Vor dem Return
2020.04.15 12:30:49 Notify:  Nach dem Return
2020.04.15 12:30:49 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:30:49 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:30:49 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:31:31 - AutoShuttersControl (myASC) - Devname: global Name: myASC Notify: $VAR1 = [
          'ATTR Rollladen_EZ_links ASC_Pos_Reading position'
        ];
2020.04.15 12:31:31 Notify:  Vor dem Return
2020.04.15 12:31:31 Notify:  Nach dem Return
2020.04.15 12:31:31 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:31:31 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:31:31 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:31:56 - AutoShuttersControl (myASC) - Devname: global Name: myASC Notify: $VAR1 = [
          'SAVE'
        ];
2020.04.15 12:31:56 Notify:  Vor dem Return
2020.04.15 12:31:56 Notify:  Nach dem Return
2020.04.15 12:31:56 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:31:56 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:31:56 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:34:00 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: down'
        ];
2020.04.15 12:34:00 Notify:  Vor dem Return
2020.04.15 12:34:00 Notify:  Nach dem Return
2020.04.15 12:34:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:00 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:34:00 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:34:00 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_down'
        ];
2020.04.15 12:34:00 Notify:  Vor dem Return
2020.04.15 12:34:00 Notify:  Nach dem Return
2020.04.15 12:34:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:00 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:00 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:34:00 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:34:04 3: ZWave got config for popp/700168.xml from ./FHEM/lib/openzwave_deviceconfig.xml.gz
2020.04.15 12:34:20 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: closed',
          'position: 0',
          'moving: stop'
        ];
2020.04.15 12:34:20 Notify:  Vor dem Return
2020.04.15 12:34:20 Notify:  Nach dem Return
2020.04.15 12:34:20 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:20 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:34:20 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:34:20 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

CoolTux

Gut. Ich habe einen kleinen Zaubertrick gebaut. Ändere bitte zu Testzwecken bei diesem Rollo einmal das ASC Attribut auf 1.
Dann setzt Du die Attribute, NUR wenn noch nicht geschehen,
ASC_Open_Pos 100
ASC_Closed_Pos 0
ASC_Shading_Pos 20
ASC_Ventilate_Pos 30
ASC_ComfortOpen_Pos 80

Wie gesagt nur setzen sofern noch nicht geschehen.

Und dann noch mal bitte testen.
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

JWRu

ZitatUnd dann noch mal bitte testen.
2020.04.15 12:59:10 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'moving: down'
        ];
2020.04.15 12:59:10 Notify:  Vor dem Return
2020.04.15 12:59:10 Notify:  Nach dem Return
2020.04.15 12:59:10 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:10 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:10 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:59:10 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:59:10 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'set_down'
        ];
2020.04.15 12:59:10 Notify:  Vor dem Return
2020.04.15 12:59:10 Notify:  Nach dem Return
2020.04.15 12:59:10 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:10 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:10 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:59:10 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
2020.04.15 12:59:30 - AutoShuttersControl (myASC) - Devname: Rollladen_EZ_links Name: myASC Notify: $VAR1 = [
          'state: closed',
          'moving: stop',
          'position: 0'
        ];
2020.04.15 12:59:30 Notify:  Vor dem Return
2020.04.15 12:59:30 Notify:  Nach dem Return
2020.04.15 12:59:30 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:30 Notify:  Ausgabe vor der Condition  - PosReading ist: -pct-
2020.04.15 12:59:30 Notify:  RegEx hat Position NICHT erkannt
2020.04.15 12:59:30 Notify:  In der ELSE Condition es wurde nichts weiter erkannt
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter