DOIF Beschattung aus Wetterdaten

Begonnen von skuggy, 11 Juni 2015, 19:29:44

Vorheriges Thema - Nächstes Thema

skuggy

Hier mal die list´s

Internals:
   DEF        ([?09:00-20:00] and [Wetter:fc1_high_c] > 23 and ([Wetter:condition] eq "sonnig" or [Wetter:condition] eq "teilweise wolkig"))
   NAME       di_wcondition
   NR         240
   NTFY_ORDER 50-di_wcondition
   STATE      initialized
   TYPE       DOIF
   Readings:
     2015-06-14 19:23:19   state           initialized
     2015-06-14 19:25:04   timer_1_c1      15.06.2015 09:00:00
     2015-06-14 19:25:04   timer_2_c1      14.06.2015 20:00:00
   Condition:
     0          DOIF_time($hash->{realtime}{0},$hash->{realtime}{1},$wday,$hms,"") and ReadingValDoIf('Wetter','fc1_high_c','') > 23 and (ReadingValDoIf('Wetter','condition','') eq "sonnig" or ReadingValDoIf('Wetter','condition','') eq "teilweise wolkig")
   Days:
   Devices:
     0           Wetter
     all         Wetter
   Do:
     0
   Helper:
     last_timer 2
     sleeptimer -1
   Itimer:
   Readings:
     0           Wetter:fc1_high_c Wetter:condition
     all         Wetter:fc1_high_c Wetter:condition
   Realtime:
     0          09:00:00
     1          20:00:00
   State:
   Time:
     0          09:00:00
     1          20:00:00
   Timecond:
     0          0
     1          0
   Timer:
     0          0
     1          0
   Timerfunc:
Attributes:
   cmdState   on|off


Internals:
   DEF        ([?Beschattung.Automatik] eq "on" and [di_wcondition:?on])(set WZ.Rollo.rechts 0)
DOELSEIF ([?Beschattung.Automatik] eq "on" and ([di_wcondition:?off] or [20:00]))(set WZ.Rollo.rechts 100)
   NAME       BeschattungOnOff
   NR         239
   NTFY_ORDER 50-BeschattungOnOff
   STATE      initialized
   TYPE       DOIF
   Readings:
     2015-06-14 19:23:41   state           initialized
     2015-06-14 19:25:04   timer_1_c2      14.06.2015 20:00:00
   Condition:
     0          InternalDoIf('Beschattung.Automatik','STATE','') eq "on" and EventDoIf('di_wcondition',$hash->{helper}{triggerDev},$hash->{helper}{triggerEvents},'on')
     1          InternalDoIf('Beschattung.Automatik','STATE','') eq "on" and (EventDoIf('di_wcondition',$hash->{helper}{triggerDev},$hash->{helper}{triggerEvents},'off') or DOIF_time_once($hash->{timer}{0},$wday,""))
   Days:
   Devices:
     0           di_wcondition
     1           di_wcondition
     all         di_wcondition
   Do:
     0          set WZ.Rollo.rechts 0
     1          set WZ.Rollo.rechts 100
   Helper:
     last_timer 1
     sleeptimer -1
   Itimer:
   Realtime:
     0          20:00:00
   State:
   Time:
     0          20:00:00
   Timecond:
     0          1
   Timer:
     0          0
   Timerfunc:
   Timers:
     1           0
   Trigger:
     all         di_wcondition
Attributes:
   group      DOIF
   room       Automatik


Ich finde den Fehler leider nicht.
...Gruß skuggy

FHEM 5.6 auf Raspberry Pi 2, HM-CFG-LAN, 8x HM-LC-Bl1PBU-FM, 5 x HM-CC-RT-DN, 1 x HM-LC-Sw1-Ba-PCB, 1 x HM-RC-4-2, 1 x JeeLink Clone, 10 x TX29DTH-IT, Fritzbox 7270

flurin

#16
di_wcondition state ist immer noch = initialized

mit:

set Wetter update


kannst du di_wcondition triggern, dann sollte di_wcondition state = on oder off sein.

Hast du die nueste Version?

version DOIF


sollte Folgendes anzeigen:

# $Id: 98_DOIF.pm 8432 2015-04-13 19:34:11Z damian-s $


Zudem bin ich nicht sicher, ob dies richtig ist

set WZ.Rollo.rechts 0


ich meine, es müsste so definiert werden:

set WZ.Rollo.rechts pct 0