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

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

Vorheriges Thema - Nächstes Thema

CoolTux

Zitat von: Migul47 am 02 Juli 2020, 21:53:01
Ist vor ASC_Time_Down_Late 1, danach 0. Mag das Modul es nicht, wenn Shading_Pos und Sleep_Pos gleich sind? Sind aktuell verschieden, jetzt ist Ruhe.

Ah, deswegen. Nein alle Positionen in den Attributen sollten unterschiedlich sein.
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

FunkOdyssey

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

Vielen Dank. Das hier ist aber noch nicht darin enthalten, oder?
https://forum.fhem.de/index.php/topic,112325.msg1068169.html#msg1068169

CoolTux

Bin mir unsicher. Zu mindest nicht bewusst. Ich schaue es mir aber gerne gleich noch 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

CoolTux

Zitat von: FunkOdyssey am 03 Juli 2020, 09:45:57
Vielen Dank. Das hier ist aber noch nicht darin enthalten, oder?
https://forum.fhem.de/index.php/topic,112325.msg1068169.html#msg1068169

Ich habe in der aktuellen Entwicklerversion mal was eingebaut. Mal schauen wie gut das klappt. Kommt aber erst Ende des Monats raus.
Wenn Du magst, ich habe einen devel-testing branch mit passenden control file für update
https://git.cooltux.net/FHEM/mod-AutoShuttersControl/raw/branch/devel-testing/controls_AutoShuttersControl.txt


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

FunkOdyssey

Mach ich. Ich muss dann nur warten bis die Beschattung wieder zuschlagen kann. Danke.

eurofinder

@CoolTux:
Habe noch mal eine Frage zum ASC_BrightnessSensor eines Devices. Kann ich in der Version 0.10.x hier unterschiedliche Sensoren verwenden?
Habe 2 Lichtsensoren und PV-Anlage. Ich könnte für die Himmelsrichtungen Osten, Süden und Westen theoretisch von den sich dort befindlichen Sensoren die Werte verwenden. Gegenwärtig nutze ich nur einen Sensor. Das führt allerdings dazu, dass gerade bei Bewölkung die Beschattung oft trotzdem aktiviert wird - das fördert nicht gerade den WAF.

Sollte das nicht der Fall sein, wäre es hervorragend, wenn du das irgendwie einbauen könntest. Beim Temperatursensor geht es ja auch, dass man pro Raum individuell den Sensor des Raumes nutzen kann.

Habe manchmal den Eindruck, dass nach einer manuellen Fahrt - die soll glaube ich die Beschattung ja aussetzen - diese trotzdem wieder aktiv wird. Kann dieses aber bisher nicht reproduzieren. Ansonsten läuft die Beschattung hervorragend.

Gruß und schönes Wochenende
eurofinder
RPI3+; Raspbian Buster Lite; RPI-RF-MOD; piVCCU3, HMIP-eTRV-2, HmIP-SWDO, HmIP-SRH, HmIP-STHO, HmIP-SLO

CoolTux

Zitat von: eurofinder am 04 Juli 2020, 09:16:19
@CoolTux:
Habe noch mal eine Frage zum ASC_BrightnessSensor eines Devices. Kann ich in der Version 0.10.x hier unterschiedliche Sensoren verwenden?
Habe 2 Lichtsensoren und PV-Anlage. Ich könnte für die Himmelsrichtungen Osten, Süden und Westen theoretisch von den sich dort befindlichen Sensoren die Werte verwenden. Gegenwärtig nutze ich nur einen Sensor. Das führt allerdings dazu, dass gerade bei Bewölkung die Beschattung oft trotzdem aktiviert wird - das fördert nicht gerade den WAF.

Sollte das nicht der Fall sein, wäre es hervorragend, wenn du das irgendwie einbauen könntest. Beim Temperatursensor geht es ja auch, dass man pro Raum individuell den Sensor des Raumes nutzen kann.

Habe manchmal den Eindruck, dass nach einer manuellen Fahrt - die soll glaube ich die Beschattung ja aussetzen - diese trotzdem wieder aktiv wird. Kann dieses aber bisher nicht reproduzieren. Ansonsten läuft die Beschattung hervorragend.

Gruß und schönes Wochenende
eurofinder

