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

Begonnen von CoolTux, 27 April 2019, 08:04:52

Vorheriges Thema - Nächstes Thema

majestro84

Ja ist angeschaltet ich gucke Mal wenn die nächste in Out Fahrt was da kommt. Nur ist im Moment keine mehr in Beschattung sind Wolken aufgezogen
Server: Fujitsu ESPRIMO Q920 - aktuellen FHEM-Docker Image:Z-Wave (RollerShutter,DoorWindow,Socket,PIR,....) | ENIGMA2 | EGPM2LAN | BLE-Tag(PRESENCE) | HUE | alexa-fhem | Shelly | MQTT2
1.Pi-Zero:Viessmann(optolink) mit 89_VCONTROL300.pm
2.Pi3 Dongle Server: Zigbee2MQTT(CC1352P-2), Z-Wave(UZB1), BT

Christoph Morrison

Zitat von: CoolTux am 24 Mai 2019, 13:35:07
Aktuell noch nicht. Wollte da eine Freundin bitten ob sie Zeit findet. Wenn Du sagst Du hättest Interesse dann gerne. Nur zu.

Hab angefangen, ca. 30% fertig. Bekommst dann einen pull request auf Github.

Uwe S.

Hallo,

mein Problem (Rollladen sollen morgens nicht automatisch fahren, abends aber wohl, aber fahren abends nicht) schaue ich mir selbst noch einmal an.


Zu meinem Ursprungsproblem:
Normal sollen die Rollläden nur abends automatisch fahren, morgens aber nicht.
Wenn ich im Urlaub bin (also nicht zuhause) sollen die auch morgens automatisch fahren.

Eigentlich bräuchte ich doch nur im ASC-Device das Attribut "ASC_autoShuttersControlMorning" ändern. Geht das nicht?

Oder alternativ ein zweites ASC-Device mit entsprechendem Attribut und ich schalte wechselweise die ASC-Devices auf aktiv bzw. inaktiv.



CoolTux

Zitat von: Uwe S. am 24 Mai 2019, 17:19:22
Hallo,

mein Problem (Rollladen sollen morgens nicht automatisch fahren, abends aber wohl, aber fahren abends nicht) schaue ich mir selbst noch einmal an.


Zu meinem Ursprungsproblem:
Normal sollen die Rollläden nur abends automatisch fahren, morgens aber nicht.
Wenn ich im Urlaub bin (also nicht zuhause) sollen die auch morgens automatisch fahren.

Eigentlich bräuchte ich doch nur im ASC-Device das Attribut "ASC_autoShuttersControlMorning" ändern. Geht das nicht?

Oder alternativ ein zweites ASC-Device mit entsprechendem Attribut und ich schalte wechselweise die ASC-Devices auf aktiv bzw. inaktiv.

Ein zweites ASC Device kann man nicht anlegen. Du kannst aber natürlich das Attribut im Urlaub anders setzen. Das geht.
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

TommyER

Seit dem Update auf 0.6.12 sind folgende Hinweise im Log


2019.05.24 16:00:06 1: PERL WARNING: Use of uninitialized value in numeric gt (>) at ./FHEM/73_AutoShuttersControl.pm line 2775.
2019.05.24 16:00:06 1: PERL WARNING: Use of uninitialized value in numeric gt (>) at ./FHEM/73_AutoShuttersControl.pm line 2783.
2019.05.24 16:00:06 1: PERL WARNING: Use of uninitialized value $d in hash element at fhem.pl line 4446.
2019.05.24 16:00:06 1: PERL WARNING: Use of uninitialized value $brightnessMinVal in concatenation (.) or string at ./FHEM/73_AutoShuttersControl.pm line 2802.
2019.05.24 16:00:06 1: PERL WARNING: Use of uninitialized value $brightnessMaxVal in concatenation (.) or string at ./FHEM/73_AutoShuttersControl.pm line 2826.



CoolTux

Hast Du nach dem Update Neugestartet? Kannst Du bitte debug aktivieren.
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

