[73_AutoShuttersControl.pm] Rolllos automatisiert steuern - Version 0.8.x

Begonnen von CoolTux, 15 November 2019, 12:51:08

Vorheriges Thema - Nächstes Thema

CoolTux

Zitat von: gestein am 25 März 2020, 14:02:01
Hallo,

leider habe ich durch einen dummen Fehler mein ASC-Device gelöscht  :-[
Daher musste ich es neu anlegen.

Mittlerweile habe ich in der Funktion "" mal eine zusätzliche Debug-Ausgabe ergänzt.
        ASC_Debug( 'ShadingProcessing: '
              . $shutters->getShuttersDev
              . ' - Einer der Beschattungsbedingungen wird nicht mehr erfüllt und somit wird der Beschattungsstatus um eine Stufe reduziert. Alter Status: '
              . $oldShadingStatus
              . ' Neuer Status: '
              . $shutters->getShadingStatus );
        ASC_Debug( 'ShadingProcessing: '
              . $shutters->getShuttersDev
              . ', keine der folgenden Bedingungen darf wahr sein (sonst Abbruch): '
              . ' Azimuth=' . $azimuth . '<' . $azimuthLeft . ' (left)'
              . ',  Azimuth=' . $azimuth . '>' . $azimuthRight . ' (right)'
              . ', Elevation=' . $elevation . '<' . $shutters->getShadingMinElevation . ' (min)'
              . ', Elevation=' . $elevation . '>' . $shutters->getShadingMaxElevation . ' (max)'
              . ', Brightness=' . $brightness . '< ' . $shutters->getShadingStateChangeCloudy . ' (ShadingStateChangeCloudy) '
              . ', Temp=' . $outTemp . '< ' . $shutters->getShadingMinOutsideTemperature . ' (ShadingMinOutsideTemperature)');


Damit ist für mich nachvollziehbar, wo ich an welchen Schrauben drehen muss.

Eine Frage auch noch zu meinem Thema mit dem "Zielposition 100=100" (vielleicht ist das aber nun auch weg, da ich das ASC-Device neu angelegt habe):
Wie kann ich rausfinden, woher die Funktion "setDriveCmd" aufgerufen wurde?

Die Ausgabe "Zielposition 100=100" kommt ja aus der Funktion "_SetCmdFn", die wiederum aus "setDriveCmd" aufgerufen wurde.
Aber woher wird "setDriveCmd" aufgerufen?
Gibt es da eine Art "Stack", den man anzeigen könnte?

Mal sehen, ob der Fehler nun auch wieder auftritt, nachdem das ASC-Device komplett neu ist.

Danke im Voraus
liebe Grüße
Gerhard

Ich finde es im übrigen super das Du Dich da so tief einarbeitest in den Code. Eventuell findet man mit 4 Augen schneller Bugs oder mit 2 Gehirnen eine bessere Lösung für das ein oder andere Anliegen  :D
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

gestein

Gerade eben habe ich es geschafft, dass die Beschattung angesprungen ist  ;D 8)
Überraschend komplex das Thema - zumindest für mich, da ich anscheinend etwas unbedarft daran gegangen bin.

Es müssen alle Werte passen, damit der Rollo losläuft.
Also:
- Azimuth und Elevation: (ich dachte, wenn ich z.B. Elevation weglasse, wird der Parameter ignoriert)
- brightness: hier liefert mein Sensor (HM-SEN-LI-O) komplett andere Werte als die Default-Werte im Modul
- Temperatur

Wenn alle Parameter stimmen, wird das erste Mal der interne Wert von "out" auf "in reserved" geändert. Erst beim nächsten Check wird dann auf "in" gesetzt.

Auch das Wiederrauffahren klappt, wenn ich den Helligkeitssensor abdecke.
Hier wird der interne Wert von "in" auf "out reserved" und dann "out" geändert.

Also prinzipiell klappt das mal.
lg, Gerhard

gestein

Hallo CoolTux,

Danke, ich bemühe mich ;)
Leider bin ich kein Experte mehr im Programmieren (ist nun doch schon länger her).
Aber es macht Spaß, mal wieder in der alten Arbeitswelt zu sein ...

Mal sehen, vielleicht finde ich was ;)

Das mit den Rollos am Morgen muss ich nun die nächsten Tage wieder beobachten.
Melde mich, sobald ich was entdeckt habe.

lg, Gerhard

flummy1978

Hallo Gerhard,
Zitat von: gestein am 25 März 2020, 14:44:51
Leider bin ich kein Experte mehr im Programmieren (ist nun doch schon länger her).
Aber es macht Spaß, mal wieder in der alten Arbeitswelt zu sein

Vielleicht bist du kein Profi... Aber das was du da gebastelt hast, sieht für mich sehr sehr Nachvollziehbar aus und scheint bei der Suche nach der fehlenden Bedienung hilfreich zu sein. Ich muss ehrlich gestehen, dass ich die aktuelle Debug Funktion nicht so übersichtlich fand... Vielleicht kann man davon ja auch was mit aktivieren.... Ich schau es mir zu Hause an 😉
Danke dafür....
Kurz weil mobil
Viele Grüße
Andreas

derstinker

Guten Morgen in die Runde,

ich habe aktuell ein Problem mit dem ASC sunriseTimeWeHoliday. Ich setzte ASC schon seit gut 1 Jahr ein und bin jetzt nach dem meine SD-Card den Geist aufgeben hat auf einen Linux-Server mit dem Docker Basis Image umgestiegen.
Ich habe ASC komplett neu aufgesetzt, um eine saubere Installation zu haben.

Ich kann nicht nachvollziehen, warum die WeHoliday nicht angezogen wird bzw. 2h zu früh! Laut reading passen den Fahrzeiten, allerdings fährt um 06:30 anstatt 08:30.

