[73_AutoShuttersControl.pm] Rolllos automatisiert steuern - Version 0.10

Begonnen von CoolTux, 22 Juni 2020, 12:38:36

Vorheriges Thema - Nächstes Thema

hubiuwe

Hallo
ZitatHast Du unterschiedliche Rollodevice Typen? Gib mal bitte ein list
Alles die gleichen Typen.

List vom ASC:
Internals:
   FUUID      5d998c16-f33f-e2e1-02db-975a526970674d10
   FVERSION   73_AutoShuttersControl.pm:v0.10.1-s22248/2020-06-24 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       Rollosteuerung
   NOTIFYDEV  global,Rollosteuerung,AK_BD_ROL,AK_KU_ROL,AK_SZ_ROL,AK_WZ_ROL,DU_Fenster_WZ,DU_Fenster_SZ,SonnSens,twilight,rr_Uwe,DU_Fenster_BD,rgr_Bewohner,rg_Schlafgast
   NR         134
   NTFY_ORDER 51-Rollosteuerung
   STATE      shading out
   TYPE       AutoShuttersControl
   VERSION    v0.10.1
   Helper:
     DBLOG:
       AK_BD_ROL_PosValue:
         DBLogging:
           TIME       1593506245.27806
           VALUE      0
       AK_BD_ROL_lastPosValue:
         DBLogging:
           TIME       1593506217.19849
           VALUE      75
       AK_BD_ROL_nextAstroTimeEvent:
         DBLogging:
           TIME       1593497265.86862
           VALUE      30.06.2020 - 22:00
       AK_KU_ROL_PosValue:
         DBLogging:
           TIME       1593506242.54276
           VALUE      0
       AK_KU_ROL_lastPosValue:
         DBLogging:
           TIME       1593506217.39386
           VALUE      50
       AK_KU_ROL_nextAstroTimeEvent:
         DBLogging:
           TIME       1593497265.87869
           VALUE      30.06.2020 - 22:00
       AK_SZ_ROL_PosValue:
         DBLogging:
           TIME       1593506844.47063
           VALUE      0
       AK_SZ_ROL_lastPosValue:
         DBLogging:
           TIME       1593506809.37586
           VALUE      64
       AK_SZ_ROL_nextAstroTimeEvent:
         DBLogging:
           TIME       1593497265.88662
           VALUE      30.06.2020 - 22:00
       AK_WZ_ROL_PosValue:
         DBLogging:
           TIME       1593506257.53303
           VALUE      0
       AK_WZ_ROL_lastPosValue:
         DBLogging:
           TIME       1593506217.005
           VALUE      75
       AK_WZ_ROL_nextAstroTimeEvent:
         DBLogging:
           TIME       1593497265.89461
           VALUE      30.06.2020 - 22:00
       controlShading:
         DBLogging:
           TIME       1593497267.86632
           VALUE      on
       state:
         DBLogging:
           TIME       1593506844.47647
           VALUE      shading out
   OLDREADINGS:
   READINGS:
     2020-06-30 10:37:25   AK_BD_ROL_PosValue 0
     2020-06-30 10:36:57   AK_BD_ROL_lastPosValue 75
     2020-06-30 08:07:45   AK_BD_ROL_nextAstroTimeEvent 30.06.2020 - 22:00
     2020-06-30 10:37:22   AK_KU_ROL_PosValue 0
     2020-06-30 10:36:57   AK_KU_ROL_lastPosValue 50
     2020-06-30 08:07:45   AK_KU_ROL_nextAstroTimeEvent 30.06.2020 - 22:00
     2020-06-30 10:47:24   AK_SZ_ROL_PosValue 0
     2020-06-30 10:46:49   AK_SZ_ROL_lastPosValue 64
     2020-06-30 08:07:45   AK_SZ_ROL_nextAstroTimeEvent 30.06.2020 - 22:00
     2020-06-30 10:37:37   AK_WZ_ROL_PosValue 0
     2020-06-30 10:36:57   AK_WZ_ROL_lastPosValue 75
     2020-06-30 08:07:45   AK_WZ_ROL_nextAstroTimeEvent 30.06.2020 - 22:00
     2020-05-23 10:32:00   ascEnable       on
     2020-06-30 08:07:47   controlShading  on
     2020-05-23 10:32:00   hardLockOut     off
     2020-06-30 08:07:42   room_10_Wohnzimmer_90_Devices AK_WZ_ROL
     2020-06-30 08:07:42   room_20_Kueche_90_Devices AK_KU_ROL
     2020-06-30 08:07:42   room_30_Bad_90_Devices AK_BD_ROL
     2020-06-30 08:07:42   room_40_Schlafzimmer_90_Devices AK_SZ_ROL
     2020-06-29 19:11:58   selfDefense     off
     2020-06-30 10:47:24   state           shading out
     2020-05-24 11:42:52   sunriseTimeWeHoliday on
     2020-06-30 08:07:42   userAttrList    rolled out
   helper:
     shuttersList:
       AK_BD_ROL
       AK_KU_ROL
       AK_SZ_ROL
       AK_WZ_ROL
   monitoredDevs:
     AK_BD_ROL:
     AK_KU_ROL:
     AK_SZ_ROL:
     AK_WZ_ROL:
     DU_Fenster_BD:
       AK_BD_ROL  ASC_WindowRec
     DU_Fenster_SZ:
       AK_SZ_ROL  ASC_WindowRec
     DU_Fenster_WZ:
       AK_WZ_ROL  ASC_WindowRec
     SonnSens:
       AK_BD_ROL  ASC_BrightnessSensor
       AK_KU_ROL  ASC_BrightnessSensor
       AK_SZ_ROL  ASC_BrightnessSensor
       AK_WZ_ROL  ASC_BrightnessSensor
     rg_Schlafgast:
       AK_WZ_ROL  ASC_Roommate_Device
     rgr_Bewohner:
       Rollosteuerung ASC_residentsDev
     rr_Uwe:
       AK_BD_ROL  ASC_Roommate_Device
       AK_SZ_ROL  ASC_Roommate_Device
     twilight:
       Rollosteuerung ASC_twilightDevice
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlComfort on
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_blockAscDrivesAfterManual 0
   ASC_brightnessDriveUpDown 25:100
   ASC_expert 1
   ASC_residentsDev rgr_Bewohner
   ASC_tempSensor KS300
   ASC_twilightDevice twilight
   DbLogExclude .*
   DbLogInclude .*
   devStateIcon { ShuttersControl_DevStateIcon($name) }
   group      Wohnung
   icon       fts_shutter_automatic
   room       01_Wohnung


