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

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

Vorheriges Thema - Nächstes Thema

cornelius fillmore

Zitat von: alexmetz am 07 Juni 2021, 11:31:49
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...
Im Prinzip schon, da ich keinen Helligkeitssensor verwende arbeite ich einfach mit der Temparatur als Indikator
Dies hat zumindest mal funktioniert
3 x Fhem 5.9 mit RPI

Beta-User

Zitat von: cornelius fillmore am 07 Juni 2021, 13:22:26
Im Prinzip schon, da ich keinen Helligkeitssensor verwende arbeite ich einfach mit der Temparatur als Indikator
Dies hat zumindest mal funktioniert
Dann passen aber vermutlich die "Grenzen" nicht, Werte in den Tausendern dürfte ein Temp-Sensor eher nicht melden ;) .

Zum anderen war mir irgendwie im Hinterkopf hängen geblieben (=>kann sich geändert haben), dass man für die Umweltdaten nicht einen "Großsensor" haben darf, sondern je ein eigenes Device (ggf. readingsProxy) haben muss.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

cornelius fillmore

Zitat von: Beta-User am 07 Juni 2021, 13:26:02
Dann passen aber vermutlich die "Grenzen" nicht, Werte in den Tausendern dürfte ein Temp-Sensor eher nicht melden ;) .

Dann habe ich das ganze mal auf 12:24 korrigiert
3 x Fhem 5.9 mit RPI

CoolTux

Zitat von: cornelius fillmore am 07 Juni 2021, 08:15:18
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


Und ein Update wäre auch nicht verkehrt. Die Version ist schon bisschen älter.
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

Zitat von: CoolTux am 07 Juni 2021, 13:43:05
Und ein Update wäre auch nicht verkehrt. Die Version ist schon bisschen älter.
OK
nun VERSION    v0.10.15

Was kann ich denn sonst noch tun, damit ich es an laufen bekomme?
3 x Fhem 5.9 mit RPI

alexmetz

wenn ich es richtig sehe, sind deinen Sensoren nicht im NOTIFYDEV hinterlegt und werden daher vermutlich nicht überwacht.
Kontrollier das mal. Sonst kannst Du
attr ASC ASC_expert 1
setzen und dann
set ASC createNewNotifyDev
um die NOTIFYDEV neu anzulegen. Dann kontrollieren. Sonst mal mit
attr ASC ASC_debug 1
attr ASC verbose 5

mal ins Log gucken, was passiert.

Ich hoffe das ist richtig, bin auch neu mit dem ASC-Modul. Zumindest ein Ansatz...
FHEM auf RaspberryPi 4
Homematic

Borkk

Zitat von: Borkk am 06 Juni 2021, 23:23:11
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?

Ich wollte meine o.g. Frage nochmal stellen. Und ich würde gerne die Idee von ASC im Bezug auf Regenschutz verstehen. Es gibt ja meiner Meinung nach unterschiedliche Anwendungsszenarien. Bei einer Jalousie muss ASC ggf. völlig anders reagieren als bei einem "normalen" Rollo.                 
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

Zitat von: alexmetz am 07 Juni 2021, 15:30:09
wenn ich es richtig sehe, sind deinen Sensoren nicht im NOTIFYDEV hinterlegt und werden daher vermutlich nicht überwacht.
Kontrollier das mal. Sonst kannst Du
attr ASC ASC_expert 1
setzen und dann
set ASC createNewNotifyDev
um die NOTIFYDEV neu anzulegen. Dann kontrollieren. Sonst mal mit
attr ASC ASC_debug 1
attr ASC verbose 5

mal ins Log gucken, was passiert.
Hab ich alles gemacht und FHEM mal eine Nacht drüber schlafen lassen und "Zack" funzt es.
Jetzt noch ein bisschen Feinjustage und es ist gut so.
Ich hoffe das ist richtig, bin auch neu mit dem ASC-Modul. Zumindest ein Ansatz...
3 x Fhem 5.9 mit RPI

CoolTux

Zitat von: Borkk am 07 Juni 2021, 19:55:09
Ich wollte meine o.g. Frage nochmal stellen. Und ich würde gerne die Idee von ASC im Bezug auf Regenschutz verstehen. Es gibt ja meiner Meinung nach unterschiedliche Anwendungsszenarien. Bei einer Jalousie muss ASC ggf. völlig anders reagieren als bei einem "normalen" Rollo.               

