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

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

Vorheriges Thema - Nächstes Thema

alexmetz

Zur Info:
Ich habe mir jetzt auf die Schnelle einen Schalter zum Umschalten der Beschattungsautomatik gebaut.
Wäre super wenn das ins Modul irgendwie integriert würde bzw bei Shading Info angezeigt würde, wenn die Automatik wegen manueller Betätigung aus ist.

Viele Grüße,
Alex

Hier mal das list meines Schalters:
Internals:
   DEF        ASC2:controlShading
   DEVICE     ASC2
   FUUID      60ba6d06-f33f-c40b-be29-6fdada84c381eeed
   NAME       controlShading
   NOTIFYDEV  ASC2,global
   NR         19326
   NTFY_ORDER 50-controlShading
   READING    controlShading
   STATE      on
   TYPE       readingsProxy
   CONTENT:
     ASC2       1
   READINGS:
     2021-06-04 22:57:54   lastCmd         on
     2021-06-04 22:57:54   state           on
Attributes:
   alexaName  Beschattungsautomatik
   alexaRoom  Wintergarten
   alias      Beschattungsautomatik
   devStateIcon on:rc_GREEN off:rc_RED
   genericDeviceType switch
   group      AutoShuttersControl
   room       ASC,EG_Wintergarten,Homekit,alexa
   setFn      {"controlShading ".$CMD}
   setList    on off
   siriName   Beschattungsautomatik
   valueFn    { ( ($VALUE eq "off") || ( (ReadingsVal($DEVICE,"state","0") eq "manual") && (time_str2num(ReadingsTimestamp($DEVICE,"state","0")) > time_str2num(ReadingsTimestamp($DEVICE, $READING,"0")) ) ) )?"off":$VALUE}


und ergänzt um ein DOIF, damit der richtige Status angezeigt wird, weil der readingsProxy nicht auf eine state-Änderung im ASC-Device reagiert.
Internals:
   DEF        ([ASC2:"manual"]) (setreading controlShading state off)
   FUUID      60ba90e7-f33f-c40b-c9f3-136cbad42506b861
   MODEL      FHEM
   NAME       controlShading_di
   NOTIFYDEV  global,ASC2
   NR         310
   NTFY_ORDER 50-controlShading_n
   STATE      cmd_1
   TYPE       DOIF
   VERSION    24491 2021-05-22 17:51:49
   READINGS:
     2021-06-05 13:37:05   Device          ASC2
     2021-06-05 13:36:58   cmd             1
     2021-06-05 13:36:58   cmd_event       ASC2
     2021-06-05 13:36:58   cmd_nr          1
     2021-06-05 13:37:05   e_ASC2_events   controlShading: on
     2021-06-05 13:33:59   mode            enabled
     2021-06-05 13:36:58   state           cmd_1
   Regex:
     accu:
     collect:
     cond:
       ASC2:
         0:
           &STATE     ^ASC2$
   attr:
     cmdState:
     wait:
     waitdel:
   condition:
     0          ::EventDoIf('ASC2',$hash,'manual',1)
   do:
     0:
       0          setreading controlShading state off
     1:
   helper:
     DEVFILTER  ^global$|^ASC2$
     NOTIFYDEV  global|ASC2
     event      controlShading: on
     globalinit 1
     last_timer 0
     sleeptimer -1
     timerdev   ASC2
     timerevent manual
     triggerDev ASC2
     timerevents:
       manual
     timereventsState:
       state: manual
     triggerEvents:
       controlShading: on
     triggerEventsState:
       controlShading: on
   internals:
   readings:
   trigger:
     all         ASC2
   uiState:
   uiTable:
Attributes:
   do         always
   room       ASC
FHEM auf RaspberryPi 4
Homematic

gestein

Hallo,

Interessant.
Könntest Du aber bitte statt der lists die jeweiligen Raw-Definitions posten?

Danke, Lg, Gerhard

alexmetz

Zitat von: gestein am 05 Juni 2021, 15:32:13
Hallo,

Interessant.
Könntest Du aber bitte statt der lists die jeweiligen Raw-Definitions posten?

Danke, Lg, Gerhard