List von einem Rollo:
Internals:
   DEF        0500ECB5
   FUUID      5ca65646-f33f-e2e1-ec26-1d8036a71435abce
   IODev      TCM_ESP3_0
   LASTInputDev TCM_ESP3_0
   MSGCNT     4
   NAME       AK_WZ_ROL
   NR         51
   NTFY_ORDER 50-AK_WZ_ROL
   STATE      0
   TCM_ESP3_0_DestinationID FFFFFFFF
   TCM_ESP3_0_MSGCNT 4
   TCM_ESP3_0_PacketType 1
   TCM_ESP3_0_RSSI -55
   TCM_ESP3_0_ReceivingQuality excellent
   TCM_ESP3_0_RepeatingCounter 1
   TCM_ESP3_0_SubTelNum 6
   TCM_ESP3_0_TIME 2020-06-30 10:37:37
   TYPE       EnOcean
   Helper:
     DBLOG:
       ASC_ShadingMessage:
         DBLogging:
           TIME       1593508869.23743
           VALUE      INFO
       ASC_ShuttersLastDrive:
         DBLogging:
           TIME       1593506257.63782
           VALUE      shading out
       anglePos:
         DBLogging:
           TIME       1593506257.52289
           VALUE      -90
       block:
         DBLogging:
           TIME       1593499344.12435
           VALUE      unlock
       endPosition:
         DBLogging:
           TIME       1593506257.52289
           VALUE      open_ack
       position:
         DBLogging:
           TIME       1593506257.52289
           VALUE      0
       state:
         DBLogging:
           TIME       1593506257.52289
           VALUE      open_ack
   READINGS:
     2019-10-06 10:00:44   ASC_Enable      on
     2020-06-30 11:21:09   ASC_ShadingMessage INFO: current shading status is 'out' - next check in 10m
     2020-06-30 10:37:37   ASC_ShuttersLastDrive shading out
     2020-06-30 08:07:45   ASC_Time_DriveDown 30.06.2020 - 22:00
     2020-06-30 08:07:45   ASC_Time_DriveUp  1.07.2020 - 07:00
     2020-06-30 10:37:37   anglePos        -90
     2020-06-30 08:07:42   associatedWith  Rollosteuerung
     2020-06-30 08:42:24   block           unlock
     2020-06-30 10:37:37   endPosition     open_ack
     2020-06-30 10:37:37   position        0
     2020-06-30 10:37:37   state           open_ack
     2019-04-06 20:14:41   teach           4BS teach-in sent
   helper:
