Hallo CoolTux,
danke noch einmal für die Reparatur des Regenschutzes bei Nacht!
Jetzt ist mir noch etwas anderes beim Regenschutz aufgefallen:
Der Rolladen ist nach einem Regen um 18:28 Uhr wieder hochgefahren, obwohl er um 19:03 schon wieder herunterfahren soll:
ASC_ShuttersLastDrive
rain un-protected
2021-10-25 18:28:31
ASC_Time_DriveDown
25.10.2021 - 19:03
2021-10-25 07:52:23
Das widerspricht aber dem Attribut:
ASC_BlockingTime_beforNightClose
5400
Demnach hätte er für die Nacht unten bleiben sollen.
Internals:
CID shellyswitch25_8CAAB54CC9C2
DEF shellyswitch25_8CAAB54CC9C2
DEVICETOPIC RolladenArbeitszimmer
FUUID 60dc8a7d-f33f-26cd-f289-3c99fee09a939aa1
IODev MQTT2_FHEM_Server
LASTInputDev MQTT2_FHEM_Server
MQTT2_FHEM_Server_MSGCNT 92138
MQTT2_FHEM_Server_TIME 2021-10-25 18:56:31
MSGCNT 92138
NAME RolladenArbeitszimmer
NR 1273
STATE 100
TYPE MQTT2_DEVICE
READINGS:
2021-10-13 18:36:37 ASC_Enable on
2021-10-25 18:55:01 ASC_ShadingMessage INFO: current shading status is 'out' - next check in 10m
2021-10-25 18:28:31 ASC_ShuttersLastDrive rain un-protected
2021-10-25 07:52:23 ASC_Time_DriveDown 25.10.2021 - 19:03
2021-10-25 07:52:23 ASC_Time_DriveUp 26.10.2021 - 07:54
2021-10-23 12:04:51 IODev MQTT2_FHEM_Server
2021-10-23 15:52:55 associatedWith Rolladensteuerung
2021-06-30 17:18:49 attrTemplateVersion 20210126
2021-10-25 18:56:31 current stop
2021-10-25 18:56:31 energy 52940
2021-10-23 12:05:11 fw_ver 20210909-144331/v1.11.4-DNSfix-ge6b2f6d
2021-10-23 12:05:11 id shellyswitch25-8CAAB54CC9C2
2021-06-30 17:18:49 info_actions_stats_skipped 0
2021-06-30 17:18:49 info_cfg_changed_cnt 0
2021-06-30 17:18:49 info_cloud_connected false
2021-06-30 17:18:49 info_cloud_enabled false
2021-06-30 17:18:49 info_fs_free 146333
2021-06-30 17:18:49 info_fs_size 233681
2021-06-30 17:18:49 info_has_update false
2021-06-30 17:18:49 info_inputs_1_event
2021-06-30 17:18:49 info_inputs_1_event_cnt 0
2021-06-30 17:18:49 info_inputs_1_input 0
2021-06-30 17:18:49 info_inputs_2_event
2021-06-30 17:18:49 info_inputs_2_event_cnt 0
2021-06-30 17:18:49 info_inputs_2_input 0
2021-06-30 17:18:49 info_mac 8CAAB54CC9C2
2021-06-30 17:18:49 info_meters_1_counters_1 0.000
2021-06-30 17:18:49 info_meters_1_counters_2 0.000
2021-06-30 17:18:49 info_meters_1_counters_3 0.000
2021-06-30 17:18:49 info_meters_1_is_valid true
2021-06-30 17:18:49 info_meters_1_overpower 0.00
2021-06-30 17:18:49 info_meters_1_power 0.00
2021-06-30 17:18:49 info_meters_1_timestamp 1625073529
2021-06-30 17:18:49 info_meters_1_total 0
2021-06-30 17:18:49 info_meters_2_counters_1 0.000
2021-06-30 17:18:49 info_meters_2_counters_2 0.000
2021-06-30 17:18:49 info_meters_2_counters_3 0.000
2021-06-30 17:18:49 info_meters_2_is_valid true
2021-06-30 17:18:49 info_meters_2_overpower 0.00
2021-06-30 17:18:49 info_meters_2_power 0.00
2021-06-30 17:18:49 info_meters_2_timestamp 1625073529
2021-06-30 17:18:49 info_meters_2_total 0
2021-06-30 17:18:49 info_mqtt_connected true
2021-06-30 17:18:49 info_overtemperature false
2021-06-30 17:18:49 info_ping_check true
2021-06-30 17:18:49 info_ram_free 35004
2021-06-30 17:18:49 info_ram_total 49272
2021-06-30 17:18:49 info_rollers_1_calibrating false
2021-06-30 17:18:49 info_rollers_1_current_pos 101
2021-06-30 17:18:49 info_rollers_1_is_valid true
2021-06-30 17:18:49 info_rollers_1_last_direction close
2021-06-30 17:18:49 info_rollers_1_overtemperature false
2021-06-30 17:18:49 info_rollers_1_positioning true
2021-06-30 17:18:49 info_rollers_1_power 0.00
2021-06-30 17:18:49 info_rollers_1_safety_switch false
2021-06-30 17:18:49 info_rollers_1_source input
2021-06-30 17:18:49 info_rollers_1_state stop
2021-06-30 17:18:49 info_rollers_1_stop_reason normal
2021-06-30 17:18:49 info_serial 2
2021-06-30 17:18:49 info_temperature 57.29
2021-06-30 17:18:49 info_temperature_status Normal
2021-06-30 17:18:49 info_time 17:18
2021-06-30 17:18:49 info_tmp_is_valid true
2021-06-30 17:18:49 info_tmp_tC 57.29
2021-06-30 17:18:49 info_tmp_tF 135.12
2021-06-30 17:18:49 info_unixtime 1625066329
2021-06-30 17:18:49 info_update_has_update false
2021-06-30 17:18:49 info_update_new_version 20210429-100559/v1.10.4-g3f94cd7
2021-06-30 17:18:49 info_update_old_version 20210429-100559/v1.10.4-g3f94cd7
2021-06-30 17:18:49 info_update_status idle
2021-06-30 17:18:49 info_uptime 224
2021-06-30 17:18:49 info_voltage 239.32
2021-06-30 17:18:49 info_wifi_sta_connected true
2021-06-30 17:18:49 info_wifi_sta_ip 192.168.178.59
2021-06-30 17:18:49 info_wifi_sta_rssi -48
2021-06-30 17:18:49 info_wifi_sta_ssid HAL 9000
2021-10-25 18:56:31 input0 0
2021-10-25 18:56:31 input1 0
2021-10-23 12:05:11 ip 192.168.178.59
2021-10-23 12:05:11 mac 8CAAB54CC9C2
2021-10-23 12:05:11 mode roller
2021-10-23 12:05:11 model SHSW-25
2021-10-23 12:05:11 new_fw false
2021-10-23 12:05:11 online true
2021-10-25 18:56:31 overtemperature 0
2021-10-25 18:56:31 pct 100
2021-10-25 18:56:31 power 0.00
2021-10-25 18:56:31 roller_0_energy 52940
2021-10-25 18:56:31 roller_0_power 0.00
2021-10-25 18:56:31 roller_0_stop_reason normal
2021-10-25 18:56:31 state 100
2021-10-25 18:56:31 temperature 53.26
2021-10-25 18:56:31 temperature_f 127.87
2021-10-25 18:56:31 temperature_status Normal
2021-10-25 18:56:31 voltage 235.27
2021-06-30 17:18:48 x_mqttcom set announce
2021-09-09 13:10:35 x_update set
Attributes:
ASC 2
ASC_AutoAstroModeEvening HORIZON
ASC_AutoAstroModeEveningHorizon -7
ASC_AutoAstroModeMorning HORIZON
ASC_AutoAstroModeMorningHorizon -4
ASC_BlockingTime_afterManual 1200
ASC_BlockingTime_beforNightClose 5400
ASC_BrightnessSensor LichtsensorSued:brightnessInt
ASC_Down astro
ASC_Mode_Down always
ASC_Mode_Up home
ASC_Partymode off
ASC_Pos_Reading pct
ASC_RainProtection on
ASC_Shading_BetweenTheTime 08:00-19:00
ASC_Shading_InOutAzimuth 90:260
ASC_Shading_MinMax_Elevation 10.0:100.0
ASC_Shading_Min_OutsideTemperature 16
ASC_Shading_Mode always
ASC_Shading_Pos {ASC_Shading_Pos_RolladenArbeitszimmer()}
ASC_Shading_StateChange_SunnyCloudy 14000:12000
ASC_Shading_WaitingPeriod 1200
ASC_Time_Down_Early 18:00
ASC_Time_Down_Late 22:30
ASC_Time_Up_Early 07:15
ASC_Time_Up_Late 09:00
ASC_Up astro
cmdIcon open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
comment Shelly 2.5 in Roller-Mode. 100=opened / 0=closed
devStateIcon { my $amp = ReadingsVal($name,"online","false") eq "false" ? "rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "gelb" : "gruen";; my $con = ReadingsVal($name,"state","undef");; my $pic = $con eq "opening" ? 'fts_shutter_up@red' : $con eq "closing" ? 'fts_shutter_down@red' : $con eq "0" ? 'fts_shutter_100' : $con eq "100" ? 'fts_shutter_10' : $con =~ /9\d/ ? 'fts_shutter_10' : $con =~ /8\d/ ? 'fts_shutter_20' : $con =~ /7\d/ ? 'fts_shutter_30' : $con =~ /6\d/ ? 'fts_shutter_40' : $con =~ /5\d/ ? 'fts_shutter_50' : $con =~ /4\d/ ? 'fts_shutter_60' : $con =~ /3\d/ ? 'fts_shutter_70' : $con =~ /2\d/ ? 'fts_shutter_80' : $con =~ /1\d/ ? 'fts_shutter_90' : 'fts_shutter_updown';; my $show = "$amp" eq "gelb" ? "".FW_makeImage("10px-kreis-".$amp)."" : "".FW_makeImage("10px-kreis-".$amp)."";; "
$show ".FW_makeImage($pic)."
" }
event-on-change-reading pct,state,ASC_Enable,ASC_ShadingMessage
eventMap open:opens close:closes
group Rolladen
model shelly25_roller_invert_0
readingList shellies/shellyswitch25-8CAAB54CC9C2/roller/0/pos:.* pct
shellies/shellyswitch25-8CAAB54CC9C2/status/0/rollers:.* power
shellies/shellyswitch25-8CAAB54CC9C2/online:.* online
shellies/shellyswitch25-8CAAB54CC9C2/announce:.* { json2nameValue($EVENT) }
shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-8CAAB54CC9C2...mac.*, ? json2nameValue($EVENT) : return }
shellies/shellyswitch25-8CAAB54CC9C2/roller/0:.* current
shellies/shellyswitch25-8CAAB54CC9C2/roller/0:open {{'state' => 'opening'}}
shellies/shellyswitch25-8CAAB54CC9C2/roller/0:close {{'state' => 'closing'}}
shellies/shellyswitch25-8CAAB54CC9C2/roller/0/pos:.* state
shellies/shellyswitch25-8CAAB54CC9C2/input/1:.* input1
shellies/shellyswitch25-8CAAB54CC9C2/input/0:.* input0
shellies/shellyswitch25-8CAAB54CC9C2/relay/power:.* power
shellies/shellyswitch25-8CAAB54CC9C2/relay/energy:.* energy
shellies/shellyswitch25-8CAAB54CC9C2/temperature:.* temperature
shellies/shellyswitch25-8CAAB54CC9C2/overtemperature:.* overtemperature
shellies/shellyswitch25-8CAAB54CC9C2/roller/0/power:.* roller_0_power
shellies/shellyswitch25-8CAAB54CC9C2/roller/0/energy:.* roller_0_energy
shellies/shellyswitch25-8CAAB54CC9C2/temperature_f:.* temperature_f
shellyswitch25_8CAAB54CC9C2:shellies/shellyswitch25-8CAAB54CC9C2/info:.* { json2nameValue($EVENT, 'info_', $JSONMAP) }
shellyswitch25_8CAAB54CC9C2:shellies/shellyswitch25-8CAAB54CC9C2/roller/0/stop_reason:.* roller_0_stop_reason
shellyswitch25_8CAAB54CC9C2:shellies/shellyswitch25-8CAAB54CC9C2/temperature_status:.* temperature_status
shellyswitch25_8CAAB54CC9C2:shellies/shellyswitch25-8CAAB54CC9C2/voltage:.* voltage
room ASC,MQTT2_DEVICE,Übersicht
setList open:noArg shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command open
close:noArg shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command close
half:noArg shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command/pos 50
stop:noArg shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command stop
pct:slider,0,1,100 shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command/pos $EVTPART1
x_recalibration:noArg shellies/shellyswitch25-8CAAB54CC9C2/roller/0/command rc
x_update:noArg shellies/shellyswitch25-8CAAB54CC9C2/command update_fw
x_mqttcom shellies/shellyswitch25-8CAAB54CC9C2/command $EVTPART1
setStateList open close half stop pct
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
webCmd :open:close:half:stop:pct
Danke Dir. Schaue ich mir an.
Magst Du diese Datei einmal einspielen und testen
https://git.cooltux.net/FHEM/mod-AutoShuttersControl/raw/branch/patch-rainprotection_blockingtime/lib/FHEM/Automation/ShuttersControl/Rainprotection.pm
Grüße
Deine Änderung ist erfolgreich!
Rolladen bleibt nach Regenende um 18:15 Uhr geschlossen, da um 19:01 die Nachtfahrt ansteht und im Attribut
ASC_BlockingTime_beforNightClose 5400 steht.
Prima, vielen Dank!
Gruß, Friedhelm
P.S.:
Nur, falls es nicht viel Aufwand ist bzw. im Nachhinein überhaupt änderbar ist:
Im Attributnamen fehlt ein e:
ASC_BlockingTime_befor(e)NightClose
Super. Freue mich das es geht. Dann kann ich das ja schon mal ins Devel schicken.
Bezüglich des fehlenden e werde ich mir Gedanken machen ;D
Betr. dem "e": für was steht EG_window ::) ?
Zitat von: Beta-User am 27 Oktober 2021, 06:37:44
Betr. dem "e": für was steht EG_window ::) ?
Das sorgt dafür daß nicht nur Terrassenrollos bei offenen Fenster und absent runter fahren sondern auch Rollos mit EG_window.
Das "e" habe ich gefixt.
EG = (e)nglisch für Erdgeschoss, oder ::) ?!?
Zitat von: Beta-User am 27 Oktober 2021, 06:50:50
EG = (e)nglisch für Erdgeschoss, oder ::) ?!?
Ach so. Ja EG_window steht für Erdgeschoss Fenster.
Könnte man dann vor größerer Verbreitung des features bitte die Benennung ganz auf (e) umstellen...? ::)
Zitat von: Beta-User am 27 Oktober 2021, 07:21:18
Könnte man dann vor größerer Verbreitung des features bitte die Benennung ganz auf (e) umstellen...? ::)
Reden wir immer noch über das selbe?
Das "e" bezog sich auf die Attributenamen ASC_BlockingTime_beforNightClose und ASC_BlockingTime_beforDayOpen
in befor
...nicht ganz...
Bei dem (e) in ASC_BlockingTime_beforeNightClose ging es um ein altes Fehlerchen bei der Benennung eines Attributs.
Bei EG_window geht es um einen neuen Attribut-Inhalts-Wert, dessen Bestandteile eine gängige deutsche Abkürzung und ein englisches Wort sind. Das ist einfach unschön, und weil es neu ist, wäre meine Bitte, das von vornherein gradezuziehen, damit wir nicht nach Jahren noch die Frage diskutieren, warum das so ist. (Ich kenne das gut, dass man Dingen erst mal schnell einen Arbeitstitel gibt, zu $level schreibe ich an der passenden Stelle nachher was).
Wenn 1:1 in (brit.) Englisch, würde es GF_window heißen (ground floor). Da das unintuitiv ist, wäre vielleicht sowas funktional anknüpfendes wie "protected_window" passender? Mit der Funktionalität habe ich mich bisher nicht intensiver befasst, das war nur als Beispiel gedacht, in welche Richtung es gehen könnte.
just my2ct.
Ah verstehe was Du meinst. Weil EG halt deutsch für Erdgeschoss ist.
Oh man da muss ich mal schauen, da es nun schon einige haben werde ich es vorerst so lassen. Das gerade ziehen wäre Aufwand und nicht ganz "so einfach"