AutoshuttersControl: Shelly reagiert nur auf morgens hoch

Begonnen von MichaelO, 16 März 2023, 09:24:36

Vorheriges Thema - Nächstes Thema

MichaelO

Moin,

ich bei meinen 3 Rollos die Z-Wave-Schalter gegen Shelly Plus 2PM getauscht. Nach dem Einbinden über MQTT2 in fhem habe ich dann für jedes Rollo ASC 2 angelegt und die alten Z-Wave-Schalter in fhem gelöscht. Dann hab ich im ASC-Device scanForShutters ausgeführt und anschließend createNewNotifyDev. Dann hab ich vorsichtshalber fhem neu gestartet. Dann habe ich in allen Rollo-Devices ASC konfiguriert mit den identischen Parametern der alten Rollo-Schalter und fhem wieder neu gestartet. Im ASC Device tauchen alle 3 Shelly-Rollos unter ASC Configuration and Information Summary mit den korrekten Daten auf. Dann hab ich noch die Homebridge-Parameter eingegeben und abermals neu gestartet.

Alle 3 Rollos fahren morgens korrekt hoch, jedoch Abends nicht runter. Wiggle geht bei allen, ebenso die Siri-Steuerung rauf/runter/Position. Auch reagiert keiner der 3 Rollos auf die HomeMatic Fensterkontakte bei Fenster auf/zu, obwohl die notwendigen Parameter 1:1 von den alten Z-Wave-Schaltern übernommen wurde. Ich hab fhem inzwischen mehrfach neu gestartet, keine Änderung. Wo kann sich ggf. AutoshuttersControl aufgefangen/verhaspelt haben und wie bekomme ich das wieder weg?

Hier ein Auszug aus dem Log mit Verbose 5 im ASC-Device beim öffnen/schließen eines Fensters im Büro (Fensterkontakt = FK_BR_Fenster_links und Shelly = RS_BR_Rolladen):

2023.03.16 09:19:52 4: AutoShuttersControl (Rollladensteuerung) - Devname: global Name: Rollladensteuerung Notify: $VAR1 = [
          'ATTR Rollladensteuerung verbose 5'
        ];

