[73_AutoShuttersControl.pm] Rolllos automatisiert steuern - Version 0.8.x

Begonnen von CoolTux, 15 November 2019, 12:51:08

Vorheriges Thema - Nächstes Thema

xerion

Zitat von: CoolTux am 15 März 2020, 10:43:11
Stimmen denn die Angaben beim Reading ASC_Time_DriveDown?
Ja die sind genau so wie bei den anderen.

Gesendet von meinem JSN-L21 mit Tapatalk

Habe gerade mal das betroffene Fenster mit { ascAPIget('IsDay','Rollo_Kueche_Strasse') } geprüft.
Komischer weise wird dort Tag angezeigt?

list
nternals:
   CHANGED   
   CID        DVES_973735
   DEF        DVES_973735
   DEVICETOPIC Rollo_Kueche_Carport
   FUUID      5e0b0509-f33f-26f5-0251-48f3d65b799b6144
   FVERSION   10_MQTT2_DEVICE.pm:0.212970/2020-02-27
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 613
   MQTT2_FHEM_Server_TIME 2020-03-15 20:09:48
   MSGCNT     613
   NAME       Rollo_Kueche_Carport
   NR         297
   STATE      <a href="http://192.168.178.135" target="_blank">
Online
</a>
100
   TYPE       MQTT2_DEVICE
   READINGS:
     2019-12-31 22:02:44   ASC_Enable      on
     2020-03-15 19:23:52   ASC_ShuttersLastDrive manual
     2020-03-15 08:30:03   ASC_Time_DriveDown 15.03.2020 - 22:00
     2020-03-15 08:30:03   ASC_Time_DriveUp 16.03.2020 - 08:30
     2020-03-15 08:30:03   ASC_Time_PrivacyDriveDown 15.03.2020 - 21:45
     2020-03-15 08:30:03   ASC_Time_PrivacyDriveUp 16.03.2020 - 08:20
     2020-01-17 21:54:30   Command         Unknown
     2020-03-04 21:28:09   FallbackTopic   cmnd/DVES_973735_fb/
     2020-03-04 21:28:09   GroupTopic      cmnd/sonoffs/
     2020-03-15 20:09:47   Heap            27
     2020-03-04 21:28:09   Hostname        sonoff_rollo_kueche_carport-594
     2020-03-04 21:28:09   IPAddress       192.168.178.135
     2020-03-04 21:27:49   IPAddress1      192.168.178.135 (192.168.178.38)
     2020-03-14 22:08:58   LWT             Online
     2020-03-15 20:09:47   LoadAvg         19
     2020-03-04 21:28:09   Module          Sonoff T1 2CH
     2020-03-15 20:09:47   MqttCount       27
     2020-03-14 22:08:58   POWER           
     2020-03-15 20:09:47   POWER1          off
     2020-03-15 20:09:47   POWER2          off
     2020-03-04 21:28:09   RestartReason   Software/System restart
     2020-03-15 20:09:48   Shutter1_Position 100
     2020-03-15 20:09:48   Shutter1_direction 0
     2020-03-07 07:59:10   ShutterClose1   100
     2020-03-07 08:00:04   ShutterOpen1    0
     2020-03-15 19:23:32   ShutterPosition1 100
     2020-03-07 07:39:38   ShutterSetHalfway1 50
     2020-01-21 08:59:24   ShutterStop1    44
     2020-03-15 20:09:47   Sleep           50
     2020-03-15 20:09:47   SleepMode       Dynamic
     2020-01-17 21:48:17   Sleep_50_Active 50
     2020-03-15 20:09:48   Time            2020-03-15T20:09:47
     2020-03-15 20:09:47   Uptime          10T22:41:49
     2020-03-15 20:09:47   UptimeSec       945709
     2020-03-04 21:28:09   Version         8.1.0.2(tasmota)
     2020-01-18 21:02:26   WebColor_1      #eaeaea
     2020-01-18 21:02:26   WebColor_10     #faffff
     2020-01-18 21:02:26   WebColor_11     #1fa3ec
     2020-01-18 21:02:26   WebColor_12     #0e70a4
     2020-01-18 21:02:26   WebColor_13     #d43535
     2020-01-18 21:02:26   WebColor_14     #931f1f
     2020-01-18 21:02:26   WebColor_15     #47c266
     2020-01-18 21:02:26   WebColor_16     #5aaf6f
     2020-01-18 21:02:26   WebColor_17     #faffff
     2020-01-18 21:02:26   WebColor_18     #999999
     2020-01-18 21:02:26   WebColor_19     #eaeaea
     2020-01-18 21:02:26   WebColor_2      #252525
     2020-01-18 21:02:26   WebColor_3      #4f4f4f
     2020-01-18 21:02:26   WebColor_4      #000000
     2020-01-18 21:02:26   WebColor_5      #dddddd
     2020-01-18 21:02:26   WebColor_6      #65c115
     2020-01-18 21:02:26   WebColor_7      #1f1f1f
     2020-01-18 21:02:26   WebColor_8      #ff5661
     2020-01-18 21:02:26   WebColor_9      #008000
     2020-03-04 21:28:09   WebServerMode   Admin
     2020-03-15 20:09:47   Wifi_AP         2
     2020-03-15 20:09:47   Wifi_BSSId      DC:39:6F:7E:81:C5
     2020-03-15 20:09:47   Wifi_Channel    13
     2020-03-15 20:09:47   Wifi_Downtime   0T00:00:13
     2020-03-15 20:09:47   Wifi_LinkCount  3
     2020-03-15 20:09:47   Wifi_RSSI       92
     2020-03-15 20:09:47   Wifi_SSId       FRITZ!Box EF 2,4 GHz
     2020-03-15 20:09:47   Wifi_Signal     -54
     2020-03-14 22:08:07   associatedWith  ASC
     2020-03-15 19:23:51   pct             100
     2020-03-15 19:23:51   state           100
     2020-03-13 21:36:43   subscriptions   cmnd/DVES_973735_fb/# cmnd/sonoff_rollo_kueche_carport/# cmnd/sonoffs/#