Das value $hms gibt die korrekte Uhrzeit aus und auch auf dem System selbst passt die Zeit. Nachfolgend die Readings des Device und eines betroffenen Rollos.

Vielen Dank schonmal für euren Input.

List vom ASC-Device:

Internals:
   FUUID      5e79217c-f33f-4baf-0c27-1bf63b93a8ebbf2a
   FVERSION   73_AutoShuttersControl.pm:v0.8.19-s21451/2020-03-19 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       ASC
   NOTIFYDEV  ASC,OG_Rollo_HS,OG_Rollo_HW,OG_Rollo_MS,OG_Rollo_MW,OG_Rollo_SS,OG_Rollo_SW,global,myTwilight,tahoma_2711689
   NR         80
   NTFY_ORDER 51-ASC
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    v0.8.19
   OLDREADINGS:
   READINGS:
     2020-03-25 19:18:19   OG_Rollo_HS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_HS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_HW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_HW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_MS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_MS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_MW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_MW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_SS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_SS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_SW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_SW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-23 22:46:41   ascEnable       on
     2020-03-23 21:52:12   controlShading  off
     2020-03-23 21:52:12   hardLockOut     off
     2020-03-25 00:10:30   room_tahoma     OG_Rollo_HS,OG_Rollo_HW,OG_Rollo_MS,OG_Rollo_MW,OG_Rollo_SS,OG_Rollo_SW
     2020-03-23 21:52:12   selfDefense     off
     2020-03-26 06:00:02   state           created new drive timer
     2020-03-25 08:12:54   sunriseTimeWeHoliday on
     2020-03-25 00:10:29   userAttrList    rolled out
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_tempSensor Wetterdienst:temperature
   ASC_twilightDevice myTwilight
   devStateIcon { AutoShuttersControl_DevStateIcon($name) }
   icon       fts_shutter_automatic
   room       ASC


List von einem Device:

Internals:
   COMMANDS   dim:slider,0,1,100 cancel:noArg close:noArg delayedStopIdentify down:noArg getName:noArg identify:noArg my:noArg open:noArg refreshMemorized1Position:noArg setClosure setDeployment setMemorized1Position setName setPosition setSecuredPosition startIdentify:noArg stop:noArg stopIdentify:noArg up:noArg wink
   DEF        DEVICE io://1202-8182-7861/11264939
   FUUID      5e777d63-f33f-4baf-c6a2-728ea0a27fdc6aad
   FVERSION   26_tahoma.pm:0.196330/2019-06-16
   IODev      tahoma
   NAME       OG_Rollo_HS
   NR         44
   NTFY_ORDER 50-OG_Rollo_HS
   STATE      dim0
   SUBTYPE    DEVICE
   TYPE       tahoma
   device     io://1202-8182-7861/11264939
   fid        11264939
   inClass    RollerShutter
   inControllable io:RollerShutterGenericIOComponent
   inExecId   12eab042-ac10-3401-371c-283486264b6c
   inExecState 0
   inLabel    K2 Süd
   inPlaceOID a0c90e56-9ae0-4561-99e5-53b583696df7
   inType     1
   READINGS:
     2020-03-23 21:57:46   ASC_Enable      on
     2020-03-25 19:18:19   ASC_Time_DriveDown 26.03.2020 - 19:18
     2020-03-25 19:18:19   ASC_Time_DriveUp 26.03.2020 - 08:30
     2020-03-26 06:31:33   ClosureState    0
     2020-03-26 01:21:21   NameState       K2 Süd
     2020-03-26 06:31:33   OpenClosedState open
     2020-03-26 01:21:21   PriorityLockTimerState 0
     2020-03-26 07:28:01   RSSILevelState  80.0
     2020-03-26 01:21:21   StatusState     available
     2020-03-25 00:10:30   associatedWith  ASC
     2020-03-26 06:31:33   devicestate     open
     2020-03-26 06:31:33   state           dim0
Attributes:
   ASC        1
   ASC_BrightnessSensor tahoma_2711689:LuminanceState
   ASC_Drive_Delay 30
   ASC_Pos_Reading position
   ASC_Time_Down_Early 18:00
   ASC_Time_Down_Late 22:00
   ASC_Time_Up_Early 06:00
   ASC_Time_Up_Late 07:00
   ASC_Time_Up_WE_Holiday 08:30
   IODev      tahoma
   alias      RollerShutter Henry Süd
   levelRound 5
   room       tahoma


cornelius fillmore

Guten Morgen zusammen,

ich habe folgende Herausforderung mit dem ASC-Modul

Einer meiner ASC-Rolläden (FS20) läst sich zwar mit dem klicken auf die Schaltflächen im ASC fahren, macht dies aber nicht zeitgesteuert.
Update ist frisch eingespielt
Was kann das denn sein?