Ich weiß nicht ob ich Deine Frage so richtig verstanden habe.
Du kannst natürlich pro Raum jeweils unterschiedliche Lichtsensoren verwenden. Mache ich ja auch. Wohnzimmer und Schlafzimmer haben Lichtsensor_1 und Küche, Kinderzimmer haben Lichtsensor_2



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

wk

Hallo Marko,

kann es sein, dass bei dem gestrigen update ein Fehler mitkam?
Bei mir sind heute früh zwei Rolladen gefahren, die eigentlich über ASC_Enable abgeschaltet sind. Ich hänge einmal das list hier an.

Internals:
   CID        shellyswitch25_745A07
   DEF        shellyswitch25_745A07
   DEVICETOPIC Sh_S_Fr
   FUUID      5d7b4cd7-f33f-d4cb-8778-1da6593b9a2c7aa6
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 27928
   MQTT2_FHEM_Server_TIME 2020-07-04 09:47:25
   MSGCNT     27928
   NAME       Sh_S_Fr
   NR         174
   STATE      100
   TYPE       MQTT2_DEVICE
   OLDREADINGS:
   READINGS:
     2020-06-07 21:46:46   ASC_Enable      off
     2020-07-04 09:44:51   ASC_ShadingMessage INFO: current shading status is 'out' - next check in 5m
     2020-07-04 07:00:47   ASC_ShuttersLastDrive maximum brightness threshold exceeded
     2020-07-04 09:15:01   ASC_Time_DriveDown  4.07.2020 - 23:00
     2020-07-04 09:15:01   ASC_Time_DriveUp  5.07.2020 - 09:15
     2020-07-03 10:33:13   associatedWith  Rolladen
     2020-07-04 07:00:47   current         stop
     2020-07-04 09:47:25   energy          7399
     2020-07-04 07:01:17   energy_total_kWh 0.2217
     2020-07-03 10:33:18   fw_ver          20200309-104051/v1.6.0@43056d58
     2020-07-03 10:33:18   id              shellyswitch25-745A07
     2020-07-04 09:47:25   input0          0
     2020-07-04 09:47:25   input1          0
     2020-07-03 10:33:18   ip              172.16.5.29
     2020-07-03 10:33:18   mac             807D3A745A07
     2020-07-03 10:33:18   new_fw          true
     2020-07-03 10:33:18   online          true
     2020-07-04 09:47:25   overtemperature 0
     2020-07-04 09:47:25   pct             100
     2020-07-04 09:47:25   power           0.00
     2020-07-04 09:47:25   roller_0_energy 7399
     2020-07-04 09:47:25   roller_0_power  0.00
     2020-07-04 09:47:25   state           100
     2020-07-04 09:47:25   temperature     52.67
     2020-03-11 12:51:49   x_update        set
Attributes:
   ASC        2
   ASC_BrightnessSensor FW1:reading 340:360
   ASC_Down   brightness
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 150:270
   ASC_Shading_MinMax_Elevation 0:100
   ASC_Shading_Min_OutsideTemperature 26
   ASC_Shading_Mode always
   ASC_Shading_Pos { (ReadingsVal('Wetter_Proplanta','fc0_tempMax',0) >= 25 ? 5 : 20) }
   ASC_Shading_StateChange_SunnyCloudy 870:860
   ASC_Shading_WaitingPeriod 600
   ASC_TempSensor SD_WS07_TH_1:temperature
   ASC_Time_Down_Early 16:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 07:00
   ASC_Time_Up_Late 09:15
   ASC_Up     brightness
   IODev      MQTT2_FHEM_Server
   alias      Rollo  Frank
   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");; $con = 100 - $con if $con =~ /\d+/;; my $pic = $con eq "opening" ? 'fts_shutter_up@red' : $con eq "closing" ? 'fts_shutter_down@red' : $con eq "100" ? 'fts_shutter_100' : $con =~ /(\d)\d/ ? 'fts_shutter_'.$1.'0' : $con =~ /\b\d\b/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = "$amp" eq "gelb" ? "<a href=\"/fhem?cmd.dummy=set $name x_update&XHR=1\">".FW_makeImage("10px-kreis-".$amp)."</a>" : "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage("10px-kreis-".$amp)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\"></a>".FW_makeImage($pic)." </div>"}
   event-on-change-reading temperature:1,.*
   event-on-update-reading ASC_ShuttersLastDrive
   icon       fts_shutter_automatic
   model      A_11b1a_shelly25_roller_invert_0
   readingList shellies/shellyswitch25-745A07/roller/0/pos:.* pct
  shellies/shellyswitch25-745A07/online:.* online
  shellies/shellyswitch25-745A07/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-745A07...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-745A07/roller/0:.* current
  shellies/shellyswitch25-745A07/roller/0:open {{'state' => 'opening'}}
  shellies/shellyswitch25-745A07/roller/0:close {{'state' => 'closing'}}
  shellies/shellyswitch25-745A07/roller/0/pos:.* state
  shellies/shellyswitch25-745A07/input/1:.* input1
  shellies/shellyswitch25-745A07/input/0:.* input0
  shellies/shellyswitch25-745A07/temperature:.* temperature
  shellies/shellyswitch25-745A07/overtemperature:.* overtemperature
