[73_AutoShuttersControl.pm] Neues Modul zum automatisierten steuern von Rolläden

Begonnen von CoolTux, 30 Oktober 2018, 17:29:46

Vorheriges Thema - Nächstes Thema

Papaloewe


pc1246

Moin
Mein Velux (tahoma) hat sich nicht bewegt. ASC meint aber last drive waere night close gewesen!
Zeitlich haette das gut gepasst. Wie ueberede ich ASC jetzt dazu wieder oeben zu sein?
ASC pos reading stand auch nicht auf dim, wobei ich hier auch ein Problem zu sehen meine. der state ist dim0, ohne Leerzeichen.
Gruss Christoph
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly

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

CoolTux

Zitat von: pc1246 am 10 November 2018, 17:39:46
Moin
Mein Velux (tahoma) hat sich nicht bewegt. ASC meint aber last drive waere night close gewesen!
Zeitlich haette das gut gepasst. Wie ueberede ich ASC jetzt dazu wieder oeben zu sein?
ASC pos reading stand auch nicht auf dim, wobei ich hier auch ein Problem zu sehen meine. der state ist dim0, ohne Leerzeichen.
Gruss Christoph
Wie ist der TYPE von dem Device und was steht bei ASC_Pos_Reading
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

Papaloewe

Zitat von: CoolTux am 10 November 2018, 18:00:51
Wenn Du einen Fensterdrehgriffsensor hast und er gekippt an zeigt.
Ok, Ventilate sollte also mit einem twostate-Sensor auf open-closed oder mit einem threestate-Sensor auf tilted funktionieren.

Ich habe zwei HM-SEC-SC-2 an jedem zweiflügeligen Fenster und mir eine Structure daraus gebaut.Diese funktioniert rictig.
Damit hatte es schon mal mit dem Ventilate funktioniert. Jetzt nicht mehr.
Die andere Variante mit tilted kann ich mangels Masse leider nicht testen.

CoolTux

OK du hast also open und closed

Wenn es also abends ist und du das Fenster offen hast und der Rolladen nach Astro oder so fahren soll dann fährt er nicht in die ventilate Position? Oder wenn der Rolladen Abends unten ist und du das Fenster auf machst dann fährt der Rolladen nicht hoch in die Ventilate Position?
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

Papaloewe

ZitatOder wenn der Rolladen Abends unten ist und du das Fenster auf machst dann fährt der Rolladen nicht hoch in die Ventilate Position?

Genau das funktioniert seit 0.1.93 nicht mehr!
Die erste Variante habe ich nicht geprüft, da sie bei mir seltener vorkommt.

CoolTux

Ich brauche bitte ein list vom Rolladen, ASC Device und Fensterstructure
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

Papaloewe