Attributes:
   ASC        1
   ASC_BrightnessSensor Sonoff_Daemmerung:BH1750_Illuminance
   ASC_Down   brightness
   ASC_Pos_Reading pct
   ASC_PrivacyDownValue_beforeNightClose 900:45
   ASC_PrivacyDown_Pos 20
   ASC_PrivacyUpValue_beforeDayOpen 600:2
   ASC_PrivacyUp_Pos 40
   ASC_Time_Up_WE_Holiday 08:25
   ASC_Up     brightness
   ASC_Ventilate_Pos 10
   ASC_Ventilate_Window_Open on
   ASC_WindowRec kuechen_fenster_carport
   DbLogExclude .*
   IODev      MQTT2_FHEM_Server
   alexaName  Rollo Küche Carport
   alias      Rollo Küche Carport
   cmdIcon    open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   comment    After applying the template set "ShutterOpenDuration1" and "ShutterCloseDuration1" first.
Use the "set x_configuration" Option. Example: "set x_configuration ShutterOpenDuration1 35"
Shutter specific commands available: ShutterOpenDuration1, ShutterCloseDuration1, ShutterRelay1, ShutterSetHalfway1, ShutterSetClose1, ShutterInvert1, ShutterMotordelay1, ShutterCalibration1; you may use this for general setOptions in tasmota also.
commands may need restart to take effect.
For calibration, use of more than one shutter device and further information on the available commands see <a href="https://github.com/arendst/Tasmota/wiki/blinds-and-roller-shades">Tasmota wiki</a>.
   devStateIcon opening:fts_shutter_up@red closing:fts_shutter_down@red Online:10px-kreis-gruen Offline:10px-kreis-rot 100:fts_shutter_100 0:fts_shutter_10 9\d.*:fts_shutter_90 8\d.*:fts_shutter_80 7\d.*:fts_shutter_70 6\d.*:fts_shutter_60 5\d.*:fts_shutter_50 4\d.*:fts_shutter_40 3\d.*:fts_shutter_30 2\d.*:fts_shutter_20 1\d.*:fts_shutter_10 \b\d\b.*:fts_shutter_10 set_.*:fts_shutter_updown
   event-on-change-reading .*
   group      Rollos
   icon       scene_dinner
   model      tasmota_2ch_shutter_invert_1
   readingList tele/sonoff_rollo_kueche_carport/LWT:.* LWT
   stat/sonoff_rollo_kueche_carport/RESULT:.* { json2nameValue($EVENT) }
   stat/sonoff_rollo_kueche_carport/POWER1:.* POWER1
   stat/sonoff_rollo_kueche_carport/POWER1:on {{'state' => 'opening'}}
   stat/sonoff_rollo_kueche_carport/POWER2:.* POWER2
   stat/sonoff_rollo_kueche_carport/POWER2:on {{'state' => 'closing'}}
   stat/sonoff_rollo_kueche_carport/SHUTTER1:.* state
   stat/sonoff_rollo_kueche_carport/SHUTTER1:.* pct
   tele/sonoff_rollo_kueche_carport/RESULT:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/STATE:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/SENSOR:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/INFO.:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/UPTIME:.* { json2nameValue($EVENT) }