Anbei die List des device
Internals:
   FUUID      5d432e18-f33f-4662-dac5-b55571770e13d9f9
   NAME       Rollo_Schlafen
   NR         125
   STATE      closed
   TYPE       ROLLO
   READINGS:
     2019-12-22 16:12:25   ASC_Enable      on
     2020-03-26 08:39:57   ASC_Time_DriveDown 26.03.2020 - 19:23
     2020-03-26 08:39:57   ASC_Time_DriveUp 26.03.2020 - 08:44
     2020-03-26 08:36:05   associatedWith  ASC
     2020-03-26 07:56:44   command         closed
     2020-03-26 07:56:44   desired_pct     100
     2020-03-26 07:56:45   drive-type      modul
     2020-03-26 07:56:45   last_drive      drive-down
     2020-03-26 07:56:49   pct             100
     2020-03-26 07:56:49   state           closed
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening HORIZON
   ASC_AutoAstroModeEveningHorizon -6
   ASC_BlockingTime_afterManual 3
   ASC_BlockingTime_beforNightClose 1
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_ComfortOpen_Pos 90
   ASC_Drive_OffsetStart 1
   ASC_LockOut soft
   ASC_Open_Pos 0
   ASC_Pos_Reading position
   ASC_Shading_Angle_Left 90
   ASC_Shading_Angle_Right 90
   ASC_Shading_Direction 234
   ASC_Shading_MinMax_Elevation -20
   ASC_Shading_Min_OutsideTemperature 18
   ASC_Shading_Mode always
   ASC_Shading_Pos 30
   ASC_Shading_StateChange_Cloudy 18
   ASC_Shading_StateChange_Sunny 22
   ASC_Shading_WaitingPeriod 600
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 17:00
   ASC_Time_Down_Late 22:30
   ASC_Time_Up_Early 08:45
   ASC_Time_Up_Late 08:44
   ASC_Time_Up_WE_Holiday 08:30
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop pct-100:fts_shutter_100:open pct-90:fts_shutter_80:closed pct-80:fts_shutter_80:closed pct-70:fts_shutter_70:closed pct-60:fts_shutter_60:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_40:open pct-30:fts_shutter_30:open pct-20:fts_shutter_20:open pct-10:fts_shutter_10:open pct-0:fts_shutter_10:closed
   rl_autoStop 0
   rl_commandDown set R_Schlafen off
   rl_commandUp set R_Schlafen on
   rl_excessBottom 2
   rl_excessTop 4
   rl_secondsDown 15
   rl_secondsUp 15
   rl_switchTime 1
   rl_type    normal
   room       Schlafzimmer,Steuerung->Rolladen
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_Drive_Offset ASC_Drive_OffsetStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownTime_beforNightClose ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Exclude:on,off ASC_Self_Defense_Mode:absent,gone ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_Cloudy ASC_Shading_StateChange_Sunny ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     open:closed:half:stop:pct
3 x Fhem 5.9 mit RPI

CoolTux

Zitat von: derstinker am 26 März 2020, 07:37:19
Guten Morgen in die Runde,

ich habe aktuell ein Problem mit dem ASC sunriseTimeWeHoliday. Ich setzte ASC schon seit gut 1 Jahr ein und bin jetzt nach dem meine SD-Card den Geist aufgeben hat auf einen Linux-Server mit dem Docker Basis Image umgestiegen.
Ich habe ASC komplett neu aufgesetzt, um eine saubere Installation zu haben.

Ich kann nicht nachvollziehen, warum die WeHoliday nicht angezogen wird bzw. 2h zu früh! Laut reading passen den Fahrzeiten, allerdings fährt um 06:30 anstatt 08:30.

Das value $hms gibt die korrekte Uhrzeit aus und auch auf dem System selbst passt die Zeit. Nachfolgend die Readings des Device und eines betroffenen Rollos.

Vielen Dank schonmal für euren Input.

List vom ASC-Device:

Internals:
   FUUID      5e79217c-f33f-4baf-0c27-1bf63b93a8ebbf2a
   FVERSION   73_AutoShuttersControl.pm:v0.8.19-s21451/2020-03-19 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       ASC
   NOTIFYDEV  ASC,OG_Rollo_HS,OG_Rollo_HW,OG_Rollo_MS,OG_Rollo_MW,OG_Rollo_SS,OG_Rollo_SW,global,myTwilight,tahoma_2711689
   NR         80
   NTFY_ORDER 51-ASC
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    v0.8.19
   OLDREADINGS:
   READINGS:
     2020-03-25 19:18:19   OG_Rollo_HS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_HS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_HW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_HW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_MS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_MS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_MW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_MW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_SS_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_SS_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-25 19:18:19   OG_Rollo_SW_lastPosValue 0
     2020-03-25 19:18:19   OG_Rollo_SW_nextAstroTimeEvent 26.03.2020 - 08:30
     2020-03-23 22:46:41   ascEnable       on
     2020-03-23 21:52:12   controlShading  off
     2020-03-23 21:52:12   hardLockOut     off
     2020-03-25 00:10:30   room_tahoma     OG_Rollo_HS,OG_Rollo_HW,OG_Rollo_MS,OG_Rollo_MW,OG_Rollo_SS,OG_Rollo_SW
     2020-03-23 21:52:12   selfDefense     off
     2020-03-26 06:00:02   state           created new drive timer
     2020-03-25 08:12:54   sunriseTimeWeHoliday on
     2020-03-25 00:10:29   userAttrList    rolled out
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_tempSensor Wetterdienst:temperature
   ASC_twilightDevice myTwilight
   devStateIcon { AutoShuttersControl_DevStateIcon($name) }
   icon       fts_shutter_automatic
   room       ASC


List von einem Device:

