[73_AutoShuttersControl.pm] Neues Modul zum automatisierten steuern von Rolläden

Begonnen von CoolTux, 30 Oktober 2018, 17:29:46

Vorheriges Thema - Nächstes Thema

CoolTux

Hallo Dieter,

Nicht das ich wüsste. Hatte es denn mal funktioniert mit tomorrow?
Ich schaue heute Abend gerne einmal.
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

nils_

vielleicht macht es diese Änderung auch leichter ?!
https://forum.fhem.de/index.php/topic,97769.0.html
ZitatNeuer Filter limit:when=today|tomorrow Damit lassen sich nun auf einfache Weise alle anstehenden Termine für heute oder morgen ermitteln: get <calName> events limit:when=today
viele Wege in FHEM es gibt!

dk3572

Zitat von: CoolTux am 28 Februar 2019, 16:49:43
Hallo Dieter,

Nicht das ich wüsste. Hatte es denn mal funktioniert mit tomorrow?
Ich schaue heute Abend gerne einmal.

Ja, hatte einwandfrei funktioniert.

mobiljoe123

Zitat von: mobiljoe123 am 27 Februar 2019, 19:51:05
Richtig. Das wars.
Hab das Modul ASC-Device nochmal gelöscht. Nun sind auch alle Attr beim Rollladen automatisch verschwunden.

... alles neu eingerichtet. Mal sehen was das Update morgen bringt.
Auf jedenfall schon mal ein großes Dankeschön!

Also Morgens und Abends funktioniert.
Die Lüftungsfunktion funktioniert nicht. Auch die Beschattung nicht. Wobei mir noch ganz klar ist woher ASC_Shading_StateChange_Sunny & ASC_Shading_StateChange_Cloudy kommen. Auf welches Device wird hier geschaut?

Anbei nochmal meine List.