Ok ich habe gerade eben mal geschaut. Da ist in der Tat ein Fehler drin. Ich schaue
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: FunkOdyssey am 21 Mai 2019, 16:52:39
Ja, mein Versionssprung war jedoch nicht wirklich groß, da ich auch vorher die Development-Version eingesetzt habe.
Shading habe ich zwar aktiviert und konfiguriert. Jedoch habe noch keine echte Beschattung durchführen können, da ich einen Brightness-Sensor und keinen Lux-Sensor in Betrieb habe. Hier muss ich mir noch etwas einfallen lassen.

Und am Wochenende versuche ich "mein Türkontaktfehler" noch einmal, indem ich nicht TwoState, sondern ThreeState für meinen HM-SEC-SCO gesetzt habe.
In Kurz: Nur am Wochenende fahren rein zeitgesteuerte (nur UP / nicht DOWN, weil manuell) Jalousien nicht hoch (NIE), wenn ich ein Türkontakt hinterlegt habe. Siehe wie folgt:

   ASC        2
   ASC_BrightnessSensor dummy_brightness:value 110:110
   ASC_Down   time
   ASC_DriveUpMaxDuration 60
   ASC_Drive_Offset 180
   ASC_Drive_OffsetStart 120
   ASC_Mode_Down off
   ASC_Mode_Up always
   ASC_Pos_Reading pct
   ASC_Shading_Direction 135
   ASC_Shading_Min_Elevation 25
   ASC_Shading_Min_OutsideTemperature 22
   ASC_Shading_Mode off
   ASC_Shading_Pos 25
   ASC_Time_Down_Early 22:00
   ASC_Time_Down_Late 23:45
   ASC_Time_Up_Early 07:00
   ASC_Time_Up_Late 09:00
   ASC_Time_Up_WE_Holiday 08:00
   ASC_Up     time
   ASC_WiggleValue 15
   ASC_WindowRec contact_sensor1
   ASC_WindowRec_subType twostate




Das hier funktioniert auch am Wochenende:

   ASC        2
   ASC_BrightnessSensor dummy_brightness:value 125:120
   ASC_Down   brightness
   ASC_DriveUpMaxDuration 45
   ASC_Drive_Offset 120
   ASC_Drive_OffsetStart 180
   ASC_LockOut soft
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Partymode on
   ASC_Pos_Reading pct
   ASC_PrivacyDownTime_beforNightClose 1800
   ASC_Shading_Direction 135
   ASC_Shading_Min_Elevation 25
   ASC_Shading_Min_OutsideTemperature 22
   ASC_Shading_Mode always
   ASC_Shading_Pos 25
   ASC_ShuttersPlace terrace
   ASC_Time_Down_Early 16:30
   ASC_Time_Down_Late 20:30
   ASC_Time_Up_Early 08:00
   ASC_Time_Up_Late 08:30
   ASC_Time_Up_WE_Holiday 08:15
   ASC_Up     brightness
   ASC_WiggleValue 15
   ASC_WindowRec contact_sensor2
   ASC_WindowRec_subType twostate


createNotifyDev habe ich bereits mehrfach durchgeführt.

Irgendwie ist da der Wurm drin.
Heute ist keine Jalousie hochgefahren, die wie folgt konfiguriert sind:
ASC_Time_Up_WE_Holiday 08:00
ASC_Mode_Down off
ASC_Mode_Up always
ASC_Down time
ASC_Up time

Egal ob Contact-Attribut gesetzt war oder nicht.
Und auch nur am WE!
Rollos werden abends immer manuell geschlossen.

CoolTux

hast Du schon die Version mit der API. Dann lese bitte einmal die Zeit aus wann er hoch fahren soll
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 25 Mai 2019, 12:43:19
Irgendwie ist da der Wurm drin.
Heute ist keine Jalousie hochgefahren, die wie folgt konfiguriert sind:
ASC_Time_Up_WE_Holiday 08:00
ASC_Mode_Down off
ASC_Mode_Up always
ASC_Down time
ASC_Up time