Internals:
   COMMANDS   dim:slider,0,1,100 cancel:noArg close:noArg delayedStopIdentify down:noArg getName:noArg identify:noArg my:noArg open:noArg refreshMemorized1Position:noArg setClosure setDeployment setMemorized1Position setName setPosition setSecuredPosition startIdentify:noArg stop:noArg stopIdentify:noArg up:noArg wink
   DEF        DEVICE io://1202-8182-7861/11264939
   FUUID      5e777d63-f33f-4baf-c6a2-728ea0a27fdc6aad
   FVERSION   26_tahoma.pm:0.196330/2019-06-16
   IODev      tahoma
   NAME       OG_Rollo_HS
   NR         44
   NTFY_ORDER 50-OG_Rollo_HS
   STATE      dim0
   SUBTYPE    DEVICE
   TYPE       tahoma
   device     io://1202-8182-7861/11264939
   fid        11264939
   inClass    RollerShutter
   inControllable io:RollerShutterGenericIOComponent
   inExecId   12eab042-ac10-3401-371c-283486264b6c
   inExecState 0
   inLabel    K2 Süd
   inPlaceOID a0c90e56-9ae0-4561-99e5-53b583696df7
   inType     1
   READINGS:
     2020-03-23 21:57:46   ASC_Enable      on
     2020-03-25 19:18:19   ASC_Time_DriveDown 26.03.2020 - 19:18
     2020-03-25 19:18:19   ASC_Time_DriveUp 26.03.2020 - 08:30
     2020-03-26 06:31:33   ClosureState    0
     2020-03-26 01:21:21   NameState       K2 Süd
     2020-03-26 06:31:33   OpenClosedState open
     2020-03-26 01:21:21   PriorityLockTimerState 0
     2020-03-26 07:28:01   RSSILevelState  80.0
     2020-03-26 01:21:21   StatusState     available
     2020-03-25 00:10:30   associatedWith  ASC
     2020-03-26 06:31:33   devicestate     open
     2020-03-26 06:31:33   state           dim0
Attributes:
   ASC        1
   ASC_BrightnessSensor tahoma_2711689:LuminanceState
   ASC_Drive_Delay 30
   ASC_Pos_Reading position
   ASC_Time_Down_Early 18:00
   ASC_Time_Down_Late 22:00
   ASC_Time_Up_Early 06:00
   ASC_Time_Up_Late 07:00
   ASC_Time_Up_WE_Holiday 08:30
   IODev      tahoma
   alias      RollerShutter Henry Süd
   levelRound 5
   room       tahoma


Auf dem ersten Blick scheint das alles zu passen. Fährt den der normale Astro Timer zur korrekten Zeit? Also sagen wir 5:55 und nicht schon 3:55?

Grüße
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

Zitat von: cornelius fillmore am 26 März 2020, 08:40:52
Guten Morgen zusammen,

ich habe folgende Herausforderung mit dem ASC-Modul

Einer meiner ASC-Rolläden (FS20) läst sich zwar mit dem klicken auf die Schaltflächen im ASC fahren, macht dies aber nicht zeitgesteuert.
Update ist frisch eingespielt
Was kann das denn sein?

Deine Code Stellen sehen bei mir total zusammen gepresst aus. So kann ich beim besten willen nichts erkennen.
Siehe Anhang
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

Zitat von: cornelius fillmore am 26 März 2020, 08:40:52
Guten Morgen zusammen,

ich habe folgende Herausforderung mit dem ASC-Modul

Einer meiner ASC-Rolläden (FS20) läst sich zwar mit dem klicken auf die Schaltflächen im ASC fahren, macht dies aber nicht zeitgesteuert.
Update ist frisch eingespielt
Was kann das denn sein?

Anbei die List des device
Internals:
   FUUID      5d432e18-f33f-4662-dac5-b55571770e13d9f9
   NAME       Rollo_Schlafen
   NR         125
   STATE      closed
   TYPE       ROLLO
   READINGS:
     2019-12-22 16:12:25   ASC_Enable      on
     2020-03-26 08:39:57   ASC_Time_DriveDown 26.03.2020 - 19:23
     2020-03-26 08:39:57   ASC_Time_DriveUp 26.03.2020 - 08:44
     2020-03-26 08:36:05   associatedWith  ASC
     2020-03-26 07:56:44   command         closed
     2020-03-26 07:56:44   desired_pct     100
     2020-03-26 07:56:45   drive-type      modul
     2020-03-26 07:56:45   last_drive      drive-down
     2020-03-26 07:56:49   pct             100
     2020-03-26 07:56:49   state           closed
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening HORIZON
   ASC_AutoAstroModeEveningHorizon -6
   ASC_BlockingTime_afterManual 3
   ASC_BlockingTime_beforNightClose 1
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_ComfortOpen_Pos 90
   ASC_Drive_OffsetStart 1
   ASC_LockOut soft
   ASC_Open_Pos 0
   ASC_Pos_Reading position
   ASC_Shading_Angle_Left 90
   ASC_Shading_Angle_Right 90
   ASC_Shading_Direction 234
   ASC_Shading_MinMax_Elevation -20
   ASC_Shading_Min_OutsideTemperature 18
   ASC_Shading_Mode always
   ASC_Shading_Pos 30
   ASC_Shading_StateChange_Cloudy 18
   ASC_Shading_StateChange_Sunny 22
   ASC_Shading_WaitingPeriod 600
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 17:00
   ASC_Time_Down_Late 22:30
   ASC_Time_Up_Early 08:45
   ASC_Time_Up_Late 08:44
   ASC_Time_Up_WE_Holiday 08:30
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop pct-100:fts_shutter_100:open pct-90:fts_shutter_80:closed pct-80:fts_shutter_80:closed pct-70:fts_shutter_70:closed pct-60:fts_shutter_60:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_40:open pct-30:fts_shutter_30:open pct-20:fts_shutter_20:open pct-10:fts_shutter_10:open pct-0:fts_shutter_10:closed
   rl_autoStop 0
   rl_commandDown set R_Schlafen off
   rl_commandUp set R_Schlafen on
   rl_excessBottom 2
   rl_excessTop 4
   rl_secondsDown 15
   rl_secondsUp 15
   rl_switchTime 1
   rl_type    normal
   room       Schlafzimmer,Steuerung->Rolladen
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_Drive_Offset ASC_Drive_OffsetStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownTime_beforNightClose ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Exclude:on,off ASC_Self_Defense_Mode:absent,gone ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_Cloudy ASC_Shading_StateChange_Sunny ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     open:closed:half:stop:pct