DVES_973735:cmnd/sonoff_rollo_kueche_carport/POWER:.* POWER
   room       Kueche,Rollos
   setList    close:noArg cmnd/sonoff_rollo_kueche_carport/ShutterClose1
   open:noArg cmnd/sonoff_rollo_kueche_carport/ShutterOpen1
   half:noArg cmnd/sonoff_rollo_kueche_carport/ShutterSetHalfway1 50
   pct:slider,0,1,100 cmnd/sonoff_rollo_kueche_carport/ShutterPosition1 $EVTPART1
   stop:noArg cmnd/sonoff_rollo_kueche_carport/ShutterStop1
   resetClose:noArg cmnd/sonoff_rollo_kueche_carport/ShutterSetClose1
   x_configuration cmnd/sonoff_rollo_kueche_carport/$EVTPART1 $EVTPART2
   setStateList open close half stop pct
   stateFormat <a href="http://IPAddress" target="_blank">
LWT
</a>
state
   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_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 room_map structexclude
   webCmd     :open:close:half:stop:pct


Das andere Fenster in dem Raum erkennt die "Nacht" obwohl es bis auf die Privacy und Ventilate Position identisch eingestellt sind.

Wechsel jetzt zu Octopus Energy und bekomme 150,00 € Bonus auf deine Rechnung. Die Anmeldung geht super leicht und schnell, klicke dafür einfach meinen persönlichen Empfehlungslink:
 https://share.octopusenergy.de/loved-heron-220.

ch.eick

Gude, aus Hessen.

Ich habe letztes WE nochmal einen Test mit

sunriseTimeWeHoliday    on

ASC_Time_Up_WE_Holiday    { computeAlignTime('24:00',sunrise("CIVIL",0,"05:00","10:00")) }

gemacht. Das Problem ist, das ich nur bei einem Rolle z.N. 08:30 Uhr fuer das Wochenende gesetzt habe, jedoch alle Rollos mit der WE Defaultzeit von 08:00 Uhr fahren.
Mit dem Perl Aufruf sollte dann jedoch wieder bei allen anderen Rollos der Default ueberschrieben werden. Das funktioniert so momentan nicht.

@CoolTux Du wolltest, wenn es die Zeit eruebrigt mal danach schauen, ob Du den Default raus nimmst und eventuell die bis dahin bereits ermittelte Zeit eintragen kannst.

Eine Moegliche Zeit ermittlung waere z.B.

1. Up [Astro|Time]
2. Up_Early
3. Up_Late

Dies soll nur eine Erinnerung sein und bitte nicht als draengeln werten :-)

Viele Gruesse
   Christian
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

Maddat