shellyswitch25_745A07:shellies/shellyswitch25-745A07/temperature_f:.* temperature_f
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/power:.* roller_0_power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/energy:.* roller_0_energy
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/power:.* power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/energy:.* energy
   room       MQTT2_DEVICE,Rolladen,Shelly
   setList    open:noArg shellies/shellyswitch25-745A07/roller/0/command open
  close:noArg shellies/shellyswitch25-745A07/roller/0/command close
  half:noArg shellies/shellyswitch25-745A07/roller/0/command/pos 50
  stop:noArg shellies/shellyswitch25-745A07/roller/0/command stop
  pct:slider,0,1,100 shellies/shellyswitch25-745A07/roller/0/command/pos $EVTPART1
  x_recalibration:noArg shellies/shellyswitch25-745A07/roller/0/command rc
  x_update:noArg shellies/shellyswitch25-745A07/command update_fw
  x_mqttcom shellies/shellyswitch25-745A07/command $EVTPART1
   setStateList open close half stop pct
   sortby     020
   suppressReading temperature_f
   userReadings energy_total_kWh:roller_0_energy:.* monotonic {sprintf("%.4f",ReadingsNum("$name","roller_0_energy",0)/60000)}
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_SlatPosCmd_SlatDevice ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     :open:close:half:stop:pct
   widgetOverride devStateIcon:textFieldNL-long


Schönes Wochenende
Walter

CoolTux

Zitat von: wk am 04 Juli 2020, 09:54:42
Hallo Marko,

kann es sein, dass bei dem gestrigen update ein Fehler mitkam?
Bei mir sind heute früh zwei Rolladen gefahren, die eigentlich über ASC_Enable abgeschaltet sind. Ich hänge einmal das list hier an.

Internals:
   CID        shellyswitch25_745A07
   DEF        shellyswitch25_745A07
   DEVICETOPIC Sh_S_Fr
   FUUID      5d7b4cd7-f33f-d4cb-8778-1da6593b9a2c7aa6
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 27928
   MQTT2_FHEM_Server_TIME 2020-07-04 09:47:25
   MSGCNT     27928
   NAME       Sh_S_Fr
   NR         174
   STATE      100
   TYPE       MQTT2_DEVICE
   OLDREADINGS:
   READINGS:
     2020-06-07 21:46:46   ASC_Enable      off
     2020-07-04 09:44:51   ASC_ShadingMessage INFO: current shading status is 'out' - next check in 5m
     2020-07-04 07:00:47   ASC_ShuttersLastDrive maximum brightness threshold exceeded
     2020-07-04 09:15:01   ASC_Time_DriveDown  4.07.2020 - 23:00
     2020-07-04 09:15:01   ASC_Time_DriveUp  5.07.2020 - 09:15
     2020-07-03 10:33:13   associatedWith  Rolladen
     2020-07-04 07:00:47   current         stop
     2020-07-04 09:47:25   energy          7399
     2020-07-04 07:01:17   energy_total_kWh 0.2217
     2020-07-03 10:33:18   fw_ver          20200309-104051/v1.6.0@43056d58
     2020-07-03 10:33:18   id              shellyswitch25-745A07
     2020-07-04 09:47:25   input0          0
     2020-07-04 09:47:25   input1          0
     2020-07-03 10:33:18   ip              172.16.5.29
     2020-07-03 10:33:18   mac             807D3A745A07
     2020-07-03 10:33:18   new_fw          true
     2020-07-03 10:33:18   online          true
     2020-07-04 09:47:25   overtemperature 0
     2020-07-04 09:47:25   pct             100
     2020-07-04 09:47:25   power           0.00
     2020-07-04 09:47:25   roller_0_energy 7399
     2020-07-04 09:47:25   roller_0_power  0.00
     2020-07-04 09:47:25   state           100
     2020-07-04 09:47:25   temperature     52.67
     2020-03-11 12:51:49   x_update        set