Klar:
defmod controlShading readingsProxy ASC2:controlShading
attr controlShading alexaName Beschattungsautomatik
attr controlShading alexaRoom Wintergarten
attr controlShading alias Beschattungsautomatik
attr controlShading devStateIcon on:rc_GREEN off:rc_RED
attr controlShading genericDeviceType switch
attr controlShading group AutoShuttersControl
attr controlShading room ASC,EG_Wintergarten,Homekit,alexa
attr controlShading setFn {"controlShading ".$CMD}
attr controlShading setList on off
attr controlShading siriName Beschattungsautomatik
attr controlShading valueFn { ( ($VALUE eq "off") || ( (ReadingsVal($DEVICE,"state","0") eq "manual") && (time_str2num(ReadingsTimestamp($DEVICE,"state","0")) > time_str2num(ReadingsTimestamp($DEVICE, $READING,"0")) ) ) )?"off":$VALUE}

setstate controlShading off
setstate controlShading 2021-06-05 15:08:06 lastCmd off
setstate controlShading 2021-06-05 15:08:06 state off


Und das doif:
defmod controlShading_di DOIF ([ASC2:"manual"]) (setreading controlShading state off)
attr controlShading_di do always
attr controlShading_di room ASC


Wobei man beim doif wahrscheinlich noch ein else dazufügen sollte, falls das ASC-Device nach shading in und out wieder in die Automatik schaltet. Wobei ich das nicht recht weiß umzusetzen, da es sich ja nicht aus dem Status des ASC ergibt.

Und: heute ist mir die Markise nach Manuell gleich wieder automatisch rausgefahren. Lag aber vermutlich an meiner shadingPos 0...
FHEM auf RaspberryPi 4
Homematic

Reinhard.M

Hallo CoolTux,
ich habe im Zusammenhang mit Fensterkontakt und External Device eine "Unschönheit" oder einen Fehler entdeckt. Es geht um eine Jalousie an einer Terrassentür. Hier der Ablauf:
- Jalousie ist oben (Position = 0, LastPosition = 100, LockOut = soft/hard/off) und die Tür ist offen
- Ich aktiviere das externe Device, die Jalousie sollte jetzt auf 100 fahren. Macht sie natürlich nicht da die Tür offen ist. LockOut hat hier keinen Einfluss!
- Ich schließe die Tür, jetzt sollte die Jalousie die Fahrt nachholen. Dachte ich. Passiert aber nicht, die Jalousie bleibt oben
- Ich deaktiviere das externe Device. Jetzt fährt die Jalosie in die "LastPosition" die ja noch auf 100, also unten steht. Im ersten Moment verwirrend aber korrekt.
Das gleiche Spiel ist auch bei "night closed" zu sehen. Allerdings hier nur wenn LockOut aktiv ist. Falls es wichtig ist: Position der Jalousie ist "terrace" und "Comfort" ist aktiv.
Ist das Verhalten jetzt ein "Feature" oder ein "Bug"? Ich würde mir jedenfalls wünschen, das automatische Fahrten nachgeholt werden. Wenn's machbar ist.

Gruß Reinhard

CoolTux

Zitat von: Reinhard.M am 06 Juni 2021, 11:54:14
Hallo CoolTux,
ich habe im Zusammenhang mit Fensterkontakt und External Device eine "Unschönheit" oder einen Fehler entdeckt. Es geht um eine Jalousie an einer Terrassentür. Hier der Ablauf:
- Jalousie ist oben (Position = 0, LastPosition = 100, LockOut = soft/hard/off) und die Tür ist offen
- Ich aktiviere das externe Device, die Jalousie sollte jetzt auf 100 fahren. Macht sie natürlich nicht da die Tür offen ist. LockOut hat hier keinen Einfluss!
- Ich schließe die Tür, jetzt sollte die Jalousie die Fahrt nachholen. Dachte ich. Passiert aber nicht, die Jalousie bleibt oben
- Ich deaktiviere das externe Device. Jetzt fährt die Jalosie in die "LastPosition" die ja noch auf 100, also unten steht. Im ersten Moment verwirrend aber korrekt.
Das gleiche Spiel ist auch bei "night closed" zu sehen. Allerdings hier nur wenn LockOut aktiv ist. Falls es wichtig ist: Position der Jalousie ist "terrace" und "Comfort" ist aktiv.
Ist das Verhalten jetzt ein "Feature" oder ein "Bug"? Ich würde mir jedenfalls wünschen, das automatische Fahrten nachgeholt werden. Wenn's machbar ist.

Gruß Reinhard

Hallo Reinhard,