Soweit ich weiß wurde schon seit längerem das Rollo Modul auf pct umgestellt
ASC_Pos_Reading position
ändern in
ASC_Pos_Reading pct
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

derstinker

Zitat von: CoolTux am 26 März 2020, 09:03:29
Auf dem ersten Blick scheint das alles zu passen. Fährt den der normale Astro Timer zur korrekten Zeit? Also sagen wir 5:55 und nicht schon 3:55?

Grüße

Das muss ich beobachten. Ich hab aber ein Rollo mit ASC_Time_Up_Early 06:00, welches auch um 06.00 Uhr hochfährt.

List    Device:

Internals:
   COMMANDS   dim:slider,0,1,100 cancel:noArg close:noArg delayedStopIdentify down:noArg getName:noArg identify:noArg my:noArg open:noArg refreshMemorized1Position:noArg setClosure setDeployment setMemorized1Position setName setPosition setSecuredPosition startIdentify:noArg stop:noArg stopIdentify:noArg up:noArg wink
   DEF        DEVICE io://1202-8182-7861/16665825
   FUUID      5e777d63-f33f-4baf-ac3c-2145abf0b6b663e8
   FVERSION   26_tahoma.pm:0.196330/2019-06-16
   IODev      tahoma
   NAME       OG_Rollo_BD
   NR         49
   NTFY_ORDER 50-OG_Rollo_BD
   STATE      dim0
   SUBTYPE    DEVICE
   TYPE       tahoma
   device     io://1202-8182-7861/16665825
   fid        16665825
   inClass    RollerShutter
   inControllable io:RollerShutterGenericIOComponent
   inExecId   12eaa6dc-ac10-3401-371c-2834d72e04e0
   inExecState 0
   inLabel    Bad Dusche
   inPlaceOID 90688e18-2c0d-4846-9ce8-4255c6e34d6b
   inType     1
   READINGS:
     2020-03-23 21:57:46   ASC_Enable      on
     2020-03-26 10:02:44   ASC_Time_DriveDown 26.03.2020 - 19:20
     2020-03-26 10:02:44   ASC_Time_DriveUp 27.03.2020 - 06:00
     2020-03-26 08:19:44   ClosureState    0
     2020-03-26 08:19:44   NameState       Bad Dusche
     2020-03-26 08:19:44   OpenClosedState open
     2020-03-26 08:19:44   PriorityLockTimerState 0
     2020-03-26 10:04:04   RSSILevelState  56.0
     2020-03-26 08:19:44   StatusState     available
     2020-03-25 00:10:30   associatedWith  ASC
     2020-03-26 08:19:44   devicestate     open
     2020-03-26 08:19:44   state           dim0
Attributes:
   ASC        1
   ASC_BrightnessSensor tahoma_2711689:LuminanceState
   ASC_Drive_Delay 30
   ASC_Pos_Reading position
   ASC_Time_Down_Early 18:00
   ASC_Time_Down_Late 22:00
   ASC_Time_Up_Early 06:00
   ASC_Time_Up_Late 07:00
   IODev      tahoma
   alias      RollerShutter Bad Dusche
   levelRound 5
   room       tahoma

flummy1978

Moinsen,

vielleicht ist es ja ein kleiner Bug - Dann hilft das ja beim Suchen. Vielleicht ist es auch irgendwas anderes - Dann wäre es für mich gut zu wissen.

Heute morgen sind die Rollos nach Zeit nicht hoch gefahren. NOCH habe ich nichts daran geändert oder von Hand gefahren daher hier die Auszüge eines der betroffenen Rollos:

(um 7:15 sollten beide fahren)

Internals:
   FUUID      5c46de22-f33f-bea8-979f-89a2e7ebbf80d514
   NAME       Rollo_EG_BAD
   NR         59
   STATE      <pre>
read1:closed

read2:closed

read3:closed
</pre>
   TYPE       ROLLO
   stoptime   1585159220
   .attraggr:
   .attreour:
     state
   .attrminint:
   OLDREADINGS:
   READINGS:
     2020-03-24 20:40:37   .ASC_AttrUpdateChanges_v0.8.20 1
     2019-05-24 15:44:05   ASC_Enable      on
     2019-04-23 15:06:42   ASC_Shading_WaitingPeriod 120
     2019-06-04 21:00:02   ASC_ShuttersLastDrive night close
     2020-03-26 07:15:02   ASC_Time_DriveDown 26.03.2020 - 19:00
     2020-03-26 07:15:02   ASC_Time_DriveUp 27.03.2020 - 07:15
     2020-03-24 22:49:40   associatedWith  AUTO_RolloSteuerung
     2020-03-25 19:00:02   command         pct-100
     2020-03-25 19:00:02   desired_pct     100
     2020-03-25 19:00:02   drive-type      modul
     2020-03-25 19:00:02   last_drive      drive-down
     2020-03-25 19:00:20   pct             100
     2020-03-25 19:00:20   state           closed