@CoolTux
Das Tahoma-tool hat derzeit Probleme mit dem Somfy-Server (https://forum.fhem.de/index.php?topic=28045.420)
Das bringt mich auf eine Frage:
Wird ein Befehl nur einmal an einen Rollladen gesendet?
Oder wird das Ausführen eine Befehles auch kontrolliert?
Ggf. könnte man doch 3Minuten nach "morgens auf" (resp. abends zu) bei Bedarf den Befehl wiederholen.
Ich denke, dass auch die anderen Rollladen-Devices nicht immer fehlerfrei laufen.
Tahoma, ASC, Sduino, nanoCul, ESPEasy, FDECT

CoolTux

Zitat von: Maddat am 18 März 2020, 10:27:05
@CoolTux
Das Tahoma-tool hat derzeit Probleme mit dem Somfy-Server (https://forum.fhem.de/index.php?topic=28045.420)
Das bringt mich auf eine Frage:
Wird ein Befehl nur einmal an einen Rollladen gesendet?
Oder wird das Ausführen eine Befehles auch kontrolliert?
Ggf. könnte man doch 3Minuten nach "morgens auf" (resp. abends zu) bei Bedarf den Befehl wiederholen.
Ich denke, dass auch die anderen Rollladen-Devices nicht immer fehlerfrei laufen.

Hallo,

Das ASC Modul sendet genau einmal den ROLLO-Modulbefehl (also den set Befehl) es ist nicht dafür da auch noch die Hardware oder die Funktionsweise des Rollo Modules zu überprüfen. Das muß bitte das Rollo Modul tätigen.



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: ch.eick am 16 März 2020, 16:54:10
@CoolTux Du wolltest, wenn es die Zeit eruebrigt mal danach schauen, ob Du den Default raus nimmst und eventuell die bis dahin bereits ermittelte Zeit eintragen kannst.

Ich habe das umgesetzt und teste 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

kotaro

Zitat von: Maddat am 18 März 2020, 10:27:05
@CoolTux
Das Tahoma-tool hat derzeit Probleme mit dem Somfy-Server (https://forum.fhem.de/index.php?topic=28045.420)
Das bringt mich auf eine Frage:
Wird ein Befehl nur einmal an einen Rollladen gesendet?
Oder wird das Ausführen eine Befehles auch kontrolliert?
Ggf. könnte man doch 3Minuten nach "morgens auf" (resp. abends zu) bei Bedarf den Befehl wiederholen.
Ich denke, dass auch die anderen Rollladen-Devices nicht immer fehlerfrei laufen.

Bau dir doch einfach ein DOIf, der beim Senden von Rollläden-Positionen nach 3 Minuten den Befehl wiederholt. Oder kontrolliere nach 3 Minuten, ob der Wert gesetzt wurde, und sende ihn dann erneut

xavier

Hi,

I am using ASC for day / night opening and shading and now I would like to extend its control to rain.

I purchased and installed the Weatherman station to detect the presence of rain and wind direction and speed.

This is because I would like to implement a somewhat sophisticated management of roller shutters, according to these conditions:

1) if it rains vertically, with nothing or little wind, do nothing;

2) if it rains in moderate winds, it determines which direction the wind is coming from and lowers the shutters on that side of the house to a predefined position;

3) if it rains in strong winds, determine which direction the wind is coming from and close the shutters on that side of the house;

4) (obviously) when it stops raining, raise the blinds.

I have already written preliminary DOIFs and created an FTUI interface (see attach) that shows the weather conditions, now it's time for ASC.

Currently, there is no management of wind direction, so I have to think about how to get what I want.

First option: fake lux sensor, which takes data from a real sensor and through some DOIF generates a maximum brightness value when it rains and the wind is moderate. In this way I lower the blinds on the side of the house I want and with another DOIF I use the ASC_ExternalTrigger attribute for managing rain in strong winds.

Second option: modify the ASC_ExternalTrigger function to handle three states instead of two. I'm not very good at programming, but above all I should manually edit ASC with every update. Rather inconvenient, I prefer to avoid.

Third option: the author drinks lots of beers and develops rain + wind management. I see this as the most unlikely.

After all this talk, to those who are still reading me I ask ... what do you think of the first option?

Regards,
xavier

ch.eick

Hi xavier,

first at all welcome to ASC.

In your situation I would not use the shading attributes for rain protection, because the sommer is near and you will love it for sun protection.
I've created some kind of brightness dummy calculating around with UV index and grabbing solar radiation from wunderground. Picking up multiple stations
is working wunderfull for me. https://forum.fhem.de/index.php/topic,102199.msg967551.html#msg967551

Did you already find the ASC_RainProtection attribute? I dosen't use it so far, but there is might be some documentation.
There are some functions inside of fhem called uconv, which allowes youto convert wind direction from west to 270° for example. With that conversion you can calculate
if the rain is blowing to your window :-)
I would try to create some kind of signal or figure, to set a trigger for the ASC_RainProtection, or what is needed to that attribut.

Best regards
    Christian

RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

xavier

Hello ch.eick,

thank you for your answer.

In my previous message I had not specified some information.

For the management of the shading, I don't use the Weatherman solar sensor but a self-built sensor based on BH1750 and Wemos D1 mini. For now it's only a prototype that manages the south side of my house, but I intend to make two more for the east and west sides. Already with the existing prototype, and the ASC_Shading_StateChange_SunnyCloudy parameter, the shutters move wonderfully. The only drawback is that the percentage of lowering should vary during the year, depending on the height of the sun.

I have yet to understand ASC's management of the angle of the sun. The post you report to me is very interesting, I'll take a look.

When I started configuring ASC, I immediately studied the ASC_RainProtection attribute, but what I found was that it only offers an on/off function. In practice, if it rains, even a few drops, it closes all the shutters of my house and leaves me... walled live inside. It is too invasive. This is why I try to create a softer solution.

This is an example of the code I'm testing:


define Rain_from_N dummy
attr Rain_from_N group Rain_Direction
attr Rain_from_N room 00 Meteo
attr Rain_from_N setList 0 1 2