Gerne doch:
Internals:
   CFGFN     
   MID        da39a3ee5e6b4b0d3255bfef95601890afd80709
   NAME       Rolladensteuerung
   NOTIFYDEV  global,Rolladensteuerung,EG.KU.Roll,EG.WZ.Roll,KG.KZ.Roll,OG.KZ.Roll,OG.SZ.Roll,OG.WC.Roll,EG.WZ.Roll,rr_Marvin,EG.KU.Roll,EG.WZ.Roll,KG.KZ.Roll,OG.KZ.Roll,OG.SZ.Roll,OG.WC.Roll,EG.WZ.Roll,rr_Marvin
   NR         637
   NTFY_ORDER 51-Rolladensteuerung
   STATE      created new drive timer
   TYPE       AutoShuttersControl
   VERSION    0.2.0.1
   Helper:
     DBLOG:
       EG.KU.Roll_PosValue:
         myDbLog:
           TIME       1541866508.03393
           VALUE      100
       EG.KU.Roll_lastPosValue:
         myDbLog:
           TIME       1541866474.10926
           VALUE      0
       EG.KU.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.1196
           VALUE      11.11.2018 - 08:00
       EG.WZ.Roll_lastPosValue:
         myDbLog:
           TIME       1541866474.17033
           VALUE      100
       EG.WZ.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.18081
           VALUE      11.11.2018 - 08:00
       KG.KZ.Roll_lastPosValue:
         myDbLog:
           TIME       1541866474.41927
           VALUE      100
       KG.KZ.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.42941
           VALUE      11.11.2018 - 09:30
       OG.KZ.Roll_PosValue:
         myDbLog:
           TIME       1541838637.03497
           VALUE      0
       OG.KZ.Roll_lastPosValue:
         myDbLog:
           TIME       1541838602.25087
           VALUE      100
       OG.KZ.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.44948
           VALUE      11.11.2018 - 09:30
       OG.SZ.Roll_PosValue:
         myDbLog:
           TIME       1541866493.02514
           VALUE      100
       OG.SZ.Roll_lastPosValue:
         myDbLog:
           TIME       1541866474.26488
           VALUE      0
       OG.SZ.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.27493
           VALUE      11.11.2018 - 08:30
       OG.WC.Roll_PosValue:
         myDbLog:
           TIME       1541866488.02849
           VALUE      100
       OG.WC.Roll_lastPosValue:
         myDbLog:
           TIME       1541866474.35893
           VALUE      0
       OG.WC.Roll_nextAstroTimeEvent:
         myDbLog:
           TIME       1541866474.36899
           VALUE      11.11.2018 - 08:00
       lockOut:
         myDbLog:
           TIME       1541867437.89002
           VALUE      on
       state:
         myDbLog:
           TIME       1541866474.45931
           VALUE      created new drive timer
       userAttrList:
         myDbLog:
           TIME       1541837617.99016
           VALUE      rolled out
   OLDREADINGS:
   READINGS:
     2018-11-10 17:15:08   EG.KU.Roll_PosValue 100
     2018-11-10 17:14:34   EG.KU.Roll_lastPosValue 0
     2018-11-10 17:14:34   EG.KU.Roll_nextAstroTimeEvent 11.11.2018 - 08:00
     2018-11-10 17:14:34   EG.WZ.Roll_lastPosValue 100
     2018-11-10 17:14:34   EG.WZ.Roll_nextAstroTimeEvent 11.11.2018 - 08:00
     2018-11-10 17:14:34   KG.KZ.Roll_lastPosValue 100
     2018-11-10 17:14:34   KG.KZ.Roll_nextAstroTimeEvent 11.11.2018 - 09:30
     2018-11-10 09:30:37   OG.KZ.Roll_PosValue 0
     2018-11-10 09:30:02   OG.KZ.Roll_lastPosValue 100
     2018-11-10 17:14:34   OG.KZ.Roll_nextAstroTimeEvent 11.11.2018 - 09:30
     2018-11-10 17:14:53   OG.SZ.Roll_PosValue 100
     2018-11-10 17:14:34   OG.SZ.Roll_lastPosValue 0
     2018-11-10 17:14:34   OG.SZ.Roll_nextAstroTimeEvent 11.11.2018 - 08:30
     2018-11-10 17:14:48   OG.WC.Roll_PosValue 100
     2018-11-10 17:14:34   OG.WC.Roll_lastPosValue 0
     2018-11-10 17:14:34   OG.WC.Roll_nextAstroTimeEvent 11.11.2018 - 08:00
     2018-11-10 17:30:37   lockOut         on
     2018-11-09 17:30:38   partyMode       on
     2018-11-10 09:13:37   room_ASC_Bad    OG.WC.Roll
     2018-11-10 09:13:37   room_ASC_Kueche EG.KU.Roll
     2018-11-10 09:13:37   room_ASC_Marvin OG.KZ.Roll
     2018-11-10 09:13:37   room_ASC_Patrick KG.KZ.Roll
     2018-11-10 09:13:37   room_ASC_Schlafen OG.SZ.Roll
     2018-11-10 09:13:37   room_ASC_Wohnen EG.WZ.Roll
     2018-11-08 22:33:52   selfDefense     off
     2018-11-10 17:14:34   state           created new drive timer
     2018-11-08 22:36:56   sunriseTimeWeHoliday on
     2018-11-10 09:13:37   userAttrList    rolled out
   helper:
     shuttersList:
       EG.KU.Roll
       EG.WZ.Roll
       KG.KZ.Roll
       OG.KZ.Roll
       OG.SZ.Roll
       OG.WC.Roll
   monitoredDevs:
     EG.KU.Roll:
     EG.WZ.Roll:
     KG.KZ.Roll:
     OG.KZ.Roll:
     OG.SZ.Roll:
     OG.WC.Roll:
     rr_Marvin:
       OG.KZ.Roll ASC_Roommate_Device