Attributes:
   ASC        1
   ASC_Antifreeze off
   ASC_Antifreeze_Pos 85
   ASC_AutoAstroModeEvening none
   ASC_AutoAstroModeEveningHorizon none
   ASC_AutoAstroModeMorning none
   ASC_AutoAstroModeMorningHorizon none
   ASC_BlockingTime_afterManual 3600
   ASC_BlockingTime_beforDayOpen 3600
   ASC_BlockingTime_beforNightClose 3600
   ASC_BrightnessSensor PIR_EG_BAD_move:illuminance -1:-1
   ASC_Closed_Pos 100
   ASC_ComfortOpen_Pos 20
   ASC_Down   astro
   ASC_Drive_Delay -1
   ASC_Drive_DelayStart -1
   ASC_GuestRoom none
   ASC_LockOut off
   ASC_LockOut_Cmd none
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 0
   ASC_Partymode off
   ASC_Pos_Reading pct
   ASC_PrivacyDownValue_beforeNightClose -1
   ASC_PrivacyDown_Pos 50
   ASC_Roommate_Device none
   ASC_Roommate_Reading state
   ASC_Shading_InOutAzimuth 50:150
   ASC_Shading_MinMax_Elevation 5
   ASC_Shading_Min_OutsideTemperature 3
   ASC_Shading_Mode off
   ASC_Shading_Pos 60
   ASC_Shading_StateChange_SunnyCloudy 750:350
   ASC_Shading_WaitingPeriod 300
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 19:00
   ASC_Time_Down_Late 21:00
   ASC_Time_Up_Early 07:15
   ASC_Time_Up_Late 08:30
   ASC_Time_Up_WE_Holiday 09:00
   ASC_Up     astro
   ASC_Ventilate_Pos 70
   ASC_Ventilate_Window_Open on
   ASC_WiggleValue 5
   ASC_WindowRec none
   ASC_WindowRec_subType twostate
   DbLogExclude .*
   alias      Rollo Bad
   automatic-enabled on
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon read1.drive-up:rc_UP@red:stop .*read1..*:rc_UP:open read2.open:fts_shutter_10@green:stop read2..*10:fts_shutter_10@Crimson:stop read2..*20:fts_shutter_20@Crimson:stop read2..*30:fts_shutter_30@Crimson:stop read2..*40:fts_shutter_40@Crimson:stop read2.(.*50|half):fts_shutter_50@Crimson:stop read2..*60:fts_shutter_60@Crimson:stop read2..*70:fts_shutter_70@Crimson:stop read2..*80:fts_shutter_80@Crimson:stop read2..*90:fts_shutter_90@Crimson:stop read2.closed:fts_shutter_100@Crimson:stop read2.drive.*:fts_shutter@Crimson:stop read3.drive-down:rc_DOWN@red:stop read3..*:rc_DOWN:closed
   event-on-update-reading state
   group      Fenster
   rl_autoStop 0
   rl_blockMode none
   rl_commandDown set EG_BAD_RO_ROLLO_AUF off; set EG_BAD_RO_ROLLO_ZU on
   rl_commandStop set EG_BAD_RO_ROLLO_AUF off;set EG_BAD_RO_ROLLO_ZU off
   rl_commandUp set EG_BAD_RO_ROLLO_ZU off;set EG_BAD_RO_ROLLO_AUF on
   rl_excessBottom 2
   rl_excessTop 1
   rl_resetTime 0
   rl_secondsDown 15
   rl_secondsUp 17
   rl_switchTime 3
   rl_type    normal
   room       Bad
   stateFormat <pre>
read1:state

read2:state

read3:state
</pre>
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     pct


Debug Logteil um 7:15 herum:
2020.03.26 07:09:13.968 4: AutoShuttersControl (Rollo_EG_WZ_MAR_markise) - EventProcessingShadingBrightness
2020.03.26 07:09:13.969 4: AutoShuttersControl (Rollo_EG_WZ_MAR_markise) - EventProcessingShadingBrightness
            Brightness: 470
2020.03.26 07:15:02.024 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: AUTO_RolloSteuerung Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'Rollo_EG_BAD_nextAstroTimeEvent: 26.03.2020 - 19:00'
        ];

2020.03.26 07:15:02.027 1: ERROR: empty name in readingsBeginUpdate
2020.03.26 07:15:02.027 1: stacktrace:
2020.03.26 07:15:02.027 1:     main::readingsBeginUpdate           called by fhem.pl (4936)
2020.03.26 07:15:02.027 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.028 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.028 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.028 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.028 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.028 1: readingsUpdate(,state,created new drive timer) missed to call readingsBeginUpdate first.
2020.03.26 07:15:02.028 1: stacktrace:
2020.03.26 07:15:02.029 1:     main::readingsBulkUpdate            called by fhem.pl (4937)
2020.03.26 07:15:02.029 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.029 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.029 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.029 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.029 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.073 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: AUTO_RolloSteuerung Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'Rollo_EG_FL_nextAstroTimeEvent: 26.03.2020 - 19:00'
        ];

2020.03.26 07:15:02.076 1: ERROR: empty name in readingsBeginUpdate
2020.03.26 07:15:02.076 1: stacktrace:
2020.03.26 07:15:02.076 1:     main::readingsBeginUpdate           called by fhem.pl (4936)
2020.03.26 07:15:02.076 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.076 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.077 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.077 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.077 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.077 1: readingsUpdate(,state,created new drive timer) missed to call readingsBeginUpdate first.
2020.03.26 07:15:02.077 1: stacktrace:
2020.03.26 07:15:02.077 1:     main::readingsBulkUpdate            called by fhem.pl (4937)
2020.03.26 07:15:02.078 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.078 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.078 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.078 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.078 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:24:13.929 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: Licht_EG_WZ_01_deckenfluter Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'AM2301_Humidity: 33.0',
          'BH1750_Illuminance: 581'
        ];


Kannst Du da was erkennen was da schief gegangen ist ? Wenn Du da was siehst, kannst Du ja vielleicht dazu schrieben, WIE. Dann könnten vielleicht andere auch noch "lernen" wie man auf die Logs genau schauen sollte.

Das Einzige was ich gestern gemacht habe, war an der Shading Geschichte von der Marikse zu spielen (keine der Beiden Rollos) und ein Update gezogen, aber dann wären ja noch mehr mit diesem Problem  ???

Viele Grüße
Andreas

cornelius fillmore