define Rain_from_E dummy
attr Rain_from_E group Rain_Direction
attr Rain_from_E room 00 Meteo
attr Rain_from_E setList 0 1 2

define Rain_from_S dummy
attr Rain_from_S group Rain_Direction
attr Rain_from_S room 00 Meteo
attr Rain_from_S setList 0 1 2

define Rain_from_W dummy
attr Rain_from_W group Rain_Direction
attr Rain_from_W room 00 Meteo
attr Rain_from_W setList 0 1 2

define Doif_Rain_from_N DOIF ([Weather_HOME:Rain] eq "off" and [Doif_Rain_from_N] ne "cmd_1") (set Rain_from_N 0) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] <= 11 and [Weather_HOME:Wind_Angle] <= 45 and [Weather_HOME:Wind_Angle] >= 316 and [Doif_Rain_from_N] ne "cmd_2") (set Rain_from_N 1) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] > 11 and [Weather_HOME:Wind_Angle] <= 45 and [Weather_HOME:Wind_Angle] >= 316 and [Doif_Rain_from_N] ne "cmd_3") (set Rain_from_N 2)
attr Doif_Rain_from_N checkReadingEvent 1
attr Doif_Rain_from_N cmdpause 1:1:1
attr Doif_Rain_from_N do always
attr Doif_Rain_from_N group Doif_Rain_Direction
attr Doif_Rain_from_N room 00 Meteo

define Doif_Rain_from_E DOIF ([Weather_HOME:Rain] eq "off" and [Doif_Rain_from_E] ne "cmd_1") (set Rain_from_E 0) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] <= 11 and [Weather_HOME:Wind_Angle] >= 46 and [Weather_HOME:Wind_Angle] <= 135 and [Doif_Rain_from_E] ne "cmd_2") (set Rain_from_E 1) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] > 11 and [Weather_HOME:Wind_Angle] >= 46 and [Weather_HOME:Wind_Angle] <= 135 and [Doif_Rain_from_E] ne "cmd_3") (set Rain_from_E 2)
attr Doif_Rain_from_E checkReadingEvent 1
attr Doif_Rain_from_E cmdpause 1:1:1
attr Doif_Rain_from_E do always
attr Doif_Rain_from_E group Doif_Rain_Direction
attr Doif_Rain_from_E room 00 Meteo

define Doif_Rain_from_S DOIF ([Weather_HOME:Rain] eq "off" and [Doif_Rain_from_S] ne "cmd_1") (set Rain_from_S 0) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] <= 11 and [Weather_HOME:Wind_Angle] >= 136 and [Weather_HOME:Wind_Angle] <= 225 and [Doif_Rain_from_S] ne "cmd_2") (set Rain_from_S 1) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] > 11 and [Weather_HOME:Wind_Angle] >=136 and [Weather_HOME:Wind_Angle] <= 225 and [Doif_Rain_from_S] ne "cmd_3") (set Rain_from_S 2)
attr Doif_Rain_from_S checkReadingEvent 1
attr Doif_Rain_from_S cmdpause 1:1:1
attr Doif_Rain_from_S do always
attr Doif_Rain_from_S group Doif_Rain_Direction
attr Doif_Rain_from_S room 00 Meteo

define Doif_Rain_from_W DOIF ([Weather_HOME:Rain] eq "off" and [Doif_Rain_from_W] ne "cmd_1") (set Rain_from_W 0) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] <= 11 and [Weather_HOME:Wind_Angle] >= 226 and [Weather_HOME:Wind_Angle] <= 315 and [Doif_Rain_from_W] ne "cmd_2") (set Rain_from_W 1) \
DOELSEIF ([Weather_HOME:Rain] eq "on" and [Weather_HOME:Wind_Speed_1min] > 11 and [Weather_HOME:Wind_Angle] >= 226 and [Weather_HOME:Wind_Angle] <= 315 and [Doif_Rain_from_W] ne "cmd_3") (set Rain_from_W 2)
attr Doif_Rain_from_W checkReadingEvent 1
attr Doif_Rain_from_W cmdpause 1:1:1
attr Doif_Rain_from_W do always
attr Doif_Rain_from_W group Doif_Rain_Direction
attr Doif_Rain_from_W room 00 Meteo


It's all very basic, but it's to show that with four Rain_from_x dummy I already generate the values ​​0 (no rain), 1 (moderate rain) or 2 (rain with wind), calculated from the attributes "Rain", "Wind_Speed_1min" and "Wind_Angle" detected by the weather station in order to correctly manage the shutters.

I just don't know how to interface these values ​​with ASC.

Best regards,
xavier