Attributes:
   ASC_autoAstroModeEvening HORIZON
   ASC_autoAstroModeEveningHorizon -4
   ASC_autoAstroModeMorning HORIZON
   ASC_autoAstroModeMorningHorizon -4
   ASC_autoShuttersControlComfort on
   ASC_autoShuttersControlEvening on
   ASC_autoShuttersControlMorning on
   ASC_freezeTemp 1
   ASC_temperatureReading temperature
   ASC_temperatureSensor WH1080
   ASC_twilightDevice Astro
   devStateIcon selfeDefense.terrace:fts_door_tilt created.new.drive.timer:clock .*asleep:scene_sleeping roommate.(awoken|home):user_available residents.(home|awoken):status_available manual:fts_shutter_manual selfeDefense.active:status_locked selfeDefense inactive:status_open day.open:scene_day night close:scene_night
   icon       fts_shutter_automatic
   room       ASC


Internals:
   CFGFN     
   NAME       OG.SZ.Roll
   NR         563
   STATE      closed
   TYPE       ROLLO
   stoptime   1541866493
   Helper:
     DBLOG:
       ASC_ShuttersLastDrive:
         myDbLog:
           TIME       1541866474.19988
           VALUE      night close
       command:
         myDbLog:
           TIME       1541866474.22596
           VALUE      pct-100
       desired_pct:
         myDbLog:
           TIME       1541866474.22596
           VALUE      100
       drive-type:
         myDbLog:
           TIME       1541866474.24765
           VALUE      modul
       last_drive:
         myDbLog:
           TIME       1541866474.2372
           VALUE      drive-down
       pct:
         myDbLog:
           TIME       1541866493.00967
           VALUE      100
       state:
         myDbLog:
           TIME       1541866493.05465
           VALUE      closed
   READINGS:
     2018-11-10 17:14:34   ASC_ShuttersLastDrive night close
     2018-11-10 17:14:34   ASC_Time_DriveDown 11.11.2018 - 17:14
     2018-11-10 17:14:34   ASC_Time_DriveUp 11.11.2018 - 08:30
     2018-11-10 17:14:34   command         pct-100
     2018-11-10 17:14:34   desired_pct     100
     2018-07-30 16:40:41   desired_position 0
     2018-11-10 17:14:34   drive-type      modul
     2018-11-10 17:14:34   last_drive      drive-down
     2018-11-10 17:14:53   pct             100
     2018-07-30 16:40:50   position        0
     2018-11-10 17:14:53   state           closed
Attributes:
   ASC        1
   ASC_Antifreeze off
   ASC_AutoAstroModeEvening none
   ASC_AutoAstroModeEveningHorizon none
   ASC_AutoAstroModeMorning none
   ASC_AutoAstroModeMorningHorizon none
   ASC_BrightnessMaxVal -1
   ASC_BrightnessMinVal -1
   ASC_Closed_Pos 100
   ASC_Down   astro
   ASC_Drive_Offset -1
   ASC_GuestRoom none
   ASC_Mode_Down always
   ASC_Mode_Up off
   ASC_Open_Pos 0
   ASC_Partymode off
   ASC_Pos_Reading pct
   ASC_Pos_after_ComfortOpen 20
   ASC_Roommate_Device none
   ASC_Roommate_Reading state
   ASC_Self_Defense_Exclude off
   ASC_Shading_Brightness_Reading brightness
   ASC_Shading_Brightness_Sensor none
   ASC_ShuttersPlace window
   ASC_Time_Down_Early 16:30
   ASC_Time_Down_Late 23:00
   ASC_Time_Up_Early 06:00
   ASC_Time_Up_Late 08:00
   ASC_Time_Up_WE_Holiday 08:30
   ASC_Up     astro
   ASC_Ventilate_Pos 90
   ASC_Ventilate_Window_Open on
   ASC_WindowRec st_OG.SZ.TFK
   ASC_WindowRec_subType twostate
   ASC_lock-out soft
   ASC_lock-outCmd none
   Rolladen   Roll
   Rolladen_map open:on closed:off
   autoStop   0
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down half:fts_shutter_50 stop:stop2
   commandDown set OG.SZ.Roll_down on
   commandStopDown set OG.SZ.Roll_down off
   commandStopUp set OG.SZ.Roll_up off
   commandUp  set OG.SZ.Roll_up on
   devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop pct-100:fts_shutter_100:open pct-90:fts_shutter_80:closed pct-80:fts_shutter_80:closed pct-70:fts_shutter_70:closed pct-60:fts_shutter_60:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_40:open pct-30:fts_shutter_30:open pct-20:fts_shutter_20:open pct-10:fts_shutter_10:open pct-0:fts_shutter_10:closed
   excessBottom 3
   excessTop  1
   group      Rolladen
   resetTime  0
   room       ASC,Schlafen
   secondsDown 15
   secondsUp  17
   switchTime 1
   type       normal
   userattr   ASC_Antifreeze:off,on 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_BrightnessMaxVal ASC_BrightnessMinVal ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Down:time,astro,brightness ASC_Drive_Offset ASC_GuestRoom:on,off 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_Pos_after_ComfortOpen:0,10,20,30,40,50,60,70,80,90,100 ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_Exclude:on,off ASC_Shading_Brightness_Reading ASC_Shading_Brightness_Sensor 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_WindowRec ASC_WindowRec_subType:twostate,threestate ASC_lock-out:soft,hard ASC_lock-outCmd:inhibit,blocked Rolladen Rolladen_map structexclude
   webCmd     open:closed:half:stop:pct