Zitat von: CoolTux am 26 März 2020, 09:07:33
Soweit ich weiß wurde schon seit längerem das Rollo Modul auf pct umgestellt
ASC_Pos_Reading position
ändern in
ASC_Pos_Reading pct

Das war der Fehler.
Vielen Dank :)
3 x Fhem 5.9 mit RPI

CoolTux

Zitat von: flummy1978 am 26 März 2020, 10:07:26
Moinsen,

vielleicht ist es ja ein kleiner Bug - Dann hilft das ja beim Suchen. Vielleicht ist es auch irgendwas anderes - Dann wäre es für mich gut zu wissen.

Heute morgen sind die Rollos nach Zeit nicht hoch gefahren. NOCH habe ich nichts daran geändert oder von Hand gefahren daher hier die Auszüge eines der betroffenen Rollos:

(um 7:15 sollten beide fahren)

Internals:
   FUUID      5c46de22-f33f-bea8-979f-89a2e7ebbf80d514
   NAME       Rollo_EG_BAD
   NR         59
   STATE      <pre>
read1:closed

read2:closed

read3:closed
</pre>
   TYPE       ROLLO
   stoptime   1585159220
   .attraggr:
   .attreour:
     state
   .attrminint:
   OLDREADINGS:
   READINGS:
     2020-03-24 20:40:37   .ASC_AttrUpdateChanges_v0.8.20 1
     2019-05-24 15:44:05   ASC_Enable      on
     2019-04-23 15:06:42   ASC_Shading_WaitingPeriod 120
     2019-06-04 21:00:02   ASC_ShuttersLastDrive night close
     2020-03-26 07:15:02   ASC_Time_DriveDown 26.03.2020 - 19:00
     2020-03-26 07:15:02   ASC_Time_DriveUp 27.03.2020 - 07:15
     2020-03-24 22:49:40   associatedWith  AUTO_RolloSteuerung
     2020-03-25 19:00:02   command         pct-100
     2020-03-25 19:00:02   desired_pct     100
     2020-03-25 19:00:02   drive-type      modul
     2020-03-25 19:00:02   last_drive      drive-down
     2020-03-25 19:00:20   pct             100
     2020-03-25 19:00:20   state           closed
Attributes:
   ASC        1
   ASC_Antifreeze off
   ASC_Antifreeze_Pos 85
   ASC_AutoAstroModeEvening none
   ASC_AutoAstroModeEveningHorizon none
   ASC_AutoAstroModeMorning none
   ASC_AutoAstroModeMorningHorizon none
   ASC_BlockingTime_afterManual 3600
   ASC_BlockingTime_beforDayOpen 3600
   ASC_BlockingTime_beforNightClose 3600
   ASC_BrightnessSensor PIR_EG_BAD_move:illuminance -1:-1
   ASC_Closed_Pos 100
   ASC_ComfortOpen_Pos 20
   ASC_Down   astro
   ASC_Drive_Delay -1
   ASC_Drive_DelayStart -1
   ASC_GuestRoom none
   ASC_LockOut off
   ASC_LockOut_Cmd none
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 0
   ASC_Partymode off
   ASC_Pos_Reading pct
   ASC_PrivacyDownValue_beforeNightClose -1
   ASC_PrivacyDown_Pos 50
   ASC_Roommate_Device none
   ASC_Roommate_Reading state
   ASC_Shading_InOutAzimuth 50:150
   ASC_Shading_MinMax_Elevation 5
   ASC_Shading_Min_OutsideTemperature 3
   ASC_Shading_Mode off
   ASC_Shading_Pos 60
   ASC_Shading_StateChange_SunnyCloudy 750:350
   ASC_Shading_WaitingPeriod 300
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 19:00
   ASC_Time_Down_Late 21:00
   ASC_Time_Up_Early 07:15
   ASC_Time_Up_Late 08:30
   ASC_Time_Up_WE_Holiday 09:00
   ASC_Up     astro
   ASC_Ventilate_Pos 70
   ASC_Ventilate_Window_Open on
   ASC_WiggleValue 5
   ASC_WindowRec none
   ASC_WindowRec_subType twostate
   DbLogExclude .*
   alias      Rollo Bad
   automatic-enabled on
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon read1.drive-up:rc_UP@red:stop .*read1..*:rc_UP:open read2.open:fts_shutter_10@green:stop read2..*10:fts_shutter_10@Crimson:stop read2..*20:fts_shutter_20@Crimson:stop read2..*30:fts_shutter_30@Crimson:stop read2..*40:fts_shutter_40@Crimson:stop read2.(.*50|half):fts_shutter_50@Crimson:stop read2..*60:fts_shutter_60@Crimson:stop read2..*70:fts_shutter_70@Crimson:stop read2..*80:fts_shutter_80@Crimson:stop read2..*90:fts_shutter_90@Crimson:stop read2.closed:fts_shutter_100@Crimson:stop read2.drive.*:fts_shutter@Crimson:stop read3.drive-down:rc_DOWN@red:stop read3..*:rc_DOWN:closed
   event-on-update-reading state
   group      Fenster
   rl_autoStop 0
   rl_blockMode none
   rl_commandDown set EG_BAD_RO_ROLLO_AUF off; set EG_BAD_RO_ROLLO_ZU on
   rl_commandStop set EG_BAD_RO_ROLLO_AUF off;set EG_BAD_RO_ROLLO_ZU off
   rl_commandUp set EG_BAD_RO_ROLLO_ZU off;set EG_BAD_RO_ROLLO_AUF on
   rl_excessBottom 2
   rl_excessTop 1
   rl_resetTime 0
   rl_secondsDown 15
   rl_secondsUp 17
   rl_switchTime 3
   rl_type    normal
   room       Bad
   stateFormat <pre>