ch.eick

Hi,
simplyest you can make a
set rollo pos 60
Which will drive the shutter 60 percent of its driving time. This will bring the device to  a manual driving state and lock the automation for some time.

A second idea would be to simulate the brightness mix/max value in some kind of brightness dummy. During rain you Set the max brightness value to the dummy and if rain  is finished you set back to the normal light brightness value. You may implement it as an offset.
brigthness+0 is following the normal brightness
By adding 1000 for example it will be allways higher than the shading in and the shutter will close.

Christian

Gesendet von meinem SM-G930F mit Tapatalk
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

CoolTux

Zitat von: ch.eick am 16 März 2020, 16:54:10
@CoolTux Du wolltest, wenn es die Zeit eruebrigt mal danach schauen, ob Du den Default raus nimmst und eventuell die bis dahin bereits ermittelte Zeit eintragen kannst.

Ich habe für morgen früh ein Update fertig gemacht. Per default ist ASC_Time_Up_We_Holiday nun deaktiviert. Man muss also nicht nur im ASC Device per set das HolidayWekkend aktivieren sondern auch explizit das Attribut setzen.

Damit ändert sich also das Standardverhalten. Bitte achtet darauf.
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

ch.eick

RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

Vorhand

Altes Thema: Fensterkontakt
set hardLockOut ist "off"
An einem Rollo ASC_LockOut ist "soft"
Wenn das Signal bei ASC_WindowRec -> "open" anliegt, dann geht die Beschattung nicht runter bzw. nicht weiter runter.
Das funktioniert.
Wenn ich auf der Bedienoberfläche "ab" clicke, dann geht er runter, obwohl das Fenster "open" ist.
Ist das so gewollt?
danke
Viele Grüße
Raspi,Homatic,ESP,Fronius,KIA-PHEV,DHW300,Mi,Shelly

CoolTux

Zitat von: Vorhand am 19 März 2020, 18:30:25
Altes Thema: Fensterkontakt
set hardLockOut ist "off"
An einem Rollo ASC_LockOut ist "soft"
Wenn das Signal bei ASC_WindowRec -> "open" anliegt, dann geht die Beschattung nicht runter bzw. nicht weiter runter.
Das funktioniert.
Wenn ich auf der Bedienoberfläche "ab" clicke, dann geht er runter, obwohl das Fenster "open" ist.
Ist das so gewollt?
danke

Bitte darauf achten das ASC eine direkte Steuerung, egal ob per Hardwaretaster oder über FHEM set Befehl, nicht unterbinden wird/kann.
Ausnahme ist ein unterstützter LockOut hard. Da mittels set Befehl die sowieso vorhandene Sperre vom Taster aktiviert wird.
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

xerion

Zitat von: xerion am 15 März 2020, 17:54:44
Ja die sind genau so wie bei den anderen.

Gesendet von meinem JSN-L21 mit Tapatalk

Habe gerade mal das betroffene Fenster mit { ascAPIget('IsDay','Rollo_Kueche_Strasse') } geprüft.
Komischer weise wird dort Tag angezeigt?

list
nternals:
   CHANGED   
   CID        DVES_973735
   DEF        DVES_973735
   DEVICETOPIC Rollo_Kueche_Carport
   FUUID      5e0b0509-f33f-26f5-0251-48f3d65b799b6144
   FVERSION   10_MQTT2_DEVICE.pm:0.212970/2020-02-27
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 613
   MQTT2_FHEM_Server_TIME 2020-03-15 20:09:48
   MSGCNT     613
   NAME       Rollo_Kueche_Carport
   NR         297
   STATE      <a href="http://192.168.178.135" target="_blank">