Attributes:
   ASC        2
   ASC_BrightnessSensor FW1:reading 340:360
   ASC_Down   brightness
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 150:270
   ASC_Shading_MinMax_Elevation 0:100
   ASC_Shading_Min_OutsideTemperature 26
   ASC_Shading_Mode always
   ASC_Shading_Pos { (ReadingsVal('Wetter_Proplanta','fc0_tempMax',0) >= 25 ? 5 : 20) }
   ASC_Shading_StateChange_SunnyCloudy 870:860
   ASC_Shading_WaitingPeriod 600
   ASC_TempSensor SD_WS07_TH_1:temperature
   ASC_Time_Down_Early 16:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 07:00
   ASC_Time_Up_Late 09:15
   ASC_Up     brightness
   IODev      MQTT2_FHEM_Server
   alias      Rollo  Frank
   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");; $con = 100 - $con if $con =~ /\d+/;; my $pic = $con eq "opening" ? 'fts_shutter_up@red' : $con eq "closing" ? 'fts_shutter_down@red' : $con eq "100" ? 'fts_shutter_100' : $con =~ /(\d)\d/ ? 'fts_shutter_'.$1.'0' : $con =~ /\b\d\b/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = "$amp" eq "gelb" ? "<a href=\"/fhem?cmd.dummy=set $name x_update&XHR=1\">".FW_makeImage("10px-kreis-".$amp)."</a>" : "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage("10px-kreis-".$amp)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\"></a>".FW_makeImage($pic)." </div>"}
   event-on-change-reading temperature:1,.*
   event-on-update-reading ASC_ShuttersLastDrive
   icon       fts_shutter_automatic
   model      A_11b1a_shelly25_roller_invert_0
   readingList shellies/shellyswitch25-745A07/roller/0/pos:.* pct
  shellies/shellyswitch25-745A07/online:.* online
  shellies/shellyswitch25-745A07/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-745A07...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-745A07/roller/0:.* current
  shellies/shellyswitch25-745A07/roller/0:open {{'state' => 'opening'}}
  shellies/shellyswitch25-745A07/roller/0:close {{'state' => 'closing'}}
  shellies/shellyswitch25-745A07/roller/0/pos:.* state
  shellies/shellyswitch25-745A07/input/1:.* input1
  shellies/shellyswitch25-745A07/input/0:.* input0
  shellies/shellyswitch25-745A07/temperature:.* temperature
  shellies/shellyswitch25-745A07/overtemperature:.* overtemperature
shellyswitch25_745A07:shellies/shellyswitch25-745A07/temperature_f:.* temperature_f
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/power:.* roller_0_power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/energy:.* roller_0_energy
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/power:.* power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/energy:.* energy
   room       MQTT2_DEVICE,Rolladen,Shelly
   setList    open:noArg shellies/shellyswitch25-745A07/roller/0/command open
  close:noArg shellies/shellyswitch25-745A07/roller/0/command close
  half:noArg shellies/shellyswitch25-745A07/roller/0/command/pos 50
  stop:noArg shellies/shellyswitch25-745A07/roller/0/command stop
  pct:slider,0,1,100 shellies/shellyswitch25-745A07/roller/0/command/pos $EVTPART1
  x_recalibration:noArg shellies/shellyswitch25-745A07/roller/0/command rc
  x_update:noArg shellies/shellyswitch25-745A07/command update_fw
  x_mqttcom shellies/shellyswitch25-745A07/command $EVTPART1
   setStateList open close half stop pct
   sortby     020
   suppressReading temperature_f
   userReadings energy_total_kWh:roller_0_energy:.* monotonic {sprintf("%.4f",ReadingsNum("$name","roller_0_energy",0)/60000)}
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_SlatPosCmd_SlatDevice ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     :open:close:half:stop:pct
   widgetOverride devStateIcon:textFieldNL-long


Schönes Wochenende
Walter

Hallo Walter

Schaue ich mir an. Danke fürs Bescheid geben.


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