read1:state

read2:state

read3:state
</pre>
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     pct


Debug Logteil um 7:15 herum:
2020.03.26 07:09:13.968 4: AutoShuttersControl (Rollo_EG_WZ_MAR_markise) - EventProcessingShadingBrightness
2020.03.26 07:09:13.969 4: AutoShuttersControl (Rollo_EG_WZ_MAR_markise) - EventProcessingShadingBrightness
            Brightness: 470
2020.03.26 07:15:02.024 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: AUTO_RolloSteuerung Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'Rollo_EG_BAD_nextAstroTimeEvent: 26.03.2020 - 19:00'
        ];

2020.03.26 07:15:02.027 1: ERROR: empty name in readingsBeginUpdate
2020.03.26 07:15:02.027 1: stacktrace:
2020.03.26 07:15:02.027 1:     main::readingsBeginUpdate           called by fhem.pl (4936)
2020.03.26 07:15:02.027 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.028 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.028 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.028 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.028 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.028 1: readingsUpdate(,state,created new drive timer) missed to call readingsBeginUpdate first.
2020.03.26 07:15:02.028 1: stacktrace:
2020.03.26 07:15:02.029 1:     main::readingsBulkUpdate            called by fhem.pl (4937)
2020.03.26 07:15:02.029 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.029 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.029 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.029 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.029 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.073 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: AUTO_RolloSteuerung Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'Rollo_EG_FL_nextAstroTimeEvent: 26.03.2020 - 19:00'
        ];

2020.03.26 07:15:02.076 1: ERROR: empty name in readingsBeginUpdate
2020.03.26 07:15:02.076 1: stacktrace:
2020.03.26 07:15:02.076 1:     main::readingsBeginUpdate           called by fhem.pl (4936)
2020.03.26 07:15:02.076 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.076 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.077 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.077 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.077 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:15:02.077 1: readingsUpdate(,state,created new drive timer) missed to call readingsBeginUpdate first.
2020.03.26 07:15:02.077 1: stacktrace:
2020.03.26 07:15:02.077 1:     main::readingsBulkUpdate            called by fhem.pl (4937)
2020.03.26 07:15:02.078 1:     main::readingsSingleUpdate          called by ./FHEM/73_AutoShuttersControl.pm (6658)
2020.03.26 07:15:02.078 1:     ASC_Dev::Readings::setStateReading  called by ./FHEM/73_AutoShuttersControl.pm (2867)
2020.03.26 07:15:02.078 1:     FHEM::AutoShuttersControl::CreateSunRiseSetShuttersTimer called by ./FHEM/73_AutoShuttersControl.pm (3189)
2020.03.26 07:15:02.078 1:     FHEM::AutoShuttersControl::SunRiseShuttersAfterTimerFn called by fhem.pl (3308)
2020.03.26 07:15:02.078 1:     main::HandleTimeout                 called by fhem.pl (680)
2020.03.26 07:24:13.929 4: AutoShuttersControl (AUTO_RolloSteuerung) - Devname: Licht_EG_WZ_01_deckenfluter Name: AUTO_RolloSteuerung Notify: $VAR1 = [
          'AM2301_Humidity: 33.0',
          'BH1750_Illuminance: 581'
        ];


Kannst Du da was erkennen was da schief gegangen ist ? Wenn Du da was siehst, kannst Du ja vielleicht dazu schrieben, WIE. Dann könnten vielleicht andere auch noch "lernen" wie man auf die Logs genau schauen sollte.

Das Einzige was ich gestern gemacht habe, war an der Shading Geschichte von der Marikse zu spielen (keine der Beiden Rollos) und ein Update gezogen, aber dann wären ja noch mehr mit diesem Problem  ???

Viele Grüße
Andreas

Hast Du das System nach dem Update auch neugestartet??
Ich kann da jetzt nicht direkt erkennen was schief gelaufen ist.
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

flummy1978

Zitat von: CoolTux
Hast Du das System nach dem Update auch neugestartet??
Ich kann da jetzt nicht direkt erkennen was schief gelaufen ist.

Jupp das hatte ich. Irgendwie wollte jetzt auch ASC gar nicht reagieren. Hat auch quasi nichts verarbeitet. Ich hab dann nochmal ein Update gemacht, neu gestartet und kurze Zeit später fuhr die Markise in Beschattungsposition.

D.h. Ich fahre jetzt die Rollos von Hand und schaue, ob sie heute Abend normal fahren ;)

Grüße
Andreas

kjmEjfu

Hallo zusammen,

ich bräuchte mal einen Denkanstoß.

ASC ist eingerichtet und versieht, inklusive Abschattung, seit über einem Jahr seinen Dienst. Soweit, so gut.
Jetzt habe ich aber in zwei Zimmern die Situation, dass ich dort auch außerhalb der normalen Abschattung verdunkeln muss, nämlich wenn die reine Sonneneinstrahlung so groß ist, dass ich ansonsten auf Fernseher und Monitor nichts mehr sehen kann. Das kann ich natürlich manuell machen (oder automatisch sobald PC oder Fernseher eingeschaltet wurden).
Mir geht es aber um das Ende dieser manuellen Verdunkelung. Es macht für mich wenig Sinn, wenn das Rollo wieder hochfährt, weil der PC ausgeschaltet wurde, und nach Ende der Wartezeit für die manuelle Fahrt wieder in die automatisierte Abschattung geht.
Kann ich das verdunkelte Rollo direkt wieder an ASC übergeben, welches dann prüft ob nicht abgeschattet werden muss und dem Fall dann die komplette Steuerung übernimmt?

Bin offen für Ideen.
Migriere derzeit zu Home Assistant