Egal ob Contact-Attribut gesetzt war oder nicht.
Und auch nur am WE!
Rollos werden abends immer manuell geschlossen.

Setzt er denn für den Folgetag eine neue Zeit am Morgen?
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

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

Team-Menge

Hallo CoolTux,

mein Rollladen fuhr die letzen Wochenenden auch nicht hoch.

Attributes:
   ASC        2
   ASC_BlockingTime_afterManual 45
   ASC_BrightnessSensor Helligkeit:brightness 300:1000
   ASC_Closed_Pos 0
   ASC_Down   brightness
   ASC_Drive_OffsetStart 20
   ASC_Mode_Down always
   ASC_Mode_Up always
   ASC_Open_Pos 100
   ASC_Pos_Reading pct
   ASC_Shading_Angle_Left 50
   ASC_Shading_Angle_Right 50
   ASC_Shading_Direction 108
   ASC_Shading_Min_OutsideTemperature 15
   ASC_Shading_Mode always
   ASC_Shading_Pos 70
   ASC_Time_Down_Early 15:30
   ASC_Time_Down_Late 22:30
   ASC_Time_Up_Early 05:08:30
   ASC_Time_Up_Late 08:27:30
   ASC_Time_Up_WE_Holiday 08:05:30
   ASC_Up     time
   ASC_Ventilate_Pos 100
   ASC_Ventilate_Window_Open on
   ASC_WindowRec Kueche_Tuerkontakt
   ASC_WindowRec_subType twostate


ASC_Enable
on
2019-05-21 08:30:15
ASC_ShuttersLastDrive
manual
2019-05-25 09:00:17
ASC_Time_DriveDown
24.05.2019 - 22:30
2019-05-24 21:08:31
ASC_Time_DriveUp
26.05.2019 - 08:05
2019-05-24 21:08:31

CoolTux

Danke für die Meldung. Dann muss ich mir das noch mal genauer anschauen.
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

kjmEjfu

Internals:
   DEF        NEQxxx
   FUUID     xxxxxxxxxxxx
   FVERSION   88_HMCCUDEV.pm:v4.3.8-s18552/2019-02-10
   IODev      d_ccu
   NAME       HM_Rollo_EG_Flur_Ost
   NR         143
   STATE      none
   TYPE       HMCCUDEV
   ccuaddr    NEQxxx
   ccudevstate active
   ccuif      BidCos-RF
   ccuname    HM-Rollo-EG-Flur-Ost
   ccutype    HM-LC-Bl1-FM
   channels   2
   firmware   2.8
   statevals  devstate
   READINGS:
     2019-05-21 17:53:55   ASC_Enable      on
     2019-05-25 13:55:54   ASC_ShuttersLastDrive shading out
     2019-05-25 08:45:01   ASC_Time_DriveDown 25.05.2019 - 22:00
     2019-05-25 08:45:01   ASC_Time_DriveUp 26.05.2019 - 08:45
     2019-05-24 07:12:32   associatedWith  myASControl
     2019-05-25 13:56:18   control         0
     2019-05-25 13:56:18   direction       stop
     2019-05-25 13:56:18   hmstate         off
     2019-05-24 07:12:39   inhibit         unlocked
     2019-05-25 13:56:18   level           none
     2019-05-24 07:12:39   lock            unlocked
     2019-05-25 13:56:18   motor           stop
     2019-05-25 13:56:18   pct             0
     2019-05-25 13:56:18   state           none
     2019-05-25 13:56:18   working         no
   hmccu:
     devspec    NEQxxx
     dp:
       0.AES_KEY:
         OVAL       1
         VAL        1
       0.CONFIG_PENDING:
         OVAL       false
         VAL        false
       0.DUTYCYCLE:
         OVAL       false
         VAL        false
       0.RSSI_DEVICE:
         OVAL       1
         VAL        1
       0.RSSI_PEER:
         OVAL       1
         VAL        1
       0.STICKY_UNREACH:
         OVAL       false
         VAL        false
       0.UNREACH:
         OVAL       false
         VAL        false
       1.DIRECTION:
         OSVAL      down
         OVAL       2
         SVAL       stop
         VAL        0
       1.INHIBIT:
         OSVAL      unlocked
         OVAL       false
         SVAL       unlocked
         VAL        false
       1.LEVEL:
         OSVAL      open
         OVAL       1.000000
         SVAL       none
         VAL        0.000000
       1.WORKING:
         OSVAL      yes
         OVAL       1
         SVAL       no
         VAL        0