CoolTux

Zitat von: wk am 04 Juli 2020, 09:54:42
Hallo Marko,

kann es sein, dass bei dem gestrigen update ein Fehler mitkam?
Bei mir sind heute früh zwei Rolladen gefahren, die eigentlich über ASC_Enable abgeschaltet sind. Ich hänge einmal das list hier an.

Internals:
   CID        shellyswitch25_745A07
   DEF        shellyswitch25_745A07
   DEVICETOPIC Sh_S_Fr
   FUUID      5d7b4cd7-f33f-d4cb-8778-1da6593b9a2c7aa6
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 27928
   MQTT2_FHEM_Server_TIME 2020-07-04 09:47:25
   MSGCNT     27928
   NAME       Sh_S_Fr
   NR         174
   STATE      100
   TYPE       MQTT2_DEVICE
   OLDREADINGS:
   READINGS:
     2020-06-07 21:46:46   ASC_Enable      off
     2020-07-04 09:44:51   ASC_ShadingMessage INFO: current shading status is 'out' - next check in 5m
     2020-07-04 07:00:47   ASC_ShuttersLastDrive maximum brightness threshold exceeded
     2020-07-04 09:15:01   ASC_Time_DriveDown  4.07.2020 - 23:00
     2020-07-04 09:15:01   ASC_Time_DriveUp  5.07.2020 - 09:15
     2020-07-03 10:33:13   associatedWith  Rolladen
     2020-07-04 07:00:47   current         stop
     2020-07-04 09:47:25   energy          7399
     2020-07-04 07:01:17   energy_total_kWh 0.2217
     2020-07-03 10:33:18   fw_ver          20200309-104051/v1.6.0@43056d58
     2020-07-03 10:33:18   id              shellyswitch25-745A07
     2020-07-04 09:47:25   input0          0
     2020-07-04 09:47:25   input1          0
     2020-07-03 10:33:18   ip              172.16.5.29
     2020-07-03 10:33:18   mac             807D3A745A07
     2020-07-03 10:33:18   new_fw          true
     2020-07-03 10:33:18   online          true
     2020-07-04 09:47:25   overtemperature 0
     2020-07-04 09:47:25   pct             100
     2020-07-04 09:47:25   power           0.00
     2020-07-04 09:47:25   roller_0_energy 7399
     2020-07-04 09:47:25   roller_0_power  0.00
     2020-07-04 09:47:25   state           100
     2020-07-04 09:47:25   temperature     52.67
     2020-03-11 12:51:49   x_update        set
Attributes:
   ASC        2
   ASC_BrightnessSensor FW1:reading 340:360
   ASC_Down   brightness
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Pos_Reading pct
   ASC_Shading_InOutAzimuth 150:270
   ASC_Shading_MinMax_Elevation 0:100
   ASC_Shading_Min_OutsideTemperature 26
   ASC_Shading_Mode always
   ASC_Shading_Pos { (ReadingsVal('Wetter_Proplanta','fc0_tempMax',0) >= 25 ? 5 : 20) }
   ASC_Shading_StateChange_SunnyCloudy 870:860
   ASC_Shading_WaitingPeriod 600
   ASC_TempSensor SD_WS07_TH_1:temperature
   ASC_Time_Down_Early 16:00
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 07:00
   ASC_Time_Up_Late 09:15
   ASC_Up     brightness
   IODev      MQTT2_FHEM_Server
   alias      Rollo  Frank
   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");; $con = 100 - $con if $con =~ /\d+/;; my $pic = $con eq "opening" ? 'fts_shutter_up@red' : $con eq "closing" ? 'fts_shutter_down@red' : $con eq "100" ? 'fts_shutter_100' : $con =~ /(\d)\d/ ? 'fts_shutter_'.$1.'0' : $con =~ /\b\d\b/ ? 'fts_shutter_10' : 'fts_shutter_updown';; my $show = "$amp" eq "gelb" ? "<a href=\"/fhem?cmd.dummy=set $name x_update&XHR=1\">".FW_makeImage("10px-kreis-".$amp)."</a>" : "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage("10px-kreis-".$amp)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\"></a>".FW_makeImage($pic)." </div>"}
   event-on-change-reading temperature:1,.*
   event-on-update-reading ASC_ShuttersLastDrive
   icon       fts_shutter_automatic
   model      A_11b1a_shelly25_roller_invert_0
   readingList shellies/shellyswitch25-745A07/roller/0/pos:.* pct
  shellies/shellyswitch25-745A07/online:.* online
  shellies/shellyswitch25-745A07/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-745A07...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-745A07/roller/0:.* current
  shellies/shellyswitch25-745A07/roller/0:open {{'state' => 'opening'}}
  shellies/shellyswitch25-745A07/roller/0:close {{'state' => 'closing'}}
  shellies/shellyswitch25-745A07/roller/0/pos:.* state
  shellies/shellyswitch25-745A07/input/1:.* input1
  shellies/shellyswitch25-745A07/input/0:.* input0
  shellies/shellyswitch25-745A07/temperature:.* temperature
  shellies/shellyswitch25-745A07/overtemperature:.* overtemperature