Das Verhalten ist laut Code in der Tat korrekt. Ich gebe Dir aber Recht das eine Prüfung nach schließen zu mindest auf externe Trigger statt finden sollte.

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

Borkk

Hallo Zusammen,

aus aktuellem Anlass habe ich mal eine Frage zum Regenschutz.

So wie ich die Commandref verstehe, wird ein Rollo automatisch in CLOSEDPOS gefahren wenn der in ASC_rainSensor konfigurierte Regensensor anschlägt und im betreffenden Rollo ASC_RainProtection auf "on" steht. In meiner Konfiguration verhält sich der Regenschutz auch genauso.

ASC wertet in dem Zusammenhang nicht aus ob das Fenster (ASC_WindowRec) offen oder zu ist? Wird zumindest nicht erwähnt. Andersrum gefragt, fährt der Regenschutz den Rollo auch wenn das Fenster offen ist oder sticht da u.U. ein Aussperrschutz.

Ich möchte erreichen, das bei einsetzenden Regen, entsprechend konfigurierte Rollos runterfahren aber nur wenn das Fenster offen ist. Wenn ASC das nicht automatisch macht, ist das kein Problem, dann lasse ich das Attribut im Rollo per notify durch den Fensterkontakt setzten.

Es wäre natürlich klasse, wenn ASC den Zustand von ASC_WindowRec beim Regenschutz berücksichtigt.
Proxmox & Docker:  FHEM, Raspberrymatic, ConBee3, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana, HmIP Akt- /Sensoren, Shelly´s, Alexa, ASC, Gardena, E-Paper, FritzBox; (Tado° x), iBeacon, OLED ; ESP32/8266, SwitchBot ... (Netatmo & Homekit über HomeAssistant)

CoolTux

Zitat von: Borkk am 06 Juni 2021, 20:40:40
Hallo Zusammen,

aus aktuellem Anlass habe ich mal eine Frage zum Regenschutz.

So wie ich die Commandref verstehe, wird ein Rollo automatisch in CLOSEDPOS gefahren wenn der in ASC_rainSensor konfigurierte Regensensor anschlägt und im betreffenden Rollo ASC_RainProtection auf "on" steht. In meiner Konfiguration verhält sich der Regenschutz auch genauso.

ASC wertet in dem Zusammenhang nicht aus ob das Fenster (ASC_WindowRec) offen oder zu ist? Wird zumindest nicht erwähnt. Andersrum gefragt, fährt der Regenschutz den Rollo auch wenn das Fenster offen ist oder sticht da u.U. ein Aussperrschutz.

Ich möchte erreichen, das bei einsetzenden Regen, entsprechend konfigurierte Rollos runterfahren aber nur wenn das Fenster offen ist. Wenn ASC das nicht automatisch macht, ist das kein Problem, dann lasse ich das Attribut im Rollo per notify durch den Fensterkontakt setzten.

Es wäre natürlich klasse, wenn ASC den Zustand von ASC_WindowRec beim Regenschutz berücksichtigt.

Wenn das Rollo als Fenster deklariert ist wird es auch in den Regenschutz fahren wenn das Fenster offen ist. Bei einer Terasse allerding wird nicht gefahren. Auch nicht wenn als Fenster deklariert und LockOut soft oder Hard aktiv 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

Borkk

Zitat von: CoolTux am 06 Juni 2021, 21:08:33
Wenn das Rollo als Fenster deklariert ist wird es auch in den Regenschutz fahren wenn das Fenster offen ist. Bei einer Terasse allerding wird nicht gefahren. Auch nicht wenn als Fenster deklariert und LockOut soft oder Hard aktiv ist.

Ok, verstehe, Schade! Dann muss ich was aussen rum bauen, Ist ja nicht so schwer. Wenn es regnet und die Terrassentür offen steht -> Schliesse den Rollo. Ist halt immer blöd wenn, von aussen in die ASC Logik eingegriffen wird.

Ich lasse gerne die Terrassentüren Nachts offen (Nicht EG :) ) , damit es abkühlt. Wenn ich aber vom Regen nicht aufwache, regnet es rein. Wäre aus meiner Sicht ein sinnvoller Einsatz für den Regenschutz. Hab ja ASC schon von Anfang an im Einsatz und hatte meinen Regensensor nie konfiguriert. Da meine Türen und Fenster wasserdicht sind ;) muss eigentlich kein Rollo runterfahren, wenn es regnet und die Fenster und Türen zu sind. Ich hatte aber neulich den Fall das es Nachts fast reingeregnet hätte, da es aber auch richtig gedonnert hat, bin ich wach geworden.