Attributes:
   ASC        2
   ASC_AutoAstroModeEvening HORIZON
   ASC_AutoAstroModeEveningHorizon -3
   ASC_AutoAstroModeMorning HORIZON
   ASC_AutoAstroModeMorningHorizon -5
   ASC_BlockingTime_beforDayOpen 1800
   ASC_BlockingTime_beforNightClose 1800
   ASC_BrightnessSensor HM_Sonne_Aussen_HWR:control 90:60
   ASC_ComfortOpen_Pos 100
   ASC_Down   brightness
   ASC_LockOut_Cmd inhibit
   ASC_Pos_Reading pct
   ASC_Shading_Angle_Left 85
   ASC_Shading_Angle_Right 85
   ASC_Shading_Direction 106
   ASC_Shading_Min_Elevation 20
   ASC_Shading_Min_OutsideTemperature 108.5
   ASC_Shading_Mode always
   ASC_Shading_Pos 25
   ASC_Shading_StateChange_Cloudy 40000
   ASC_Shading_StateChange_Sunny 65000
   ASC_Shading_WaitingPeriod 900
   ASC_Time_Down_Early 16:30
   ASC_Time_Up_Early 06:30
   ASC_Time_Up_Late 08:45
   ASC_Time_Up_WE_Holiday 07:15
   ASC_Up     brightness
   ASC_Ventilate_Pos 20
   ASC_WindowRec_subType twostate
   IODev      d_ccu
   alias      Rollo Flur
   ccureadingfilter (LEVEL|INHIBIT|DIRECTION|WORKING)
   ccureadingname ^(.+\.)?DIRECTION$:+motor
   ccuscaleval LEVEL:0:1:0:100
   cmdIcon    up:fts_shutter_up stop:fts_shutter_manual down:fts_shutter_down
   controldatapoint 1.LEVEL
   event-on-change-reading .*
   eventMap   /datapoint 1.STOP true:stop/datapoint 1.LEVEL 0:down/datapoint 1.LEVEL 100:up/datapoint 1.INHIBIT 0:inhibit off/datapoint 1.INHIBIT 1:inhibit on/
   genericDeviceType blind
   group      Rolladen
   room       Flur,Homematic
   statedatapoint 1.LEVEL
   stripnumber 1
   subType    blindActuator
   substexcl  control|pct
   substitute LEVEL!#0-0:none,#100-100:open;DIRECTION!0:stop,1:up,2:down,3:undefined;WORKING!(0|false):no,(1|true):yes
   userattr   ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforDayOpen ASC_BlockingTime_beforNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_DriveUpMaxDuration ASC_Drive_Offset ASC_Drive_OffsetStart ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownTime_beforNightClose ASC_PrivacyDown_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_Exclude:on,off ASC_Shading_Angle_Left ASC_Shading_Angle_Right ASC_Shading_Direction ASC_Shading_Min_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_Cloudy ASC_Shading_StateChange_Sunny ASC_Shading_WaitingPeriod ASC_ShuttersPlace:window,terrace ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness ASC_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_subType:twostate,threestate
   webCmd     control:up:stop:down
   widgetOverride control:slider,0,10,100


ist, ebenso wie zwei andere Fenster, mit dem Shading out auf 0 gefahren. Das scheint zu passieren, wenn der Beschattungswinkel verlassen wird. Den an Rollos, die wegen fehlender Helligkeit ins Shading out gehen, wird normal die 100 angefahren.
Die Rollos waren beim Abschatten auch ganz normal auf 100.
Migriere derzeit zu Home Assistant