Aktuell ist es genau so wie Du geschrieben hast. Wie genau muss denn ASC bei einer Jalousie geagieren? Bei einer Markise würde ich es verstehen da muss Nachts dann wohl eingefahren werden. Aber eine Jalousie?
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

Reinhard.M

Zitat von: CoolTux am 06 Juni 2021, 20:11:21
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

Hallo CoolTux,
das hatte ich befürchtet. Wenn ich einen Vorschlag machen darf: Alle automatischen Fahrten die durch ein LockOut verhindert wurden sollten nach Aufhebung des LockOut nachgeholt werden. Macht für mich Sinn und ich meine, dass es vor einigen Monaten auch noch so implementiert war.
Mir ist eine weitere Kleinigkeit aufgefallen. Wahrscheinlich dem Code entsprechend richtig aber nicht unbedingt intuitiv. Wenn ich das Rollo manuell in eine nicht definierte Position wie z.B. "Open_Pos" oder "Shading_Pos" fahre wird das Rollo bei einem "Night Close" nicht herunter. Beim Trigger "Day Open" fährt es aber aus der gleichen Position sehr wohl hoch. Es ist kein Blocking oder sonstige Einschränkung aktiv, Position ist irrelevant. Schon wieder ein Wunsch von mir :) Könntest du das einheitlich gestalten? Bevorzugt das "Day Open" Verhalten, also auch aus manuell gesetzten Positionen eine automatische Fahrt wenn diese nicht explizit geblockt wird.

Gruß Reinhard

CoolTux

Zitat von: Reinhard.M am 08 Juni 2021, 08:05:30
Mir ist eine weitere Kleinigkeit aufgefallen. Wahrscheinlich dem Code entsprechend richtig aber nicht unbedingt intuitiv. Wenn ich das Rollo manuell in eine nicht definierte Position wie z.B. "Open_Pos" oder "Shading_Pos" fahre wird das Rollo bei einem "Night Close" nicht herunter. Beim Trigger "Day Open" fährt es aber aus der gleichen Position sehr wohl hoch. Es ist kein Blocking oder sonstige Einschränkung aktiv, Position ist irrelevant.

Gruß Reinhard

Das sollte aber eigentlich funktionieren, sofern nicht irgendein Blocker aktiv ist. Also manualblocking oder Fenster offen oder so. Das schaue ich mir mal an.

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 nutze u.a. die Funktion mit "ASC_Time_Down_Early" und das funktioniert toll.
Mit dem Attribut "ASC_Mode_Down" schalte ich die Fahrten ein und aus, wenn ich sie brauche.
Allerdings verändert sich durch das Ändern des Attributs "ASC_Mode_Down" ja auch die Konfiguration.

Für "ASC_Time_Down_Early" habe ich eine Funktion, die die Zeiten berechnet und diese in der Form "HH:MM" zurückgibt.
Wenn ich aus der Funktion einen ungültigen Wert zurückgebe, dann wird die Zeit auf einen Standardwert gesetzt; für z.B. "ASC_Time_DriveDown 08.06.2021 - 16:00".

Kann man eine (bestimmte) Zeit zurückgeben, damit ASC den Rollo nicht verfährt?
Also quasi die Funktion ausschaltet (wie wenn man "ASC_Mode_Down" auf "off" setzt)?

Danke, lg, Gerhard

Reinhard.M

Zitat von: CoolTux am 08 Juni 2021, 09:09:27
Das sollte aber eigentlich funktionieren, sofern nicht irgendein Blocker aktiv ist. Also manualblocking oder Fenster offen oder so. Das schaue ich mir mal an.

Definitiv kein Blocker aktiv und das Fenster geschlossen:

defmod R_Dum ROLLO
attr R_Dum 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_BetweenTheTime 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,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,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
attr R_Dum ASC 1
attr R_Dum ASC_AutoAstroModeEvening HORIZON
attr R_Dum ASC_AutoAstroModeEveningHorizon 0
attr R_Dum ASC_AutoAstroModeMorning HORIZON
attr R_Dum ASC_AutoAstroModeMorningHorizon 0
attr R_Dum ASC_BlockingTime_afterManual 0
attr R_Dum ASC_BlockingTime_beforDayOpen 0
attr R_Dum ASC_BlockingTime_beforNightClose 0
attr R_Dum ASC_BrightnessSensor Brightness_Dum
attr R_Dum ASC_ComfortOpen_Pos 4
attr R_Dum ASC_Down time
attr R_Dum ASC_DriveUpMaxDuration 9
attr R_Dum ASC_Drive_Delay 0
attr R_Dum ASC_Drive_DelayStart 0
attr R_Dum ASC_ExternalTrigger TV_Dum:state TV-On:TV-Off 100
attr R_Dum ASC_LockOut off
attr R_Dum ASC_LockOut_Cmd blocked
attr R_Dum ASC_Mode_Down always
attr R_Dum ASC_Mode_Up always
attr R_Dum ASC_Open_Pos 0
attr R_Dum ASC_Partymode off
attr R_Dum ASC_Pos_Reading pct
attr R_Dum ASC_Self_Defense_Mode off
attr R_Dum ASC_Shading_InOutAzimuth 60:290
attr R_Dum ASC_Shading_MinMax_Elevation 18:70
attr R_Dum ASC_Shading_Min_OutsideTemperature 13
attr R_Dum ASC_Shading_Mode off
attr R_Dum ASC_Shading_Pos 76
attr R_Dum ASC_Shading_StateChange_SunnyCloudy 30000:20000 1
attr R_Dum ASC_Shading_WaitingPeriod 0
attr R_Dum ASC_ShuttersPlace window
attr R_Dum ASC_Sleep_Pos 100
attr R_Dum ASC_TempSensor di_AvgTemp:temp
attr R_Dum ASC_Time_Down_Early 07:56
attr R_Dum ASC_Time_Down_Late 22:00
attr R_Dum ASC_Time_Up_Early 07:55
attr R_Dum ASC_Time_Up_Late 07:51
attr R_Dum ASC_Time_Up_WE_Holiday 08:00
attr R_Dum ASC_Up time
attr R_Dum ASC_Ventilate_Pos 100
attr R_Dum ASC_Ventilate_Window_Open on
attr R_Dum ASC_WindowRec Window_Dum
attr R_Dum ASC_WindowRec_PosAfterDayClosed lastManual
attr R_Dum ASC_WindowRec_subType threestate
attr R_Dum cmdIcon open:fts_shutter_up closed:fts_shutter_down stop:rc_STOP half:fts_shutter_50 skip:fts_shutter_shadding_run
attr R_Dum 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
attr R_Dum eventMap /drive up 2:skip/pct openPercent/
attr R_Dum gassistantName Dach
attr R_Dum genericDeviceType shutter
attr R_Dum group DOIF_Dum
attr R_Dum homebridgeMapping {\
  "OpenClose": {\
    "reading": "state",\
    "values": ["/^closed/:CLOSED", "/.*/:OPEN"],\
    "cmdOpen": "open",\
    "cmdClose": "closed"\
  },\
  "TargetPosition": {\
    "reading": "pct",\
    "cmd": "pct",\
    "invert": false\
  }\
}
attr R_Dum realRoom Rollos
attr R_Dum rl_autoStop 1
attr R_Dum rl_blockMode only-up
attr R_Dum rl_commandDown set myJaro_Nano down
attr R_Dum rl_commandStop set myJaro_Nano stop
attr R_Dum rl_commandUp set myJaro_Nano up
attr R_Dum rl_excessBottom 2
attr R_Dum rl_excessTop 0
attr R_Dum rl_forceDrive 1
attr R_Dum rl_resetTime 0
attr R_Dum rl_secondsDown 4
attr R_Dum rl_secondsUp 4
attr R_Dum rl_switchTime 0
attr R_Dum rl_type normal
attr R_Dum room Test
attr R_Dum webCmd pct:open:stop:closed:skip
attr R_Dum widgetOverride pct:selectnumbers,0,4,100,0,lin