2023.03.16 09:19:52 4: AutoShuttersControl (Rollladensteuerung) - ShuttersControl: Devicename eq global
2023.03.16 09:19:56 4: AutoShuttersControl (Rollladensteuerung) - Devname: FK_BR_Fenster_links Name: Rollladensteuerung Notify: $VAR1 = [
          'battery: ok',
          'commState: CMDs_done',
          'contact: open (to HMLAN1)',
          'state: open',
          'trigDst_2BA0DC: noConfig',
          'trigger_cnt: 52'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_BR_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'rpc_params_cover_0_aenergy_minute_ts: 1678954799',
          'rpc_params_cover_0_aenergy_by_minute_2: 696.669',
          'rpc_params_cover_0_aenergy_by_minute_1: 0.000',
          'rpc_params_cover_0_id: 0',
          'rpc_params_cover_0_aenergy_total: 22.152',
          'rpc_dst: shellyplus2pm-c049ef86a27c/events',
          'rpc_method: NotifyStatus',
          'rpc_src: shellyplus2pm-c049ef86a27c',
          'rpc_params_cover_0_aenergy_by_minute_3: 0.000',
          'rpc_params_ts: 1678954800.01'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_BR_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'state: stopped',
          'status_pos_control: true',
          'status_temperature_tF: 125.6',
          'status_aenergy_total: 22.152',
          'temperature: 52.0',
          'status_pf: 0.00',
          'status_aenergy_by_minute_2: 696.669',
          'status_id: 0',
          'status_aenergy_by_minute_1: 0.000',
          'pct: 50',
          'status_apower: 0.0',
          'status_current: 0.000',
          'status_aenergy_by_minute_3: 0.000',
          'status_aenergy_minute_ts: 1678954799',
          'status_source: timeout',
          'status_voltage: 241.8'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'RS_BR_Rolladen_PosValue: 50'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'state: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_BR_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShuttersLastDrive: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WZ_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'rpc_params_cover_0_id: 0',
          'rpc_params_cover_0_aenergy_by_minute_1: 0.000',
          'rpc_params_cover_0_aenergy_by_minute_2: 0.000',
          'rpc_params_cover_0_aenergy_minute_ts: 1678954799',
          'rpc_params_ts: 1678954800.02',
          'rpc_params_cover_0_aenergy_by_minute_3: 0.000',
          'rpc_src: shellyplus2pm-c049ef85bbe0',
          'rpc_method: NotifyStatus',
          'rpc_params_cover_0_aenergy_total: 51.162',
          'rpc_dst: shellyplus2pm-c049ef85bbe0/events'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WZ_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'status_aenergy_by_minute_2: 0.000',
          'status_id: 0',
          'status_aenergy_by_minute_1: 0.000',
          'temperature: 44.6',
          'status_pf: 0.00',
          'status_temperature_tF: 112.3',
          'status_aenergy_total: 51.162',
          'state: open',
          'status_pos_control: true',
          'status_source: limit_switch',
          'status_voltage: 241.7',
          'status_aenergy_by_minute_3: 0.000',
          'status_aenergy_minute_ts: 1678954799',
          'pct: 100',
          'status_apower: 0.0',
          'status_current: 0.000'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'RS_WZ_Rolladen_PosValue: 100'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'state: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WZ_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShuttersLastDrive: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'rpc_params_ts: 1678954800.04',
          'rpc_src: shellyplus2pm-c049ef8db34c',
          'rpc_params_cover_0_aenergy_by_minute_3: 0.000',
          'rpc_method: NotifyStatus',
          'rpc_params_cover_0_aenergy_total: 6.840',
          'rpc_dst: shellyplus2pm-c049ef8db34c/events',
          'rpc_params_cover_0_aenergy_by_minute_1: 0.000',
          'rpc_params_cover_0_id: 0',
          'rpc_params_cover_0_aenergy_by_minute_2: 0.000',
          'rpc_params_cover_0_aenergy_minute_ts: 1678954799'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'status_temperature_tF: 107.9',
          'status_aenergy_total: 6.840',
          'state: open',
          'status_pos_control: true',
          'status_aenergy_by_minute_2: 0.000',
          'status_id: 0',
          'status_aenergy_by_minute_1: 0.000',
          'temperature: 42.1',
          'status_pf: 0.00',
          'status_aenergy_by_minute_3: 0.000',
          'status_aenergy_minute_ts: 1678954799',
          'pct: 100',
          'status_apower: 0.0',
          'status_current: 0.000',
          'status_source: limit_switch',
          'status_voltage: 241.7'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'RS_WS_Rolladen_PosValue: 100'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'state: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'status_aenergy_by_minute_3: 0.000',
          'status_aenergy_minute_ts: 1678954799',
          'status_apower: 0.0',
          'pct: 100',
          'status_current: 0.000',
          'status_voltage: 241.7',
          'status_source: limit_switch',
          'status_temperature_tF: 107.9',
          'status_aenergy_total: 6.840',
          'status_pos_control: true',
          'state: open',
          'status_aenergy_by_minute_2: 0.000',
          'status_aenergy_by_minute_1: 0.000',
          'status_id: 0',
          'status_pf: 0.00',
          'temperature: 42.1'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'RS_WS_Rolladen_PosValue: 100'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: Rollladensteuerung Name: Rollladensteuerung Notify: $VAR1 = [
          'state: manual'
        ];

2023.03.16 09:19:59 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShuttersLastDrive: manual'
        ];

2023.03.16 09:20:00 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShuttersLastDrive: manual'
        ];

2023.03.16 09:20:01 4: AutoShuttersControl (Rollladensteuerung) - Devname: FK_BR_Fenster_links Name: Rollladensteuerung Notify: $VAR1 = [
          'battery: ok',
          'commState: CMDs_done',
          'contact: closed (to HMLAN1)',
          'state: closed',
          'trigDst_2BA0DC: noConfig',
          'trigger_cnt: 53'
        ];

2023.03.16 09:20:06 4: AutoShuttersControl (Rollladensteuerung) - Devname: global Name: Rollladensteuerung Notify: $VAR1 = [
          'ATTR WR_3_192.168.30.4_53254 room Connections'
        ];

2023.03.16 09:20:06 4: AutoShuttersControl (Rollladensteuerung) - ShuttersControl: Devicename eq global
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Devname: AU_Sonnensensor Name: Rollladensteuerung Notify: $VAR1 = [
          'VAD: 0.11',
          'VDD: 5.1',
          'vis: 0.0039056',
          'temperature: 2.5625',
          'Helligkeit: 3493',
          'Einstrahlung: 67.95744',
          'Einstrahlung_Mittelwert: 67.108'
        ];