Attributes:
   ASC        1
   ASC_Adv    on
   ASC_BrightnessSensor SonnSens:brightness
   ASC_Closed_Pos 100
   ASC_ComfortOpen_Pos 10
   ASC_Down   brightness
   ASC_DriveUpMaxDuration 45
   ASC_LockOut soft
   ASC_Mode_Down off
   ASC_Mode_Up always
   ASC_Open_Pos 0
   ASC_Partymode off
   ASC_Pos_Reading position
   ASC_Roommate_Device rg_Schlafgast
   ASC_Self_Defense_Mode gone
   ASC_Shading_InOutAzimuth 73:208
   ASC_Shading_MinMax_Elevation 21
   ASC_Shading_Min_OutsideTemperature 23.4
   ASC_Shading_Mode always
   ASC_Shading_Pos {ReadingsVal('Markise_WZ','endPosition','open_ack') eq 'closed' ? 3 : 75;}
   ASC_Shading_StateChange_SunnyCloudy 30000:18000
   ASC_Shading_WaitingPeriod 1200
   ASC_ShuttersPlace terrace
   ASC_TempSensor Alpha2:Ist-Temperatur-4
   ASC_Time_Down_Early 16:00
   ASC_Time_Down_Late 22:00
   ASC_Time_Up_Early 05:00
   ASC_Time_Up_Late 08:00
   ASC_Time_Up_WE_Holiday 07:00
   ASC_Up     brightness
   ASC_Ventilate_Pos 75
   ASC_Ventilate_Window_Open on
   ASC_WindowRec DU_Fenster_WZ
   ASC_WindowRec_PosAfterDayClosed open
   ASC_WindowRec_subType threestate
   IODev      TCM_ESP3_0
   alias      Rollo Wohnzimmer
   calAtEndpoints yes
   devStateIcon 100:fts_shutter_100 1\d.*:fts_shutter_10 2\d.*:fts_shutter_20 3\d.*:fts_shutter_30 4\d.*:fts_shutter_40 5\d.*:fts_shutter_50 6\d.*:fts_shutter_60 7\d.*:fts_shutter_70 8\d.*:fts_shutter_80 9\d.*:fts_shutter_90 \d.*:fts_shutter_10 open_ack:fts_window_2w closed:fts_shutter_100
   eep        A5-3F-7F
   group      Rollos
   icon       fts_shutter_100
   manufID    00D
   model      Eltako_FSB_ACK
   room       10_Wohnzimmer,90_Devices
   settingAccuracy high
   shutTime   24
   shutTimeCloses 40
   stateFormat position
   subDef     FFB45103
   subType    manufProfile
   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_SlatPosCmd_SlatDevice 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     opens:stop:closes
Die beste Automatik ist die, die man abschalten kann!

CoolTux

Ich danke Dir sehr. Ich konnte es fixen, wird aber etwas dauern bis die Version kommt.
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

Ich habe mal die gefixte Version in den testing Branch gemergt. Wenn Interesse besteht kann man hier gerne testen
update add https://git.cooltux.net/FHEM/mod-AutoShuttersControl/raw/branch/testing/controls_AutoShuttersControl.txt
update


Version 0.10.2


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

eurofinder

@CoolTux:
ZitatIch werde ein zusätzliches Internes Objektattribut erstellen welches sich die vorletzte Beschattungsposition merkt und werde dann darauf eine Abfrage starten.

Danke.

eurofinder
RPI3+; Raspbian Buster Lite; RPI-RF-MOD; piVCCU3, HMIP-eTRV-2, HmIP-SWDO, HmIP-SRH, HmIP-STHO, HmIP-SLO

gestein

Hallo,

nachdem der letzte Rollo nun endlich repariert wurde, habe ich auch den bei ASC eingehängt.
Allerdings fährt der nicht in die Beschattung, da irgendwie die Berechnung der Brightness nicht stimmt.
Ich benutze bei 6 Rollos den gleichen Helligkeitssensor TW.Helligkeit (von Homematic).