shellyswitch25_745A07:shellies/shellyswitch25-745A07/temperature_f:.* temperature_f
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/power:.* roller_0_power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/roller/0/energy:.* roller_0_energy
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/power:.* power
shellyswitch25_745A07:shellies/shellyswitch25-745A07/relay/energy:.* energy
   room       MQTT2_DEVICE,Rolladen,Shelly
   setList    open:noArg shellies/shellyswitch25-745A07/roller/0/command open
  close:noArg shellies/shellyswitch25-745A07/roller/0/command close
  half:noArg shellies/shellyswitch25-745A07/roller/0/command/pos 50
  stop:noArg shellies/shellyswitch25-745A07/roller/0/command stop
  pct:slider,0,1,100 shellies/shellyswitch25-745A07/roller/0/command/pos $EVTPART1
  x_recalibration:noArg shellies/shellyswitch25-745A07/roller/0/command rc
  x_update:noArg shellies/shellyswitch25-745A07/command update_fw
  x_mqttcom shellies/shellyswitch25-745A07/command $EVTPART1
   setStateList open close half stop pct
   sortby     020
   suppressReading temperature_f
   userReadings energy_total_kWh:roller_0_energy:.* monotonic {sprintf("%.4f",ReadingsNum("$name","roller_0_energy",0)/60000)}
   userattr   ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace ASC_SlatPosCmd_SlatDevice ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
   webCmd     :open:close:half:stop:pct
   widgetOverride devStateIcon:textFieldNL-long


Schönes Wochenende
Walter

Ich habe es gefixt und getestet. Kommt morgen per Update.
Kann sein das noch andere Merkwürdigkeiten kommen, ich habe alle unless Bedingungen gegen if getauscht. Ist manchmal nicht so einfach das zurück zu "rechnen"



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

eurofinder

@CoolTux:
ZitatDu kannst natürlich pro Raum jeweils unterschiedliche Lichtsensoren verwenden. Mache ich ja auch. Wohnzimmer und Schlafzimmer haben Lichtsensor_1 und Küche, Kinderzimmer haben Lichtsensor_2
Ja genau - war mir nicht sicher, ob das funktioniert.

Gruß und danke für die Rückmeldung
eurofinder
RPI3+; Raspbian Buster Lite; RPI-RF-MOD; piVCCU3, HMIP-eTRV-2, HmIP-SWDO, HmIP-SRH, HmIP-STHO, HmIP-SLO

Migul47

Hallo,

wie funktioniert die Tastersperre? Nach 10 min Wartezeit ist der Taster noch immer nicht gesperrt.  Wenn ich hardLockOut, bei geöffnetem Fenster mal aus und einschalte, dann wird er gesperrt. Nach erneutem öffnen wieder nicht. ASC_LockOut steht auf hard, ASC_LockOut_Cmd steht auf inhibit.

CoolTux

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

Eistee

Hi ich hab einen Bug bei mir. Es wird dunkel am Abend. Die Helligkeit ist zu dunkel zum beschatten. Jetzt fährt meine Jalousie runter und sagt last drive wind unprotect??? Versteh ich nicht.

CoolTux

Zitat von: Eistee am 05 Juli 2020, 21:20:12
Hi ich hab einen Bug bei mir. Es wird dunkel am Abend. Die Helligkeit ist zu dunkel zum beschatten. Jetzt fährt meine Jalousie runter und sagt last drive wind unprotect??? Versteh ich nicht.

Zeig mal bitte ein List vom ASC und dem Rollo Device
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