Online
</a>
100
   TYPE       MQTT2_DEVICE
   READINGS:
     2019-12-31 22:02:44   ASC_Enable      on
     2020-03-15 19:23:52   ASC_ShuttersLastDrive manual
     2020-03-15 08:30:03   ASC_Time_DriveDown 15.03.2020 - 22:00
     2020-03-15 08:30:03   ASC_Time_DriveUp 16.03.2020 - 08:30
     2020-03-15 08:30:03   ASC_Time_PrivacyDriveDown 15.03.2020 - 21:45
     2020-03-15 08:30:03   ASC_Time_PrivacyDriveUp 16.03.2020 - 08:20
     2020-01-17 21:54:30   Command         Unknown
     2020-03-04 21:28:09   FallbackTopic   cmnd/DVES_973735_fb/
     2020-03-04 21:28:09   GroupTopic      cmnd/sonoffs/
     2020-03-15 20:09:47   Heap            27
     2020-03-04 21:28:09   Hostname        sonoff_rollo_kueche_carport-594
     2020-03-04 21:28:09   IPAddress       192.168.178.135
     2020-03-04 21:27:49   IPAddress1      192.168.178.135 (192.168.178.38)
     2020-03-14 22:08:58   LWT             Online
     2020-03-15 20:09:47   LoadAvg         19
     2020-03-04 21:28:09   Module          Sonoff T1 2CH
     2020-03-15 20:09:47   MqttCount       27
     2020-03-14 22:08:58   POWER           
     2020-03-15 20:09:47   POWER1          off
     2020-03-15 20:09:47   POWER2          off
     2020-03-04 21:28:09   RestartReason   Software/System restart
     2020-03-15 20:09:48   Shutter1_Position 100
     2020-03-15 20:09:48   Shutter1_direction 0
     2020-03-07 07:59:10   ShutterClose1   100
     2020-03-07 08:00:04   ShutterOpen1    0
     2020-03-15 19:23:32   ShutterPosition1 100
     2020-03-07 07:39:38   ShutterSetHalfway1 50
     2020-01-21 08:59:24   ShutterStop1    44
     2020-03-15 20:09:47   Sleep           50
     2020-03-15 20:09:47   SleepMode       Dynamic
     2020-01-17 21:48:17   Sleep_50_Active 50
     2020-03-15 20:09:48   Time            2020-03-15T20:09:47
     2020-03-15 20:09:47   Uptime          10T22:41:49
     2020-03-15 20:09:47   UptimeSec       945709
     2020-03-04 21:28:09   Version         8.1.0.2(tasmota)
     2020-01-18 21:02:26   WebColor_1      #eaeaea
     2020-01-18 21:02:26   WebColor_10     #faffff
     2020-01-18 21:02:26   WebColor_11     #1fa3ec
     2020-01-18 21:02:26   WebColor_12     #0e70a4
     2020-01-18 21:02:26   WebColor_13     #d43535
     2020-01-18 21:02:26   WebColor_14     #931f1f
     2020-01-18 21:02:26   WebColor_15     #47c266
     2020-01-18 21:02:26   WebColor_16     #5aaf6f
     2020-01-18 21:02:26   WebColor_17     #faffff
     2020-01-18 21:02:26   WebColor_18     #999999
     2020-01-18 21:02:26   WebColor_19     #eaeaea
     2020-01-18 21:02:26   WebColor_2      #252525
     2020-01-18 21:02:26   WebColor_3      #4f4f4f
     2020-01-18 21:02:26   WebColor_4      #000000
     2020-01-18 21:02:26   WebColor_5      #dddddd
     2020-01-18 21:02:26   WebColor_6      #65c115
     2020-01-18 21:02:26   WebColor_7      #1f1f1f
     2020-01-18 21:02:26   WebColor_8      #ff5661
     2020-01-18 21:02:26   WebColor_9      #008000
     2020-03-04 21:28:09   WebServerMode   Admin
     2020-03-15 20:09:47   Wifi_AP         2
     2020-03-15 20:09:47   Wifi_BSSId      DC:39:6F:7E:81:C5
     2020-03-15 20:09:47   Wifi_Channel    13
     2020-03-15 20:09:47   Wifi_Downtime   0T00:00:13
     2020-03-15 20:09:47   Wifi_LinkCount  3
     2020-03-15 20:09:47   Wifi_RSSI       92
     2020-03-15 20:09:47   Wifi_SSId       FRITZ!Box EF 2,4 GHz
     2020-03-15 20:09:47   Wifi_Signal     -54
     2020-03-14 22:08:07   associatedWith  ASC
     2020-03-15 19:23:51   pct             100
     2020-03-15 19:23:51   state           100
     2020-03-13 21:36:43   subscriptions   cmnd/DVES_973735_fb/# cmnd/sonoff_rollo_kueche_carport/# cmnd/sonoffs/#
Attributes:
   ASC        1
   ASC_BrightnessSensor Sonoff_Daemmerung:BH1750_Illuminance
   ASC_Down   brightness
   ASC_Pos_Reading pct
   ASC_PrivacyDownValue_beforeNightClose 900:45
   ASC_PrivacyDown_Pos 20
   ASC_PrivacyUpValue_beforeDayOpen 600:2
   ASC_PrivacyUp_Pos 40
   ASC_Time_Up_WE_Holiday 08:25
   ASC_Up     brightness
   ASC_Ventilate_Pos 10
   ASC_Ventilate_Window_Open on
   ASC_WindowRec kuechen_fenster_carport
   DbLogExclude .*
   IODev      MQTT2_FHEM_Server
   alexaName  Rollo Küche Carport
   alias      Rollo Küche Carport
   cmdIcon    open:fts_shutter_up close:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   comment    After applying the template set "ShutterOpenDuration1" and "ShutterCloseDuration1" first.