Bei 5 funktioniert die Berechnung (Wert in ASC schwankt mit der Helligkeit),  bei dem einen nicht
Da steht der Wert immer auf 7232, auch nachts!

Im log-file steht z.B. (Rollo.WZ.Kueche funktioniert, Rollo.WZ.StiegeMitte funktioniert nicht):
ASC_DEBUG!!! 2020.07. 1 15:43:46 - ShadingProcessing: Rollo.WZ.Kueche - Übergebende Werte - Azimuth:245.56, Elevation: 49.32, Brightness: 26171, OutTemp: 28.4, Azimut Beschattung: 223, Azimut Endschattung: 360, Ist es nach der Zeitblockadezeit: JA, Das Rollo ist in der Beschattung und wurde manuell gefahren: NEIN, Ist es nach der Hälfte der Beschattungswartezeit: JA

ASC_DEBUG!!! 2020.07. 1 15:44:47 - ShadingProcessing: Rollo.WZ.StiegeMitte - Übergebende Werte - Azimuth:246.89, Elevation: 48.55, Brightness: 7232, OutTemp: 28.4, Azimut Beschattung: 218, Azimut Endschattung: 360, Ist es nach der Zeitblockadezeit: JA, Das Rollo ist in der Beschattung und wurde manuell gefahren: NEIN, Ist es nach der Hälfte der Beschattungswartezeit: JA


Gab es das schon mal?
Wo soll ich da ansetzen?

lg, Gerhard

gestein

Nachtrag:
Im log scheinen diese Einträge für alle Rollos auf, nur nicht für den, der nicht funktioniert.
ASC_DEBUG!!! 2020.06.30 14:35:36 - EventProcessingShadingBrightness: Rollo.WZ.Kueche - Nummerischer Brightness-Wert wurde erkannt. Der Brightness Average Wert ist: 33330 RainProtection: unprotected WindProtection: unprotected


Edith: ich nutze übrigens die Version 0.10.1

lg, Gerhard

Leon_Emm

Ich möchte mich hier mit einem kleinen Fehlerchen anschließen.

Nach Update auf v.0.10.1 funktioniert ASC nur solala....

Problem: ASC fährt nach Astro wunderbar, jedoch kein Shading mehr. Einstellungen sind unverändert geblieben.

Auch im Log mit Debug-Modus finden sich außer folgender Meldung keine mehr:

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Esszimmer Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_HSTuer Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Kueche Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Treppenhaus_Buero Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Wohnzimmer Allgemein: 1


ASC sieht so aus:


Internals:
   FUUID      5e03797a-f33f-4070-d308-ca4f46d4a911f6bb
   FVERSION   73_AutoShuttersControl.pm:v0.10.1-s22248/2020-06-24 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       ASC
   NOTIFYDEV  global,ASC,rollo_Esszimmer,rollo_HSTuer,rollo_Kueche,rollo_Treppenhaus_Buero,rollo_Wohnzimmer
   NR         43
   NTFY_ORDER 51-ASC
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    v0.10.1
   OLDREADINGS:
   READINGS:
     2020-06-29 00:07:02   ascEnable       on
     2020-07-01 15:58:30   controlShading  on
     2020-06-28 23:53:34   hardLockOut     off
     2020-07-01 12:01:27   rollo_Esszimmer_PosValue 0
     2020-07-01 07:30:02   rollo_Esszimmer_lastPosValue 100
     2020-07-01 15:58:28   rollo_Esszimmer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:36   rollo_HSTuer_PosValue 0
     2020-07-01 07:30:02   rollo_HSTuer_lastPosValue 100
     2020-07-01 15:58:28   rollo_HSTuer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:27   rollo_Kueche_PosValue 0
     2020-07-01 07:30:02   rollo_Kueche_lastPosValue 100
     2020-07-01 15:58:28   rollo_Kueche_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:11:23   rollo_Treppenhaus_Buero_PosValue 0
     2020-07-01 08:00:02   rollo_Treppenhaus_Buero_lastPosValue 0
     2020-07-01 15:58:28   rollo_Treppenhaus_Buero_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:25   rollo_Wohnzimmer_PosValue 0
     2020-07-01 07:30:02   rollo_Wohnzimmer_lastPosValue 100
     2020-07-01 15:58:28   rollo_Wohnzimmer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 15:58:25   room_Rollos     rollo_Esszimmer,rollo_HSTuer,rollo_Kueche,rollo_Treppenhaus_Buero,rollo_Wohnzimmer
     2020-06-28 23:53:34   selfDefense     off
     2020-07-01 15:58:28   state           created new drive timer
     2020-06-28 23:58:02   sunriseTimeWeHoliday on
     2020-07-01 15:58:25   userAttrList    rolled out
   helper:
     shuttersList:
       rollo_Esszimmer
       rollo_HSTuer
       rollo_Kueche
       rollo_Treppenhaus_Buero
       rollo_Wohnzimmer
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_debug  1
   ASC_tempSensor DWD:fc0_Tx
   ASC_twilightDevice Astro
   devStateIcon { ShuttersControl_DevStateIcon($name) }
   icon       fts_shutter_automatic
   room       Automatisierung