setstate R_Dum pct-80
setstate R_Dum 2021-06-07 15:07:16 .ASC_AttrUpdateChanges_v0.10.15 1
setstate R_Dum 2020-12-24 08:11:24 ASC_Enable on
setstate R_Dum 2021-06-07 15:07:21 ASC_ShadingMessage <html> WARN:  global shading active but ASC_Shading_Mode attribut is not set or off </html>
setstate R_Dum 2021-06-08 07:55:16 ASC_ShuttersLastDrive manual
setstate R_Dum 2021-06-08 07:56:01 ASC_Time_DriveDown 09.06.2021 - 07:56
setstate R_Dum 2021-06-08 07:56:01 ASC_Time_DriveUp 09.06.2021 - 07:55
setstate R_Dum 2021-06-07 15:07:13 associatedWith myASControl
setstate R_Dum 2021-06-08 07:55:13 command pct-80
setstate R_Dum 2021-06-08 07:55:13 desired_pct 80
setstate R_Dum 2021-06-08 07:55:13 drive-type modul
setstate R_Dum 2021-06-08 07:55:13 last_drive drive-down
setstate R_Dum 2021-06-08 07:55:16 pct 80
setstate R_Dum 2021-06-08 07:55:16 state pct-80



Wenn es dir hilft kann ich auch die anderen Dummy Devices schicken mit denen ich die ASC Optionen dieses Dummy Rollos teste.

Gruß Reinhard

CoolTux

Zitat von: gestein am 08 Juni 2021, 09:18:30
Hallo,

ich nutze u.a. die Funktion mit "ASC_Time_Down_Early" und das funktioniert toll.
Mit dem Attribut "ASC_Mode_Down" schalte ich die Fahrten ein und aus, wenn ich sie brauche.
Allerdings verändert sich durch das Ändern des Attributs "ASC_Mode_Down" ja auch die Konfiguration.

Für "ASC_Time_Down_Early" habe ich eine Funktion, die die Zeiten berechnet und diese in der Form "HH:MM" zurückgibt.
Wenn ich aus der Funktion einen ungültigen Wert zurückgebe, dann wird die Zeit auf einen Standardwert gesetzt; für z.B. "ASC_Time_DriveDown 08.06.2021 - 16:00".

Kann man eine (bestimmte) Zeit zurückgeben, damit ASC den Rollo nicht verfährt?
Also quasi die Funktion ausschaltet (wie wenn man "ASC_Mode_Down" auf "off" setzt)?

Danke, lg, Gerhard

Da fällt mir so aus dem Stehgreif nichts vernünftiges ein.
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: Reinhard.M am 08 Juni 2021, 11:25:12
Definitiv kein Blocker aktiv und das Fenster geschlossen:

defmod R_Dum ROLLO
attr R_Dum 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_BetweenTheTime 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,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,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
attr R_Dum ASC 1
attr R_Dum ASC_AutoAstroModeEvening HORIZON
attr R_Dum ASC_AutoAstroModeEveningHorizon 0
attr R_Dum ASC_AutoAstroModeMorning HORIZON
attr R_Dum ASC_AutoAstroModeMorningHorizon 0
attr R_Dum ASC_BlockingTime_afterManual 0
attr R_Dum ASC_BlockingTime_beforDayOpen 0
attr R_Dum ASC_BlockingTime_beforNightClose 0
attr R_Dum ASC_BrightnessSensor Brightness_Dum
attr R_Dum ASC_ComfortOpen_Pos 4
attr R_Dum ASC_Down time
attr R_Dum ASC_DriveUpMaxDuration 9
attr R_Dum ASC_Drive_Delay 0
attr R_Dum ASC_Drive_DelayStart 0
attr R_Dum ASC_ExternalTrigger TV_Dum:state TV-On:TV-Off 100
attr R_Dum ASC_LockOut off
attr R_Dum ASC_LockOut_Cmd blocked
attr R_Dum ASC_Mode_Down always
attr R_Dum ASC_Mode_Up always
attr R_Dum ASC_Open_Pos 0
attr R_Dum ASC_Partymode off
attr R_Dum ASC_Pos_Reading pct
attr R_Dum ASC_Self_Defense_Mode off
attr R_Dum ASC_Shading_InOutAzimuth 60:290
attr R_Dum ASC_Shading_MinMax_Elevation 18:70
attr R_Dum ASC_Shading_Min_OutsideTemperature 13
attr R_Dum ASC_Shading_Mode off
attr R_Dum ASC_Shading_Pos 76
attr R_Dum ASC_Shading_StateChange_SunnyCloudy 30000:20000 1
attr R_Dum ASC_Shading_WaitingPeriod 0
attr R_Dum ASC_ShuttersPlace window
attr R_Dum ASC_Sleep_Pos 100
attr R_Dum ASC_TempSensor di_AvgTemp:temp
attr R_Dum ASC_Time_Down_Early 07:56
attr R_Dum ASC_Time_Down_Late 22:00
attr R_Dum ASC_Time_Up_Early 07:55
attr R_Dum ASC_Time_Up_Late 07:51
attr R_Dum ASC_Time_Up_WE_Holiday 08:00
attr R_Dum ASC_Up time
attr R_Dum ASC_Ventilate_Pos 100
attr R_Dum ASC_Ventilate_Window_Open on
attr R_Dum ASC_WindowRec Window_Dum
attr R_Dum ASC_WindowRec_PosAfterDayClosed lastManual
attr R_Dum ASC_WindowRec_subType threestate
attr R_Dum cmdIcon open:fts_shutter_up closed:fts_shutter_down stop:rc_STOP half:fts_shutter_50 skip:fts_shutter_shadding_run
attr R_Dum 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
attr R_Dum eventMap /drive up 2:skip/pct openPercent/
attr R_Dum gassistantName Dach
attr R_Dum genericDeviceType shutter
attr R_Dum group DOIF_Dum
attr R_Dum homebridgeMapping {\
  "OpenClose": {\
    "reading": "state",\
    "values": ["/^closed/:CLOSED", "/.*/:OPEN"],\
    "cmdOpen": "open",\
    "cmdClose": "closed"\
  },\
  "TargetPosition": {\
    "reading": "pct",\
    "cmd": "pct",\
    "invert": false\
  }\
}
attr R_Dum realRoom Rollos
attr R_Dum rl_autoStop 1
attr R_Dum rl_blockMode only-up
attr R_Dum rl_commandDown set myJaro_Nano down
attr R_Dum rl_commandStop set myJaro_Nano stop
attr R_Dum rl_commandUp set myJaro_Nano up
attr R_Dum rl_excessBottom 2
attr R_Dum rl_excessTop 0
attr R_Dum rl_forceDrive 1
attr R_Dum rl_resetTime 0
attr R_Dum rl_secondsDown 4
attr R_Dum rl_secondsUp 4
attr R_Dum rl_switchTime 0
attr R_Dum rl_type normal
attr R_Dum room Test
attr R_Dum webCmd pct:open:stop:closed:skip
attr R_Dum widgetOverride pct:selectnumbers,0,4,100,0,lin

setstate R_Dum pct-80
setstate R_Dum 2021-06-07 15:07:16 .ASC_AttrUpdateChanges_v0.10.15 1
setstate R_Dum 2020-12-24 08:11:24 ASC_Enable on
setstate R_Dum 2021-06-07 15:07:21 ASC_ShadingMessage <html> WARN:  global shading active but ASC_Shading_Mode attribut is not set or off </html>
setstate R_Dum 2021-06-08 07:55:16 ASC_ShuttersLastDrive manual
setstate R_Dum 2021-06-08 07:56:01 ASC_Time_DriveDown 09.06.2021 - 07:56
setstate R_Dum 2021-06-08 07:56:01 ASC_Time_DriveUp 09.06.2021 - 07:55
setstate R_Dum 2021-06-07 15:07:13 associatedWith myASControl
setstate R_Dum 2021-06-08 07:55:13 command pct-80
setstate R_Dum 2021-06-08 07:55:13 desired_pct 80
setstate R_Dum 2021-06-08 07:55:13 drive-type modul
setstate R_Dum 2021-06-08 07:55:13 last_drive drive-down
setstate R_Dum 2021-06-08 07:55:16 pct 80
setstate R_Dum 2021-06-08 07:55:16 state pct-80



Wenn es dir hilft kann ich auch die anderen Dummy Devices schicken mit denen ich die ASC Optionen dieses Dummy Rollos teste.

Gruß Reinhard

Ich teste es mal die Tage.
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