Im Grunde wäre das doch eine Top Funktion für ASC. Sie müsste aus meiner Sicht bei Nacht und Resident Away greifen.   
Proxmox & Docker:  FHEM, Raspberrymatic, ConBee3, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana, HmIP Akt- /Sensoren, Shelly´s, Alexa, ASC, Gardena, E-Paper, FritzBox; (Tado° x), iBeacon, OLED ; ESP32/8266, SwitchBot ... (Netatmo & Homekit über HomeAssistant)

Borkk

Mir ist gerade aufgefallen, dass ASC den Regenschutz bei Nacht anders behandelt als bei Tag.

Tag:
> Triggerwert: Rollo fährt in CLOSEDPOS
< Triggerwert: Rollo fährt auf.

Nacht:
> Triggerwert: Rollo fährt in CLOSEDPOS
< Triggerwert: Rollo fährt zu.

Ist das so gewollt?
Proxmox & Docker:  FHEM, Raspberrymatic, ConBee3, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana, HmIP Akt- /Sensoren, Shelly´s, Alexa, ASC, Gardena, E-Paper, FritzBox; (Tado° x), iBeacon, OLED ; ESP32/8266, SwitchBot ... (Netatmo & Homekit über HomeAssistant)

cornelius fillmore

Guten Morgen zusammen, leider funktionieret die Beschattungsfuktion bei mir nicht mehr.
Wie hieß denn noch mal die Befehlszeile ({ ascAPIget.....) wo ich die shading Werte einsehen kann?

Anbei die list des Rollo
Internals:
   FUUID      5d3d8750-f33f-4662-4e26-0faa001eb35abc4c
   NAME       Rollo_Arbeitszimmer
   NR         479
   STATE      open
   TYPE       ROLLO
   stoptime   1623040247
   READINGS:
     2021-02-18 07:07:35   ASC_Enable      on
     2021-06-07 06:30:47   ASC_ShuttersLastDrive day open
     2021-06-07 06:30:02   ASC_Time_DriveDown 07.06.2021 - 22:20
     2021-06-07 06:30:02   ASC_Time_DriveUp 08.06.2021 - 06:30
     2021-06-04 07:07:35   associatedWith  ASC
     2021-06-07 06:30:02   command         pct-0
     2021-06-07 06:30:02   desired_pct     0
     2021-06-07 06:30:02   drive-type      modul
     2021-06-07 06:30:02   last_drive      drive-up
     2021-06-07 06:30:47   pct             100
     2021-06-07 06:30:47   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BlockingTime_afterManual 1000
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_Closed_Pos 0
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 125:300
   ASC_Shading_MinMax_Elevation 15.0:100.0
   ASC_Shading_Min_OutsideTemperature 19
   ASC_Shading_Mode always
   ASC_Shading_Pos 50
   ASC_Shading_StateChange_SunnyCloudy 35000:25000 2
   ASC_Shading_WaitingPeriod 10
   ASC_TempSensor AktuelleTemp:state
   ASC_Time_Down_Early 21:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 06:30
   ASC_Time_Up_Late 07:15
   ASC_Time_Up_WE_Holiday 07:00
   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_10:open pct-90:fts_shutter_10:closed pct-80:fts_shutter_20:closed pct-70:fts_shutter_30:closed pct-60:fts_shutter_40:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_60:open pct-30:fts_shutter_70:open pct-20:fts_shutter_80:open pct-10:fts_shutter_90:open pct-0:fts_shutter_100:closed
   event-on-change-reading .*
   rl_autoStop 1
   rl_commandDown set JaroFB down 1
   rl_commandStop set JaroFB stop 1
   rl_commandUp set JaroFB up 1
   rl_excessBottom 0
   rl_excessTop 0
   rl_resetTime 0
   rl_secondsDown 45
   rl_secondsUp 45
   rl_switchTime 1
   rl_type    HomeKit
   room       Arbeitszimmer,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_BetweenTheTime 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,awning 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 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: cornelius fillmore am 07 Juni 2021, 07:11:07
Guten Morgen zusammen, leider funktionieret die Beschattungsfuktion bei mir nicht mehr.
Wie hieß denn noch mal die Befehlszeile ({ ascAPIget.....) wo ich die shading Werte einsehen kann?

Anbei die list des Rollo
Internals:
   FUUID      5d3d8750-f33f-4662-4e26-0faa001eb35abc4c
   NAME       Rollo_Arbeitszimmer
   NR         479
   STATE      open
   TYPE       ROLLO
   stoptime   1623040247
   READINGS:
     2021-02-18 07:07:35   ASC_Enable      on
     2021-06-07 06:30:47   ASC_ShuttersLastDrive day open
     2021-06-07 06:30:02   ASC_Time_DriveDown 07.06.2021 - 22:20
     2021-06-07 06:30:02   ASC_Time_DriveUp 08.06.2021 - 06:30
     2021-06-04 07:07:35   associatedWith  ASC
     2021-06-07 06:30:02   command         pct-0
     2021-06-07 06:30:02   desired_pct     0
     2021-06-07 06:30:02   drive-type      modul
     2021-06-07 06:30:02   last_drive      drive-up
     2021-06-07 06:30:47   pct             100
     2021-06-07 06:30:47   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BlockingTime_afterManual 1000
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_Closed_Pos 0
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 125:300
   ASC_Shading_MinMax_Elevation 15.0:100.0
   ASC_Shading_Min_OutsideTemperature 19
   ASC_Shading_Mode always
   ASC_Shading_Pos 50
   ASC_Shading_StateChange_SunnyCloudy 35000:25000 2
   ASC_Shading_WaitingPeriod 10
   ASC_TempSensor AktuelleTemp:state
   ASC_Time_Down_Early 21:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 06:30
   ASC_Time_Up_Late 07:15
   ASC_Time_Up_WE_Holiday 07:00
   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_10:open pct-90:fts_shutter_10:closed pct-80:fts_shutter_20:closed pct-70:fts_shutter_30:closed pct-60:fts_shutter_40:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_60:open pct-30:fts_shutter_70:open pct-20:fts_shutter_80:open pct-10:fts_shutter_90:open pct-0:fts_shutter_100:closed
   event-on-change-reading .*
   rl_autoStop 1
   rl_commandDown set JaroFB down 1
   rl_commandStop set JaroFB stop 1
   rl_commandUp set JaroFB up 1
   rl_excessBottom 0
   rl_excessTop 0
   rl_resetTime 0
   rl_secondsDown 45
   rl_secondsUp 45
   rl_switchTime 1
   rl_type    HomeKit
   room       Arbeitszimmer,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_BetweenTheTime 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,awning 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 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


In der Commandref stehen die entsprechenden Aufrufe. Bin leider gerade mobil.
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

cornelius fillmore

OK, das wars.
Aber irgenwas passt noch nicht.
Kannst du mal über die list des devices schauen was da ggf. fehlt
Internals:
   FUUID      5d3d8750-f33f-4662-4e26-0faa001eb35abc4c
   NAME       Rollo_Arbeitszimmer
   NR         479
   STATE      open
   TYPE       ROLLO
   stoptime   1623040247
   READINGS:
     2021-02-18 07:07:35   ASC_Enable      on
     2021-06-07 06:30:47   ASC_ShuttersLastDrive day open
     2021-06-07 06:30:02   ASC_Time_DriveDown 07.06.2021 - 22:20
     2021-06-07 06:30:02   ASC_Time_DriveUp 08.06.2021 - 06:30
     2021-06-04 07:07:35   associatedWith  ASC
     2021-06-07 06:30:02   command         pct-0
     2021-06-07 06:30:02   desired_pct     0
     2021-06-07 06:30:02   drive-type      modul
     2021-06-07 06:30:02   last_drive      drive-up
     2021-06-07 06:30:47   pct             100
     2021-06-07 06:30:47   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BlockingTime_afterManual 1
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_Closed_Pos 0
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 76:300
   ASC_Shading_MinMax_Elevation 15.0:100.0
   ASC_Shading_Min_OutsideTemperature 15
   ASC_Shading_Mode always
   ASC_Shading_Pos 50
   ASC_Shading_StateChange_SunnyCloudy 1
   ASC_Shading_WaitingPeriod 10
   ASC_TempSensor AktuelleTemp:state
   ASC_Time_Down_Early 21:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 06:30
   ASC_Time_Up_Late 07:15
   ASC_Time_Up_WE_Holiday 07:00
3 x Fhem 5.9 mit RPI

CoolTux

ASC_Shading_StateChange_SunnyCloudy 1

Das ist Unsinn. Da sollten wenigsten 2 Werte duch : getrennt stehen. Einmal ab wenn Be- und ab wann End- schattet werden soll.

24000:12000

z.B.

Und schau ob im ASC Device selbst das Reading für Beschattung auf on steht.
Desweiteren fehlen einige Readings im Rollo Device. Sicher das Dein ASC aktuell 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

cornelius fillmore

OK
ASC_Shading_StateChange_SunnyCloudy ist nun 24000:12000
Im ASC Device selbst steht die Beschattung auf on
ASC ist v0.10.11
shading status ist aber immer noch "out"

list device
Internals:
   FUUID      5d3d8750-f33f-4662-4e26-0faa001eb35abc4c
   NAME       Rollo_Arbeitszimmer
   NR         479
   STATE      open
   TYPE       ROLLO
   READINGS:
     2021-02-18 07:07:35   ASC_Enable      on
     2021-06-07 07:59:56   ASC_ShadingMessage <html> </html>
     2021-06-07 06:30:47   ASC_ShuttersLastDrive day open
     2021-06-07 08:10:11   ASC_Time_DriveDown 07.06.2021 - 22:20
     2021-06-07 08:10:11   ASC_Time_DriveUp 08.06.2021 - 06:30
     2021-06-07 08:05:36   associatedWith  ASC
     2021-06-07 06:30:02   command         pct-0
     2021-06-07 06:30:02   desired_pct     0
     2021-06-07 06:30:02   drive-type      modul
     2021-06-07 06:30:02   last_drive      drive-up
     2021-06-07 06:30:47   pct             100
     2021-06-07 06:30:47   state           open
Attributes:
   ASC        1
   ASC_AutoAstroModeEvening CIVIL
   ASC_AutoAstroModeMorning CIVIL
   ASC_BlockingTime_afterManual 1
   ASC_BrightnessSensor AktuelleTemp:state
   ASC_Closed_Pos 0
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 76:300
   ASC_Shading_MinMax_Elevation 15.0:100.0
   ASC_Shading_Min_OutsideTemperature 15
   ASC_Shading_Mode always
   ASC_Shading_Pos 50
   ASC_Shading_StateChange_SunnyCloudy 24000:12000
   ASC_Shading_WaitingPeriod 10
   ASC_TempSensor AktuelleTemp:state
   ASC_Time_Down_Early 21:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 06:30
   ASC_Time_Up_Late 07:15
   ASC_Time_Up_WE_Holiday 07:00

list asc
Internals:
   FUUID      5ed65651-f33f-4662-62e0-796ea310b868d91d
   FVERSION   73_AutoShuttersControl.pm:v0.10.11-s23635/2021-01-29 TESTING
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       ASC
   NOTIFYDEV  global,ASC,R_Schlafen,Rollo_AZ_Dach,Rollo_Arbeitszimmer,Rollo_Bad,Rollo_EZ_Velux,Rollo_EZ_Velux_Dach,Rollo_Esszimmer,Rollo_Galerie_li,Rollo_Galerie_re,Rollo_Kueche,Rollo_Raven,Rollo_Wohnen_Mitte,Rollo_Wohnen_li_1,Rollo_Wohnen_li_2,Rollo_Wohnen_re_1,Rollo_Wohnen_re_2
   NR         594
   NTFY_ORDER 51-ASC
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    v0.10.11
   OLDREADINGS:
   READINGS:
     2021-06-07 06:30:02   R_Schlafen_lastPosValue 0
     2021-06-07 08:05:40   R_Schlafen_nextAstroTimeEvent 07.06.2021 - 22:00
     2021-06-07 06:01:03   Rollo_AZ_Dach_PosValue 0
     2021-06-07 06:00:02   Rollo_AZ_Dach_lastPosValue 100
     2021-06-07 08:05:40   Rollo_AZ_Dach_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:30:47   Rollo_Arbeitszimmer_PosValue 100
     2021-06-07 06:30:02   Rollo_Arbeitszimmer_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Arbeitszimmer_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 07:15:38   Rollo_Bad_PosValue 0
     2021-06-07 07:15:02   Rollo_Bad_lastPosValue 100
     2021-06-07 08:05:40   Rollo_Bad_nextAstroTimeEvent 07.06.2021 - 21:00
     2021-06-07 06:00:02   Rollo_EZ_Velux_Dach_lastPosValue 0
     2021-06-07 08:05:40   Rollo_EZ_Velux_Dach_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 07:30:40   Rollo_EZ_Velux_PosValue 100
     2021-06-07 06:00:02   Rollo_EZ_Velux_lastPosValue 0
     2021-06-07 08:05:40   Rollo_EZ_Velux_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:00:02   Rollo_Esszimmer_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Esszimmer_nextAstroTimeEvent 07.06.2021 - 22:00
     2021-06-07 07:00:27   Rollo_Galerie_li_PosValue 100
     2021-06-07 07:00:02   Rollo_Galerie_li_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Galerie_li_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 07:00:27   Rollo_Galerie_re_PosValue 100
     2021-06-07 07:00:02   Rollo_Galerie_re_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Galerie_re_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:15:02   Rollo_Kueche_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Kueche_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 07:15:23   Rollo_Raven_PosValue 100
     2021-06-07 07:15:02   Rollo_Raven_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Raven_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-04-17 06:45:23   Rollo_Schlafen_PosValue 0
     2021-04-17 06:45:02   Rollo_Schlafen_lastPosValue 100
     2021-06-07 06:30:58   Rollo_Wohnen_Mitte_PosValue 0
     2021-06-07 06:30:02   Rollo_Wohnen_Mitte_lastPosValue 100
     2021-06-07 08:05:40   Rollo_Wohnen_Mitte_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:30:27   Rollo_Wohnen_li_1_PosValue 100
     2021-06-07 06:30:02   Rollo_Wohnen_li_1_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Wohnen_li_1_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:30:27   Rollo_Wohnen_li_2_PosValue 100
     2021-06-07 06:30:02   Rollo_Wohnen_li_2_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Wohnen_li_2_nextAstroTimeEvent 07.06.2021 - 22:00
     2021-06-07 06:30:27   Rollo_Wohnen_re_1_PosValue 100
     2021-06-07 06:30:02   Rollo_Wohnen_re_1_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Wohnen_re_1_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-07 06:30:27   Rollo_Wohnen_re_2_PosValue 100
     2021-06-07 06:30:02   Rollo_Wohnen_re_2_lastPosValue 0
     2021-06-07 08:05:40   Rollo_Wohnen_re_2_nextAstroTimeEvent 07.06.2021 - 22:20
     2021-06-02 15:09:21   ascEnable       on
     2021-06-07 08:05:42   controlShading  on
     2021-02-08 08:17:30   hardLockOut     off
     2021-06-07 08:05:34   room_Arbeitszimmer_Steuerung-_Rolladen Rollo_AZ_Dach,Rollo_Arbeitszimmer
     2021-06-07 08:05:34   room_Bad_Steuerung-_Rolladen Rollo_Bad
     2021-06-07 08:05:34   room_Esszimmer_Steuerung-_Rolladen Rollo_EZ_Velux_Dach
     2021-06-07 08:05:34   room_Schlafzimmer_Steuerung-_Rolladen R_Schlafen
     2021-06-07 08:05:34   room_Steuerung-_Rolladen_Esszimmer Rollo_EZ_Velux,Rollo_Esszimmer
     2021-06-07 08:05:34   room_Steuerung-_Rolladen_Galerie Rollo_Galerie_li,Rollo_Galerie_re
     2021-06-07 08:05:34   room_Steuerung-_Rolladen_K__che Rollo_Kueche
     2021-06-07 08:05:34   room_Steuerung-_Rolladen_Schlafzimmer Rollo_Raven
     2021-06-07 08:05:34   room_Steuerung-_Rolladen_Wohnzimmer Rollo_Wohnen_Mitte,Rollo_Wohnen_li_1,Rollo_Wohnen_li_2,Rollo_Wohnen_re_1,Rollo_Wohnen_re_2
     2021-02-08 08:17:30   selfDefense     off
     2021-06-07 08:10:11   state           created new drive timer
     2021-06-07 08:10:11   sunriseTimeWeHoliday on
     2021-06-07 08:05:34   userAttrList    rolled out
3 x Fhem 5.9 mit RPI

alexmetz

Bist Du sicher, dass bei
ASC_BrightnessSensor AktuelleTemp:state
das richtige Gerät und das richtige Reading angegeben ist?
Dasselbe steht nämlich bei ASC_TempSensor...
FHEM auf RaspberryPi 4
Homematic