Ein Rolladendevice:

Internals:
   FUUID      5e0238fb-f33f-4070-9f96-6ef239f9fa1286e6
   NAME       rollo_HSTuer
   NR         33
   STATE      open
   STILLDONETIME 0
   TYPE       ROLLO
   READINGS:
     2019-12-30 10:14:33   ASC_Enable      on
     2020-07-01 15:56:02   ASC_ShadingMessage <html> INFO:  shading active, global temp sensor is set, but shutters temperature sensor is not set </html>
     2020-07-01 12:01:36   ASC_ShuttersLastDrive manual
     2020-07-01 15:58:28   ASC_Time_DriveDown  1.07.2020 - 22:00
     2020-07-01 15:58:28   ASC_Time_DriveUp  2.07.2020 - 07:30
     2020-07-01 15:58:25   associatedWith  ASC
     2020-07-01 12:01:00   command         open
     2020-07-01 12:01:00   desired_pct     0
     2020-07-01 12:01:00   drive-type      modul
     2020-07-01 12:01:00   last_drive      drive-up
     2020-07-01 12:01:36   pct             0
     2020-07-01 12:01:36   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BrightnessSensor ESPEasy_brightsouth_sensorsouth:luxsouth
   ASC_Closed_Pos 70
   ASC_Down   astro
   ASC_LockOut soft
   ASC_Open_Pos 0
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 140:255
   ASC_Shading_MinMax_Elevation 15:100
   ASC_Shading_Min_OutsideTemperature 15
   ASC_Shading_Mode always
   ASC_Shading_Pos 40
   ASC_Shading_StateChange_SunnyCloudy 6000:5000 2
   ASC_ShuttersPlace terrace
   ASC_Time_Up_Early 7:30
   ASC_Time_Up_Late 11:00
   ASC_Time_Up_WE_Holiday 9:00
   ASC_Up     astro
   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 rollo_a3 AI
   rl_commandStopDown set rollo_a3 AI
   rl_commandStopUp set rollo_a3 A0
   rl_commandUp set rollo_a3 A0
   rl_excessBottom 7
   rl_excessTop 0
   rl_resetTime 8
   rl_secondsDown 21
   rl_secondsUp 21
   rl_switchTime 10
   rl_type    normal
   room       Rollos
   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_SlatPosCmd_SlatDevice 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     open:closed:half:stop:pct


Ich weiß leider nicht wo das Problem liegt, da der Log entsprechend klein ausfällt. Bitte um Hilfe ;)

Dankeschön und Grüße, Leon

CoolTux

Zitat von: gestein am 01 Juli 2020, 15:49:29
Hallo,

nachdem der letzte Rollo nun endlich repariert wurde, habe ich auch den bei ASC eingehängt.
Allerdings fährt der nicht in die Beschattung, da irgendwie die Berechnung der Brightness nicht stimmt.
Ich benutze bei 6 Rollos den gleichen Helligkeitssensor TW.Helligkeit (von Homematic).

Bei 5 funktioniert die Berechnung (Wert in ASC schwankt mit der Helligkeit),  bei dem einen nicht
Da steht der Wert immer auf 7232, auch nachts!

Im log-file steht z.B. (Rollo.WZ.Kueche funktioniert, Rollo.WZ.StiegeMitte funktioniert nicht):
ASC_DEBUG!!! 2020.07. 1 15:43:46 - ShadingProcessing: Rollo.WZ.Kueche - Übergebende Werte - Azimuth:245.56, Elevation: 49.32, Brightness: 26171, OutTemp: 28.4, Azimut Beschattung: 223, Azimut Endschattung: 360, Ist es nach der Zeitblockadezeit: JA, Das Rollo ist in der Beschattung und wurde manuell gefahren: NEIN, Ist es nach der Hälfte der Beschattungswartezeit: JA