List Bad_Rollladen
Internals:
   CUL_1_MSGCNT 5
   CUL_1_RAWMSG A0DC5A41062A054FF08150601C800::-59.5:CUL_1
   CUL_1_RSSI -59.5
   CUL_1_TIME 2019-02-28 18:39:51
   DEF        62A054
   FUUID      5c442fac-f33f-95bd-823a-ba0227a7ce6fe37c
   IODev      CUL_1
   LASTInputDev CUL_1
   MSGCNT     5
   NAME       Bad_Rollladen
   NOTIFYDEV  global
   NR         359
   NTFY_ORDER 50-Bad_Rollladen
   STATE      zu
   TYPE       CUL_HM
   lastMsg    No:C5 - t:10 s:62A054 d:FF0815 0601C800
   protLastRcv 2019-02-28 18:39:48
   protRcv    4 last_at:2019-02-28 18:39:48
   protSnd    5 last_at:2019-02-28 18:39:51
   protState  CMDs_done
   rssi_CUL_1 cnt:2 min:-62 max:-58 avg:-60 lst:-62
   rssi_at_CUL_1 cnt:5 min:-62.5 max:-58 avg:-59.6 lst:-59.5
   READINGS:
     2019-02-28 18:39:28   ASC_ShuttersLastDrive night close
     2019-02-28 18:39:28   ASC_Time_DriveDown  1.03.2019 - 18:39
     2019-02-28 18:39:28   ASC_Time_DriveUp  1.03.2019 - 06:42
     2019-02-28 18:39:28   CommandAccepted yes
     2018-05-15 12:27:45   D-firmware      2.11
     2018-05-15 12:27:45   D-serialNr      OEQ1847882
     2018-06-12 13:37:34   PairedTo        0xFF0815
     2018-05-17 19:38:41   R-driveDown     16 s
     2018-05-15 12:27:50   R-driveTurn     0.5 s
     2018-05-17 19:38:24   R-driveUp       16 s
     2018-05-15 12:27:49   R-pairCentral   0xFF0815
     2018-05-15 12:27:50   R-powerUpAction off
     2018-05-15 12:27:50   R-sign          off
     2018-06-12 13:37:34   RegL_00.        02:01 0A:FF 0B:08 0C:15 15:FF 18:00 00:00
     2018-06-12 13:37:35   RegL_01.        08:00 09:00 0A:00 0B:00 0C:A0 0D:00 0E:A0 0F:05 10:00  30:06 57:24 56:00 00:00
     2019-02-28 18:39:48   deviceMsg       off (to VCCU)
     2019-02-28 18:39:48   level           0
     2019-02-28 18:39:48   motor           stop:off
     2019-02-28 18:39:48   pct             0
     2018-06-12 13:37:33   powerOn         2018-06-12 13:37:33
     2019-02-28 18:39:48   recentStateType info
     2019-02-28 18:39:28   setTo           0
     2019-02-28 18:39:48   state           off
     2019-02-28 18:39:48   timedOn         off
     2019-02-28 18:39:48   usermode        auto
   helper:
     HM_CMDNR   197
     cSnd       11FF081562A054020100,11FF081562A0540201C8
     dlvlCmd    ++A011FF081562A0540201C8
     mId        006A
     regLst     ,0,1,3p
     rxType     1
     supp_Pair_Rep 0
     dir:
       cur        stop
       rct        up
     expert:
       def        1
       det        0
       raw        1
       tpl        0
     io:
       newChn     +62A054,00,00,00
       nextSend   1551375591.87841
       rxt        0
       vccu       VCCU
       p:
         62A054
         00
         00
         00
       prefIO:
         CUL_1
     mRssi:
       mNo        C5
       io:
         CUL_1:
           -53.5
           -53.5
     prt:
       bErr       0
       sProc      0
       rspWait:
     q:
       qReqConf   
       qReqStat   
     role:
       chn        1
       dev        1
       prs        1
     rpt:
       IO         CUL_1
       flg        A
       ts         1551375591.78081
       ack:
         HASH(0x444ce20)
         C58002FF081562A05400
     rssi:
       CUL_1:
         avg        -60
         cnt        2
         lst        -62
         max        -58
         min        -62
       at_CUL_1:
         avg        -59.6
         cnt        5
         lst        -59.5
         max        -58
         min        -62.5