Internals:
   ATTR       SchlafzFenster
   CFGFN     
   CHANGEDCNT 23
   DEF        SchlafzFenster OG.SZ.TFK.li OG.SZ.TFK.re
   NAME       st_OG.SZ.TFK
   NR         630
   NTFY_ORDER 50-st_OG.SZ.TFK
   STATE      closed
   TYPE       structure
   Helper:
     DBLOG:
       state:
         myDbLog:
           TIME       1541869379.8319
           VALUE      closed
   READINGS:
     2018-11-10 18:02:59   LastDevice      OG.SZ.TFK.re
     2018-11-10 18:02:59   LastDevice_Abs  OG.SZ.TFK.re
     2018-11-10 18:02:59   state           closed
Attributes:
   alias      alle Fenster im Schlafzimmer
   clientstate_behavior relativeKnown
   clientstate_priority open closed
   devStateIcon closed:fts_window_2w@green open:fts_window_2w@red
   event-on-change-reading state
   group      Fenster
   room       Schlafen,_structures

CoolTux

Deine Fensterstruktur steht nicht in der NOTIFYDEV drin.


NOTIFYDEV  global,Rolladensteuerung,EG.KU.Roll,EG.WZ.Roll,KG.KZ.Roll,OG.KZ.Roll,OG.SZ.Roll,OG.WC.Roll,EG.WZ.Roll,rr_Marvin,EG.KU.Roll,EG.WZ.Roll,KG.KZ.Roll,OG.KZ.Roll,OG.SZ.Roll,OG.WC.Roll,EG.WZ.Roll,rr_Marvin


ASC_WindowRec st_OG.SZ.TFK
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

Papaloewe


CoolTux

Vielleicht mal verloren gegangen. Ist ja nun nicht so wild. Setzte einfach verbose auf 4 und mach mal ein get showNotifyDevInformation
Schaue ob er da drin steht. Wenn nicht mach einfach ein set createNewNotifyDev und schaue dann noch mal ob der drin steht.
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

Papaloewe

Prima, nach einem:
set Rolladensteuerung createNewNotifyDev
funktioniert es wieder  :)

Danke dir.

FunkOdyssey

Also. Meine Äußerung wird dir sicherlich ohne Logs & Lists nicht helfen.
Aber ich bin mir ziemlich sicher, dsss bei der Z-Wave-ASC-Logik noch irgendetwas nicht stimmt.
Die Devices (Pos_Reading) habe ich auf das Reading "position" konfiguriert und es sollen die Jalousien nur runtergefahren werden. Passiert aber nicht.

Ich sehe nur:

2018-11-10_16:42:26 zw_jal_diele ASC_ShuttersLastDrive: night close


Aber es findet keine Fahrt statt.

Ich liefere Logs&Co. nach, wenn ich einen besseren Zugriff habe.

CoolTux

Der set Befehl für ZWave steht mit dim fest im Code. Hier wird dann position nur als Reading für den aktuellen Status gewählt und dim als Set Befehl.
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