ASC_DEBUG!!! 2020.07. 1 15:44:47 - ShadingProcessing: Rollo.WZ.StiegeMitte - Übergebende Werte - Azimuth:246.89, Elevation: 48.55, Brightness: 7232, OutTemp: 28.4, Azimut Beschattung: 218, Azimut Endschattung: 360, Ist es nach der Zeitblockadezeit: JA, Das Rollo ist in der Beschattung und wurde manuell gefahren: NEIN, Ist es nach der Hälfte der Beschattungswartezeit: JA


Gab es das schon mal?
Wo soll ich da ansetzen?

lg, Gerhard

Zeig mal bitte ein list von dem Rollo Device


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

gestein

Hallo,

ich habe seit gestern sicherlich 10x das "createNewNotifyDev" im ASC Device gemacht.
Gerade eben nochmal und siehe da, der Helligkeitswert stimmt nun auch im neuen Rollo.

Keine Ahnung was nun anders war und warum es nun geklappt hat, aber es funktioniert wieder!

Bitte entschuldige.
Danke, lg, Gerhard

CoolTux

Zitat von: Leon_Emm am 01 Juli 2020, 16:27:37
Ich möchte mich hier mit einem kleinen Fehlerchen anschließen.

Nach Update auf v.0.10.1 funktioniert ASC nur solala....

Problem: ASC fährt nach Astro wunderbar, jedoch kein Shading mehr. Einstellungen sind unverändert geblieben.

Auch im Log mit Debug-Modus finden sich außer folgender Meldung keine mehr:

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Esszimmer Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_HSTuer Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Kueche Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Treppenhaus_Buero Allgemein: 1

ASC_DEBUG!!! 2020.07. 1 15:58:25 - FnIsDay: rollo_Wohnzimmer Allgemein: 1


ASC sieht so aus:


Internals:
   FUUID      5e03797a-f33f-4070-d308-ca4f46d4a911f6bb
   FVERSION   73_AutoShuttersControl.pm:v0.10.1-s22248/2020-06-24 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       ASC
   NOTIFYDEV  global,ASC,rollo_Esszimmer,rollo_HSTuer,rollo_Kueche,rollo_Treppenhaus_Buero,rollo_Wohnzimmer
   NR         43
   NTFY_ORDER 51-ASC
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    v0.10.1
   OLDREADINGS:
   READINGS:
     2020-06-29 00:07:02   ascEnable       on
     2020-07-01 15:58:30   controlShading  on
     2020-06-28 23:53:34   hardLockOut     off
     2020-07-01 12:01:27   rollo_Esszimmer_PosValue 0
     2020-07-01 07:30:02   rollo_Esszimmer_lastPosValue 100
     2020-07-01 15:58:28   rollo_Esszimmer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:36   rollo_HSTuer_PosValue 0
     2020-07-01 07:30:02   rollo_HSTuer_lastPosValue 100
     2020-07-01 15:58:28   rollo_HSTuer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:27   rollo_Kueche_PosValue 0
     2020-07-01 07:30:02   rollo_Kueche_lastPosValue 100
     2020-07-01 15:58:28   rollo_Kueche_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:11:23   rollo_Treppenhaus_Buero_PosValue 0
     2020-07-01 08:00:02   rollo_Treppenhaus_Buero_lastPosValue 0
     2020-07-01 15:58:28   rollo_Treppenhaus_Buero_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 12:01:25   rollo_Wohnzimmer_PosValue 0
     2020-07-01 07:30:02   rollo_Wohnzimmer_lastPosValue 100
     2020-07-01 15:58:28   rollo_Wohnzimmer_nextAstroTimeEvent  1.07.2020 - 22:00
     2020-07-01 15:58:25   room_Rollos     rollo_Esszimmer,rollo_HSTuer,rollo_Kueche,rollo_Treppenhaus_Buero,rollo_Wohnzimmer
     2020-06-28 23:53:34   selfDefense     off
     2020-07-01 15:58:28   state           created new drive timer
     2020-06-28 23:58:02   sunriseTimeWeHoliday on
     2020-07-01 15:58:25   userAttrList    rolled out
   helper:
     shuttersList:
       rollo_Esszimmer
       rollo_HSTuer
       rollo_Kueche
       rollo_Treppenhaus_Buero
       rollo_Wohnzimmer
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_debug  1
   ASC_tempSensor DWD:fc0_Tx
   ASC_twilightDevice Astro
   devStateIcon { ShuttersControl_DevStateIcon($name) }
   icon       fts_shutter_automatic
   room       Automatisierung