Attributes:
   ASC        2
   ASC_Antifreeze off
   ASC_Antifreeze_Pos 15
   ASC_AutoAstroModeEvening none
   ASC_AutoAstroModeEveningHorizon none
   ASC_AutoAstroModeMorning none
   ASC_AutoAstroModeMorningHorizon none
   ASC_BlockingTime_afterManual 1200
   ASC_BlockingTime_beforDayOpen 3600
   ASC_BlockingTime_beforNightClose 3600
   ASC_BrightnessMaxVal -1
   ASC_BrightnessMinVal -1
   ASC_Brightness_Reading brightness
   ASC_Brightness_Sensor none
   ASC_Closed_Pos 0
   ASC_ComfortOpen_Pos 80
   ASC_Down   astro
   ASC_Drive_Offset -1
   ASC_Drive_OffsetStart -1
   ASC_GuestRoom none
   ASC_LockOut off
   ASC_LockOut_Cmd none
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Partymode off
   ASC_Pos_Reading pct
   ASC_PrivacyDownTime_beforNightClose -1
   ASC_PrivacyDown_Pos 50
   ASC_Roommate_Device none
   ASC_Roommate_Reading state
   ASC_Self_Defense_Exclude off
   ASC_Shading_Angle_Left 55
   ASC_Shading_Angle_Right 55
   ASC_Shading_Direction 220
   ASC_Shading_Min_Elevation 25
   ASC_Shading_Min_OutsideTemperature 20
   ASC_Shading_Mode always
   ASC_Shading_Pos 30
   ASC_Shading_StateChange_Cloudy 20000
   ASC_Shading_StateChange_Sunny 35000
   ASC_Shading_WaitingPeriod 1200
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 15:30
   ASC_Time_Down_Late 22:30
   ASC_Time_Up_Early 04:30
   ASC_Time_Up_Late 09:00
   ASC_Time_Up_WE_Holiday 08:30
   ASC_Up     astro
   ASC_Ventilate_Pos 50
   ASC_Ventilate_Window_Open on
   ASC_WiggleValue 10
   ASC_WindowRec EG_Bad_Fenster
   ASC_WindowRec_subType twostate
   IODev      CUL_1
   IOgrp      VCCU:CUL_1
   alias      Rollladen im Bad im Erdgeschoss
   autoReadReg 4_reqStatus
   devStateIcon auf:fts_shutter_1w_0 zu:fts_shutter_1w_100 up:fts_shutter_1w_10@green down:fts_shutter_1w_100@black 9\d.*:fts_shutter_1w_10 8\d.*:fts_shutter_1w_20 7\d.*:fts_shutter_1w_30 6\d.*:fts_shutter_1w_40 5\d.*:fts_shutter_1w_50 4\d.*:fts_shutter_1w_60 3\d.*:fts_shutter_1w_70 2\d.*:fts_shutter_1w_80 1\d.*:fts_shutter_1w_90 0\d.*:fts_shutter_1w_100
   eventMap   on:auf off:zu up:runter down:hoch
   expert     2_raw
   firmware   2.11
   icon       fts_shutter_updown
   model      HM-LC-Bl1PBU-FM
   param      levelInverse
   peerIDs    00000000,
   room       Bad
   serialNr   OEQ1847882
   subType    blindActuator
   userReadings setTo:level..set.* {(split("_",ReadingsVal($name,"level","?")))[1]} , usermode:pct.* {if (ReadingsVal($name,"pct","?") eq ReadingsVal($name,"setTo","?")) {"auto"} else {"manuell"}}
   userattr   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_BrightnessMaxVal ASC_BrightnessMinVal ASC_Brightness_Reading ASC_Brightness_Sensor 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_Drive_Offset ASC_Drive_OffsetStart 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_PrivacyDown_Pos ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_Exclude:on,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_Min_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_WaitingPeriod ASC_ShuttersPlace:window,terrace 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_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindowRec ASC_WindowRec_subType:twostate,threestate
   webCmd     zu:pct:auf


List Rollladenautomatik
Internals:
   FUUID      5c76dc55-f33f-95bd-09d2-b3679e6c324f0ce1
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       Rollladenautomatik
   NOTIFYDEV  global,Rollladenautomatik,Bad_Rollladen,5642fc842baa3c490d851e91%7c99bcab661a68df87a4d3cf3235a47131,5642fc842baa3c490d851e91%7c99bcab661a68df87a4d3cf3235a47131,5642fc842baa3c490d851e91%7c99bcab661a68df87a4d3cf3235a47131,5642fc842baa3c490d851e91%7c99bcab661a68df87a4d3cf3235a47131,5642fc842baa3c490d851e91%7c99bcab661a68df87a4d3cf3235a47131
   NR         407
   NTFY_ORDER 51-Rollladenautomatik
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    0.4.0.9
   OLDREADINGS:
   READINGS:
     2019-02-28 18:39:48   Bad_Rollladen_PosValue 0
     2019-02-28 18:39:28   Bad_Rollladen_lastPosValue 100
     2019-02-28 18:39:28   Bad_Rollladen_nextAstroTimeEvent  1.03.2019 - 06:42
     2019-02-27 19:52:06   hardLockOut     off
     2019-02-27 19:52:06   partyMode       off
     2019-02-28 10:07:47   room_Bad        Bad_Rollladen
     2019-02-27 19:52:06   selfDefense     off
     2019-02-28 18:39:28   state           created new drive timer
     2019-02-27 19:52:06   sunriseTimeWeHoliday off
     2019-02-28 10:07:47   userAttrList    rolled out
   helper:
     shuttersList:
       Bad_Rollladen
   monitoredDevs:
     Bad_Rollladen:
     EG_Bad_Fenster:
       Bad_Rollladen ASC_WindowRec
     MyHomeAstro:
       Rollladenautomatik ASC_twilightDevice
     myTwilight:
       Rollladenautomatik ASC_twilightDevice
     netatmo_M05_00_00_02_9d_cc:
       Rollladenautomatik ASC_rainSensorDevice
     zuHause:
       Rollladenautomatik ASC_residentsDevice
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_autoShuttersControlShading on
   ASC_expert 1
   ASC_rainSensorDevice netatmo_M05_00_00_02_9d_cc
   ASC_rainSensorReading rain
   ASC_rainSensorShuttersClosedPos 50
   ASC_residentsDevice zuHause
   ASC_temperatureReading temperature
   ASC_temperatureSensor netatmo_M02_00_00_17_87_e4
   ASC_twilightDevice myTwilight
   devStateIcon selfeDefense.terrace:fts_door_tilt created.new.drive.timer:clock .*asleep:scene_sleeping roommate.(awoken|home):user_available residents.(home|awoken):status_available manual:fts_shutter_manual selfeDefense.active:status_locked selfeDefense.inactive:status_open day.open:scene_day night.close:scene_night shading.in:weather_sun shading.out:weather_cloudy
   icon       fts_shutter_automatic
   room       Rollladenautomatik
   verbose    4