2023.03.16 09:20:07 4: AutoShuttersControl (RS_WS_Rolladen) - EventProcessingShadingBrightness
2023.03.16 09:20:07 4: AutoShuttersControl (RS_WS_Rolladen) - EventProcessingShadingBrightness
            Brightness: 3493
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WS_Rolladen Azimuth: 129.1 Elevation: 24.1 Brightness: 3493 OutTemp: 1.5
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WS_Rolladen Nach dem return
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WS_Rolladen In der Out Abfrage, Shadingwert: out, Zeitstempel: 1678890473
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WS_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShadingMessage: INFO: current shading status is \'out\' - next check in 10m'
        ];

2023.03.16 09:20:07 4: AutoShuttersControl (RS_WZ_Rolladen) - EventProcessingShadingBrightness
2023.03.16 09:20:07 4: AutoShuttersControl (RS_WZ_Rolladen) - EventProcessingShadingBrightness
            Brightness: 3493
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WZ_Rolladen Azimuth: 129.1 Elevation: 24.1 Brightness: 3493 OutTemp: 1.5
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WZ_Rolladen Nach dem return
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_WZ_Rolladen In der Out Abfrage, Shadingwert: out, Zeitstempel: 1678890473
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_WZ_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShadingMessage: INFO: current shading status is \'out\' - next check in 7.5m'
        ];

2023.03.16 09:20:07 4: AutoShuttersControl (RS_BR_Rolladen) - EventProcessingShadingBrightness
2023.03.16 09:20:07 4: AutoShuttersControl (RS_BR_Rolladen) - EventProcessingShadingBrightness
            Brightness: 3493
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_BR_Rolladen Azimuth: 129.1 Elevation: 24.1 Brightness: 3493 OutTemp: 1.5
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_BR_Rolladen Nach dem return
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Shading Processing, Rollladen: RS_BR_Rolladen In der Out Abfrage, Shadingwert: out, Zeitstempel: 1678890473
2023.03.16 09:20:07 4: AutoShuttersControl (Rollladensteuerung) - Devname: RS_BR_Rolladen Name: Rollladensteuerung Notify: $VAR1 = [
          'ASC_ShadingMessage: INFO: current shading status is \'out\' - next check in 7.5m'
        ];

2023.03.16 09:20:08 4: AutoShuttersControl (Rollladensteuerung) - Devname: global Name: Rollladensteuerung Notify: $VAR1 = [
          'ATTR WR_3_192.168.30.4_53256 room Connections'
        ];

2023.03.16 09:20:08 4: AutoShuttersControl (Rollladensteuerung) - ShuttersControl: Devicename eq global


Gruß
Michael

loetmeister

Hi,

im log steht viel "LastDrive Manual" - schicken die Shellys regelmäßig ihre Position und hast du im ASC device ASC_blockAscDrivesAfterManual gesetzt (bzw. nicht, dann ist es auch aktiv), das unterbindet eventuell die automatische Fahrten?

Gruß,
Thomas

MichaelO

Moin,
also die Position wird alle 60s mit einigen anderen Werten von den Shellys per MQTT übertragen, das klappt. BlockASCDrives... ist auf 0 (bzw. nicht gesetzt). Der letzte Status manuell im Log kommt daher, dass ich zuvor manuell etwas geschlossen hatte, um zu sehen, ob beim Öffnen des Fensters dann auf Lüftungsposition gefahren wird. Hat nicht funktioniert. Der Log-Auszug ist von diesem Test. Komisch ist ja auch, dass zwar morgens rauf geht, aber abends runter nicht. Kann man noch auf eine andere Art das ASC-Device quasi neu aufbauen?
Gruß Michael

CoolTux

Ich denke das die aktuelle Position ständig übermittelt wird. Dadurch geht ASC ständig von einer manuellen Fahrt aus. Setzte bitte einmal event-on-change .*
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

MichaelO

@CoolTux: Danke, das wars! Da muss man erst einmal drauf kommen.

Das wäre vielleicht ein Punkt für die fhem Referenz? Ich hatte da rauf und runter gelesen, als das nach dem Umstieg auf die Shelly nicht ging und nichts Passendes gefunden.

Gruß
Michael