Ein Rolladendevice:

Internals:
   FUUID      5e0238fb-f33f-4070-9f96-6ef239f9fa1286e6
   NAME       rollo_HSTuer
   NR         33
   STATE      open
   STILLDONETIME 0
   TYPE       ROLLO
   READINGS:
     2019-12-30 10:14:33   ASC_Enable      on
     2020-07-01 15:56:02   ASC_ShadingMessage <html> INFO:  shading active, global temp sensor is set, but shutters temperature sensor is not set </html>
     2020-07-01 12:01:36   ASC_ShuttersLastDrive manual
     2020-07-01 15:58:28   ASC_Time_DriveDown  1.07.2020 - 22:00
     2020-07-01 15:58:28   ASC_Time_DriveUp  2.07.2020 - 07:30
     2020-07-01 15:58:25   associatedWith  ASC
     2020-07-01 12:01:00   command         open
     2020-07-01 12:01:00   desired_pct     0
     2020-07-01 12:01:00   drive-type      modul
     2020-07-01 12:01:00   last_drive      drive-up
     2020-07-01 12:01:36   pct             0
     2020-07-01 12:01:36   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BrightnessSensor ESPEasy_brightsouth_sensorsouth:luxsouth
   ASC_Closed_Pos 70
   ASC_Down   astro
   ASC_LockOut soft
   ASC_Open_Pos 0
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 140:255
   ASC_Shading_MinMax_Elevation 15:100
   ASC_Shading_Min_OutsideTemperature 15
   ASC_Shading_Mode always
   ASC_Shading_Pos 40
   ASC_Shading_StateChange_SunnyCloudy 6000:5000 2
   ASC_ShuttersPlace terrace
   ASC_Time_Up_Early 7:30
   ASC_Time_Up_Late 11:00
   ASC_Time_Up_WE_Holiday 9:00
   ASC_Up     astro
   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 rollo_a3 AI
   rl_commandStopDown set rollo_a3 AI
   rl_commandStopUp set rollo_a3 A0
   rl_commandUp set rollo_a3 A0
   rl_excessBottom 7
   rl_excessTop 0
   rl_resetTime 8
   rl_secondsDown 21
   rl_secondsUp 21
   rl_switchTime 10
   rl_type    normal
   room       Rollos
   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_SlatPosCmd_SlatDevice 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     open:closed:half:stop:pct


Ich weiß leider nicht wo das Problem liegt, da der Log entsprechend klein ausfällt. Bitte um Hilfe ;)

Dankeschön und Grüße, Leon

Bei Dir sind alle Sensoren aus der NOTIFYDEV raus.
Bitte einmal im ASC expert 1 als Attribut und dann set createNewNotifyDev



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

Leon_Emm

Zitat von: CoolTux am 01 Juli 2020, 17:38:33
Bei Dir sind alle Sensoren aus der NOTIFYDEV raus.
Bitte einmal im ASC expert 1 als Attribut und dann set createNewNotifyDev



Grüße

Super Vielen Dank! Hammer, was du da auf die Beine Stellst! Hut Ab!

Migul47

Hallo,

bleibt der Rollo auch mal unten? Der fährt selbst um 23 Uhr mit Shading out komplett auf.

CoolTux

Das sollte nicht sein. Würde Nacht korrekt erkannt. Prüfte mal den getter von IsDay für das Rollo.
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

Ich habe ein Update für morgen früh freigegeben. Es werden einige kleinere Bugs behoben inbesondere wieder beim Thema Brightness Tag/Nacht Fahrt.
Das nächste Update ist schon in Arbeit, es wird das Shading komplett in eine Datei auslagern und einige Bugfixes und Erweiterungen bringen.



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

Migul47

Zitat von: CoolTux am 02 Juli 2020, 01:20:05
Das sollte nicht sein. Würde Nacht korrekt erkannt. Prüfte mal den getter von IsDay für das Rollo.
Ist vor ASC_Time_Down_Late 1, danach 0. Mag das Modul es nicht, wenn Shading_Pos und Sleep_Pos gleich sind? Sind aktuell verschieden, jetzt ist Ruhe.