Irgendeine Idee?
Raspi 2; HM; MAX!; RFXtrx

CoolTux

Für Beschattung fehlt dir ein Brightness Sensor. Und Deine NOTIFYDEV im ASC sieht komisch aus. Da mach mal bitte erstmal ein set createNewNotifyDev und dann hier das ASC noch mal Posten.
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

mobiljoe123

Hier das List
Internals:
   FUUID      5c76dc55-f33f-95bd-09d2-b3679e6c324f0ce1
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       Rollladenautomatik
   NOTIFYDEV  EG_Bad_Fenster,Rollladenautomatik,global,myTwilight,netatmo_M05_00_00_02_9d_cc,zuHause,Bad_Rollladen
   NR         407
   NTFY_ORDER 51-Rollladenautomatik
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    0.4.0.9
   OLDREADINGS:
   READINGS:
     2019-02-28 18:39:48   Bad_Rollladen_PosValue 0
     2019-02-28 18:39:28   Bad_Rollladen_lastPosValue 100
     2019-02-28 18:39:28   Bad_Rollladen_nextAstroTimeEvent  1.03.2019 - 06:42
     2019-02-27 19:52:06   hardLockOut     off
     2019-02-27 19:52:06   partyMode       off
     2019-02-28 10:07:47   room_Bad        Bad_Rollladen
     2019-02-27 19:52:06   selfDefense     off
     2019-02-28 18:39:28   state           created new drive timer
     2019-02-27 19:52:06   sunriseTimeWeHoliday off
     2019-02-28 10:07:47   userAttrList    rolled out
   helper:
     shuttersList:
       Bad_Rollladen
   monitoredDevs:
     EG_Bad_Fenster:
       Bad_Rollladen ASC_WindowRec
     myTwilight:
       Rollladenautomatik ASC_twilightDevice
     netatmo_M05_00_00_02_9d_cc:
       Rollladenautomatik ASC_rainSensorDevice
     zuHause:
       Rollladenautomatik ASC_residentsDevice
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_autoShuttersControlShading on
   ASC_expert 1
   ASC_rainSensorDevice netatmo_M05_00_00_02_9d_cc
   ASC_rainSensorReading rain
   ASC_rainSensorShuttersClosedPos 50
   ASC_residentsDevice zuHause
   ASC_temperatureReading temperature
   ASC_temperatureSensor netatmo_M02_00_00_17_87_e4
   ASC_twilightDevice myTwilight
   devStateIcon selfeDefense.terrace:fts_door_tilt created.new.drive.timer:clock .*asleep:scene_sleeping roommate.(awoken|home):user_available residents.(home|awoken):status_available manual:fts_shutter_manual selfeDefense.active:status_locked selfeDefense.inactive:status_open day.open:scene_day night.close:scene_night shading.in:weather_sun shading.out:weather_cloudy
   icon       fts_shutter_automatic
   room       Rollladenautomatik
   verbose    4