Use the "set x_configuration" Option. Example: "set x_configuration ShutterOpenDuration1 35"
Shutter specific commands available: ShutterOpenDuration1, ShutterCloseDuration1, ShutterRelay1, ShutterSetHalfway1, ShutterSetClose1, ShutterInvert1, ShutterMotordelay1, ShutterCalibration1; you may use this for general setOptions in tasmota also.
commands may need restart to take effect.
For calibration, use of more than one shutter device and further information on the available commands see <a href="https://github.com/arendst/Tasmota/wiki/blinds-and-roller-shades">Tasmota wiki</a>.
   devStateIcon opening:fts_shutter_up@red closing:fts_shutter_down@red Online:10px-kreis-gruen Offline:10px-kreis-rot 100:fts_shutter_100 0:fts_shutter_10 9\d.*:fts_shutter_90 8\d.*:fts_shutter_80 7\d.*:fts_shutter_70 6\d.*:fts_shutter_60 5\d.*:fts_shutter_50 4\d.*:fts_shutter_40 3\d.*:fts_shutter_30 2\d.*:fts_shutter_20 1\d.*:fts_shutter_10 \b\d\b.*:fts_shutter_10 set_.*:fts_shutter_updown
   event-on-change-reading .*
   group      Rollos
   icon       scene_dinner
   model      tasmota_2ch_shutter_invert_1
   readingList tele/sonoff_rollo_kueche_carport/LWT:.* LWT
   stat/sonoff_rollo_kueche_carport/RESULT:.* { json2nameValue($EVENT) }
   stat/sonoff_rollo_kueche_carport/POWER1:.* POWER1
   stat/sonoff_rollo_kueche_carport/POWER1:on {{'state' => 'opening'}}
   stat/sonoff_rollo_kueche_carport/POWER2:.* POWER2
   stat/sonoff_rollo_kueche_carport/POWER2:on {{'state' => 'closing'}}
   stat/sonoff_rollo_kueche_carport/SHUTTER1:.* state
   stat/sonoff_rollo_kueche_carport/SHUTTER1:.* pct
   tele/sonoff_rollo_kueche_carport/RESULT:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/STATE:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/SENSOR:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/INFO.:.* { json2nameValue($EVENT) }
   tele/sonoff_rollo_kueche_carport/UPTIME:.* { json2nameValue($EVENT) }
DVES_973735:cmnd/sonoff_rollo_kueche_carport/POWER:.* POWER
   room       Kueche,Rollos
   setList    close:noArg cmnd/sonoff_rollo_kueche_carport/ShutterClose1
   open:noArg cmnd/sonoff_rollo_kueche_carport/ShutterOpen1
   half:noArg cmnd/sonoff_rollo_kueche_carport/ShutterSetHalfway1 50
   pct:slider,0,1,100 cmnd/sonoff_rollo_kueche_carport/ShutterPosition1 $EVTPART1
   stop:noArg cmnd/sonoff_rollo_kueche_carport/ShutterStop1
   resetClose:noArg cmnd/sonoff_rollo_kueche_carport/ShutterSetClose1
   x_configuration cmnd/sonoff_rollo_kueche_carport/$EVTPART1 $EVTPART2
   setStateList open close half stop pct
   stateFormat <a href="http://IPAddress" target="_blank">
LWT
</a>
state
   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_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 room_map structexclude
   webCmd     :open:close:half:stop:pct


Das andere Fenster in dem Raum erkennt die "Nacht" obwohl es bis auf die Privacy und Ventilate Position identisch eingestellt sind.


Hallo CoolTux,

ich muss meine Info noch mal ergänzen. Das Problem ist doch nicht nur am Wochenende. Es scheint ein grundsätzliches Problem mit Privacy über Brightness zu sein wenn die Fenster während der Privacy Fahrt geöffnet sind.
Was können wir tun?
Wechsel jetzt zu Octopus Energy und bekomme 150,00 € Bonus auf deine Rechnung. Die Anmeldung geht super leicht und schnell, klicke dafür einfach meinen persönlichen Empfehlungslink:
 https://share.octopusenergy.de/loved-heron-220.