Raspi 2; HM; MAX!; RFXtrx

mobiljoe123

Zitat von: CoolTux am 28 Februar 2019, 21:09:16
Für Beschattung fehlt dir ein Brightness Sensor.
Schade.
Zitat von: Papaloewe am 28 Februar 2019, 21:18:48
Wie sollte es?
Nur über die Temperatur, oder den Sonnenstand?
Das wäre doch nicht vernünftig.
Warum?
Internals:
   DEF        ([myTwilight:azimuth] > 140 and [myTwilight:azimuth] < 280 and max([?netatmo_M02_00_00_17_87_e4:temperature],[?Temperatursensor_Vordach:temperature]) > 30)
(set Bad_Rollladen pct 35)
DOELSEIF
([myTwilight:azimuth] > 140 and [myTwilight:azimuth] < 280 and max([?netatmo_M02_00_00_17_87_e4:temperature],[?Temperatursensor_Vordach:temperature]) > 25 and [?Kostal:AC.Power] > 2000)
(set Bad_Rollladen pct 35)
DOELSE (set Bad_Rollladen auf)
   FUUID      5c442fad-f33f-95bd-da02-c858251403de1604
   MODEL      FHEM
   NAME       doif.Bad_Rollladen_sun_temp_automatic
   NR         363
   NTFY_ORDER 50-doif.Bad_Rollladen_sun_temp_automatic
   STATE      cmd_3
   TYPE       DOIF
   VERSION    18706 2019-02-23 21:48:22
   READINGS:
     2019-02-24 18:35:02   Device          myTwilight
     2018-10-17 13:58:36   cmd             3
     2018-10-17 13:58:36   cmd_event       myTwilight
     2018-10-17 13:58:36   cmd_nr          3
     2019-02-24 18:35:02   e_myTwilight_azimuth 263.4
     2019-02-28 21:17:46   mode            enabled
     2019-02-28 21:17:46   state           cmd_3
     2018-10-17 13:58:36   wait_timer      no timer
   Regex:
     accu:
   attr:
     wait:
       0:
         300
       1:
         300
       2:
         300
   condition:
     0          ::ReadingValDoIf($hash,'myTwilight','azimuth') > 140 and ::ReadingValDoIf($hash,'myTwilight','azimuth') < 280 and max(::ReadingValDoIf($hash,'netatmo_M02_00_00_17_87_e4','temperature'),::ReadingValDoIf($hash,'Temperatursensor_Vordach','temperature')) > 30
     1          ::ReadingValDoIf($hash,'myTwilight','azimuth') > 140 and ::ReadingValDoIf($hash,'myTwilight','azimuth') < 280 and max(::ReadingValDoIf($hash,'netatmo_M02_00_00_17_87_e4','temperature'),::ReadingValDoIf($hash,'Temperatursensor_Vordach','temperature')) > 25 and ::ReadingValDoIf($hash,'Kostal','AC.Power') > 2000
   devices:
     0           myTwilight
     1           myTwilight
     all         myTwilight
   do:
     0:
       0          set Bad_Rollladen pct 35
     1:
       0          set Bad_Rollladen pct 35
     2:
       0          set Bad_Rollladen auf
   helper:
     globalinit 1
     last_timer 0
     sleeptimer -1
   itimer:
   perlblock:
   readings:
     0           myTwilight:azimuth
     1           myTwilight:azimuth
     all         myTwilight:azimuth
   uiState:
   uiTable:
Attributes:
   room       doif.Automatisierung
   wait       300:300:300

Dann nehm ich weiterhin mein DOIF.
Raspi 2; HM; MAX!; RFXtrx

Papaloewe

Wie sollte es?
Nur über die Temperatur, oder den Sonnenstand?
Das wäre doch nicht vernünftig.

CoolTux

Zitat von: mobiljoe123 am 28 Februar 2019, 21:14:54
Hier das List
Internals:
   FUUID      5c76dc55-f33f-95bd-09d2-b3679e6c324f0ce1
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       Rollladenautomatik
   NOTIFYDEV  EG_Bad_Fenster,Rollladenautomatik,global,myTwilight,netatmo_M05_00_00_02_9d_cc,zuHause,Bad_Rollladen
   NR         407
   NTFY_ORDER 51-Rollladenautomatik
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    0.4.0.9
   OLDREADINGS:
   READINGS:
     2019-02-28 18:39:48   Bad_Rollladen_PosValue 0
     2019-02-28 18:39:28   Bad_Rollladen_lastPosValue 100
     2019-02-28 18:39:28   Bad_Rollladen_nextAstroTimeEvent  1.03.2019 - 06:42
     2019-02-27 19:52:06   hardLockOut     off
     2019-02-27 19:52:06   partyMode       off
     2019-02-28 10:07:47   room_Bad        Bad_Rollladen
     2019-02-27 19:52:06   selfDefense     off
     2019-02-28 18:39:28   state           created new drive timer
     2019-02-27 19:52:06   sunriseTimeWeHoliday off
     2019-02-28 10:07:47   userAttrList    rolled out
   helper:
     shuttersList:
       Bad_Rollladen
   monitoredDevs:
     EG_Bad_Fenster:
       Bad_Rollladen ASC_WindowRec
     myTwilight:
       Rollladenautomatik ASC_twilightDevice
     netatmo_M05_00_00_02_9d_cc:
       Rollladenautomatik ASC_rainSensorDevice
     zuHause:
       Rollladenautomatik ASC_residentsDevice
Attributes:
   ASC_autoAstroModeEvening CIVIL
   ASC_autoAstroModeMorning CIVIL
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_autoShuttersControlShading on
   ASC_expert 1
   ASC_rainSensorDevice netatmo_M05_00_00_02_9d_cc
   ASC_rainSensorReading rain
   ASC_rainSensorShuttersClosedPos 50
   ASC_residentsDevice zuHause
   ASC_temperatureReading temperature
   ASC_temperatureSensor netatmo_M02_00_00_17_87_e4
   ASC_twilightDevice myTwilight
   devStateIcon selfeDefense.terrace:fts_door_tilt created.new.drive.timer:clock .*asleep:scene_sleeping roommate.(awoken|home):user_available residents.(home|awoken):status_available manual:fts_shutter_manual selfeDefense.active:status_locked selfeDefense.inactive:status_open day.open:scene_day night.close:scene_night shading.in:weather_sun shading.out:weather_cloudy
   icon       fts_shutter_automatic
   room       Rollladenautomatik
   verbose    4


Das sieht sehr gut aus. Nun sollte auch das Fenster öffnen gehen. Probier mal.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

mobiljoe123

Raspi 2; HM; MAX!; RFXtrx

CoolTux

Einfach mal öfters auf diese Zeile im ASC schauen
NOTIFYDEV  EG_Bad_Fenster,Rollladenautomatik,global,myTwilight,netatmo_M05_00_00_02_9d_cc,zuHause,Bad_Rollladen

oder auch mal ein get showNotifyDevInformation machen und schauen ob Dir da was komisch vor kommt.


Viel Spaß
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

Papaloewe

Kannst du nicht auch das Reading von dem Kostal als Brightness Device benutzen?

Prof. Dr. Peter Henning

#1737
Thema Brightness: Ist bei mir die an einem Sensor der PV-Anlage gemessene Globalstrahlung.

Thema Shading: Meine eigene Beschattungssteuerung war deutlich komfortabler als das, was bisher in ASC integriert ist. Denn dabei habe einerseits ich auch die Sonnenhöhe berücksichtigt, um die Targetposition des Rollladens zu bestimmen. Hier könnte man also beim Attribut ASC_Shading_Pos statt des festen Zahlenwertes einen Perl-Ausdruck angeben, der im Modul als solcher erkannt wird und dann ausgewertet wird.

sub getShadingPos {
    my $self    = shift;
    my $default = $self->{defaultarg};

    $default = 10 if ( not defined($default) );
    my $av =  AttrVal( $self->{shuttersDev}, 'ASC_Shading_Pos', $default );
   
    if( $av !~ /\d\d/ ){
      $av = eval{$av};
      $av = $default
         if($av !~ /\d\d/ );
    } 
}


Außerdem habe ich die Positionsänderung bei einer Änderung der Beschattungsbedingungen auf 10% beschränkt - damit der Rollladen schrittweise bewegt wird.

Ach ja, und noch etwas zum Code am Beispiel Shading: Dadurch, dass bei der Berechung mehrfach $shutters->getShadingPos aufgerufen wird, wird der Code ziemlich langsam. Hast Du irgendeinen Grund, das nicht in einer lokalen Variable zu cachen?

LG

pah


P.S::
@mobiljoe123:
ZitatHab das Modul nochmal gelöscht.
Unsinn. Bitte keine Nebelkerzen zünden, sondern erst einmal die Einsteigerdokumentation von FHEM lesen.

dk3572

Zitat von: CoolTux am 28 Februar 2019, 16:49:43
Hallo Dieter,

Nicht das ich wüsste. Hatte es denn mal funktioniert mit tomorrow?
Ich schaue heute Abend gerne einmal.

Guten Morgen CoolTux,

hattest du Gestern die Gelegenheit dir das mal anzusehen?

VG Dieter

Kai-Alfonso

Zitat von: Prof. Dr. Peter Henning am 01 März 2019, 04:36:22
Thema Brightness: Ist bei mir die an einem Sensor der PV-Anlage gemessene Globalstrahlung.

Thema Shading: Meine eigene Beschattungssteuerung war deutlich komfortabler als das, was bisher in ASC integriert ist. Denn dabei habe einerseits ich auch die Sonnenhöhe berücksichtigt, um die Targetposition des Rollladens zu bestimmen. Hier könnte man also beim Attribut ASC_Shading_Pos statt des festen Zahlenwertes einen Perl-Ausdruck angeben, der im Modul als solcher erkannt wird und dann ausgewertet wird.

sub getShadingPos {
    my $self    = shift;
    my $default = $self->{defaultarg};

    $default = 10 if ( not defined($default) );
    my $av =  AttrVal( $self->{shuttersDev}, 'ASC_Shading_Pos', $default );
   
    if( $av !~ /\d\d/ ){
      $av = eval{$av};
      $av = $default
         if($av !~ /\d\d/ );
    } 
}


Außerdem habe ich die Positionsänderung bei einer Änderung der Beschattungsbedingungen auf 10% beschränkt - damit der Rollladen schrittweise bewegt wird.



Ich wäre dafür - hab ja schon mal weiter vorne angeregt, das eine schrittweise Beschattung unter Umständen besser ist, damit immer noch möglichst viel Helligkeit, aber möglichst wenig Sonne reinkommt.
Raspi2|nanoCul433|nanoCul868|CCU2
Energie-USBZähler|homebrew HM Devices
DBLog|DBRep|Homematic|Baumarktsteckdosen
Hue|Webcams mit DS-Station (Synology)|Bewegungsmelder|Rollladen|Schalter (IT|HM)