seit update klappt folgendes szenario nicht meht

Begonnen von satprofi, 28 März 2018, 21:58:55

Vorheriges Thema - Nächstes Thema

Damian

Zitat von: satprofi am 01 April 2018, 08:30:00
weil bei erreichen des zustands in cmd1 ja cmd3 zuschlagen sollte. hat ja bisher auch funktioniert.

Gesendet mit Tapatalk

Wenn du auf eigene Events reagieren willst, dann hättest du aber das Attribut https://fhem.de/commandref_DE.html#DOIF_selftrigger setzen müssen.
Programmierte FHEM-Module: DOIF-FHEM, DOIF-Perl, DOIF-uiTable, THRESHOLD, FHEM-Befehl: IF

Ellert

Zitat von: satprofi am 31 März 2018, 18:30:21
...
verstehe immer noch nicht was die Internals sein sollen. Wo finde ich die?
In der Detailansicht und Deinem Listing unter der Überschrift Internals:

satprofi

Zitat von: Damian am 01 April 2018, 10:30:34
Wenn du auf eigene Events reagieren willst, dann hättest du aber das Attribut https://fhem.de/commandref_DE.html#DOIF_selftrigger setzen müssen.

ok, aber warum bis jetzt nie notwendig?

habe weiteres doif ohne "selbsttrigger", und das läuft auch sauber

Internals:
   DEF        (([Ueberschuss] >2200 and [Lader] eq "on" and [Xtender_Batt_A] <40) or ([Ladestrom:state] eq "38" and [Ueberschuss] >150)) ("python2 /usr/local/bin/40Amp.py")
DOELSEIF (([Ueberschuss] >2100 and [Lader] eq "on" and [Xtender_Batt_A] <38) or ([Ladestrom:state] eq "36" and [Ueberschuss] >150)) ("python2 /usr/local/bin/38Amp.py")
DOELSEIF (([Ueberschuss] >2000 and [Lader] eq "on" and [Xtender_Batt_A] <36) or ([Ladestrom:state] eq "34" and [Ueberschuss] >150)) ("python2 /usr/local/bin/36Amp.py")
DOELSEIF (([Ueberschuss] >1900 and [Lader] eq "on" and [Xtender_Batt_A] <34) or ([Ladestrom:state] eq "32" and [Ueberschuss] >150)) ("python2 /usr/local/bin/34Amp.py")
DOELSEIF (([Ueberschuss] >1800 and [Lader] eq "on" and [Xtender_Batt_A] <32) or ([Ladestrom:state] eq "30" and [Ueberschuss] >150)) ("python2 /usr/local/bin/32Amp.py")
DOELSEIF (([Ueberschuss] >1700 and [Lader] eq "on" and [Xtender_Batt_A] <30) or ([Ladestrom:state] eq "28" and [Ueberschuss] >150)) ("python2 /usr/local/bin/30Amp.py")
DOELSEIF (([Ueberschuss] >1600 and [Lader] eq "on" and [Xtender_Batt_A] <28) or ([Ladestrom:state] eq "26" and [Ueberschuss] >150)) ("python2 /usr/local/bin/28Amp.py")
DOELSEIF (([Ueberschuss] >1500 and [Lader] eq "on" and [Xtender_Batt_A] <26) or ([Ladestrom:state] eq "25" and [Ueberschuss] >150)) ("python2 /usr/local/bin/26Amp.py")
DOELSEIF (((($month >9 or $month <4) and ($mday==28) and ([DST] eq "Normal")) or [Ueberschuss] >1400 and [Lader] eq "on" and [Xtender_Batt_A] <25) or (([Ladestrom:state] eq "22" and [Ueberschuss] >150) or ([Lader_manuell] eq "on"))) ("python2 /usr/local/bin/25Amp.py")
DOELSEIF (([Ueberschuss] >1200 and [Lader] eq "on" and [Xtender_Batt_A] <22) or ([Ladestrom:state] eq "20" and [Ueberschuss] >150)) ("python2 /usr/local/bin/22Amp.py")
DOELSEIF (([Ueberschuss] >1100 and [Lader] eq "on" and [Xtender_Batt_A] <20) or ([Ladestrom:state] eq "18" and [Ueberschuss] >150)) ("python2 /usr/local/bin/20Amp.py")
DOELSEIF (([Ueberschuss] >1000 and [Lader] eq "on" and [Xtender_Batt_A] <18) or ([Ladestrom:state] eq "16" and [Ueberschuss] >150)) ("python2 /usr/local/bin/18Amp.py")
DOELSEIF (([Ueberschuss] >900 and [Lader] eq "on" and [Xtender_Batt_A] <16) or ([Ladestrom:state] eq "14" and [Ueberschuss] >150)) ("python2 /usr/local/bin/16Amp.py")
DOELSEIF (([Ueberschuss] >800 and [Lader] eq "on" and [Xtender_Batt_A] <14) or ([Ladestrom:state] eq "12" and [Ueberschuss] >150)) ("python2 /usr/local/bin/14Amp.py")
DOELSEIF (([Ueberschuss] >700 and [Lader] eq "on" and [Xtender_Batt_A] <12) or ([Ladestrom:state] eq "10" and [Ueberschuss] >150)) ("python2 /usr/local/bin/12Amp.py")
DOELSEIF (([Ueberschuss] >600 and [Lader] eq "on" and [Xtender_Batt_A] <10) or ([Ladestrom:state] eq "8" and [Ueberschuss] >150)) ("python2 /usr/local/bin/10Amp.py")
DOELSEIF (([Ueberschuss] >500 and [Lader] eq "on" and [Xtender_Batt_A] <8) or ([Ladestrom:state] eq "6" and [Ueberschuss] >150)) ("python2 /usr/local/bin/8Amp.py")
DOELSEIF (([Ueberschuss] >400 and [Lader] eq "on" and [Xtender_Batt_A] <6) or ([Ladestrom:state] eq "4" and [Ueberschuss] >150)) ("python2 /usr/local/bin/6Amp.py")
DOELSEIF (([Ueberschuss] >300 and [Lader] eq "on" and [Xtender_Batt_A] <4) or ([Ladestrom:state] eq "2" and [Ueberschuss] >150)) ("python2 /usr/local/bin/4Amp.py")
DOELSEIF ([Ueberschuss] >200 and [Lader] eq "on" and [Xtender_Batt_A] <=2) ("python2 /usr/local/bin/2Amp.py")
DOELSEIF ([Ladestrom:state] eq "40" and [Ueberschuss] <1) ("python2 /usr/local/bin/38Amp.py", setreading Wert_I A 38)
DOELSEIF ([Ladestrom:state] eq "38" and [Ueberschuss] <1) ("python2 /usr/local/bin/36Amp.py", setreading Wert_I A 36)
DOELSEIF ([Ladestrom:state] eq "36" and [Ueberschuss] <1) ("python2 /usr/local/bin/34Amp.py", setreading Wert_I A 34)
DOELSEIF ([Ladestrom:state] eq "34" and [Ueberschuss] <1) ("python2 /usr/local/bin/32Amp.py", setreading Wert_I A 32)
DOELSEIF ([Ladestrom:state] eq "32" and [Ueberschuss] <1) ("python2 /usr/local/bin/30Amp.py", setreading Wert_I A 30)
DOELSEIF ([Ladestrom:state] eq "30" and [Ueberschuss] <1) ("python2 /usr/local/bin/28Amp.py", setreading Wert_I A 28)
DOELSEIF ([Ladestrom:state] eq "28" and [Ueberschuss] <1) ("python2 /usr/local/bin/26Amp.py", setreading Wert_I A 26)
DOELSEIF ([Ladestrom:state] eq "26" and [Ueberschuss] <1) ("python2 /usr/local/bin/25Amp.py", setreading Wert_I A 25)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "25" and [Ueberschuss] <1)) ("python2 /usr/local/bin/22Amp.py", setreading Wert_I A 22)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "22" and [Ueberschuss] <1)) ("python2 /usr/local/bin/20Amp.py", setreading Wert_I A 20)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "20" and [Ueberschuss] <1)) ("python2 /usr/local/bin/18Amp.py", setreading Wert_I A 18)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "18" and [Ueberschuss] <1)) ("python2 /usr/local/bin/16Amp.py", setreading Wert_I A 16)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "16" and [Ueberschuss] <1)) ("python2 /usr/local/bin/14Amp.py", setreading Wert_I A 14)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "14" and [Ueberschuss] <1)) ("python2 /usr/local/bin/12Amp.py", setreading Wert_I A 12)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "12" and [Ueberschuss] <1)) ("python2 /usr/local/bin/10Amp.py", setreading Wert_I A 10)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "10" and [Ueberschuss] <1)) ("python2 /usr/local/bin/8Amp.py", setreading Wert_I A 8)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "8" and [Ueberschuss] <1)) ("python2 /usr/local/bin/6Amp.py", setreading Wert_I A 6)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "6" and [Ueberschuss] <1)) ("python2 /usr/local/bin/4Amp.py", setreading Wert_I A 4)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "4" and [Ueberschuss] <1 and [Lader] eq "on")) ("python2 /usr/local/bin/2Amp.py", setreading Wert_I A 2)
DOELSEIF (([18:00] and ($month >9 or $month <4) and ($mday==28) and ([DST] eq "Normal")) or ([Ueberschuss] <1 and (($mday!=28) or (($mday==28) and [DST] eq "Sommer")) and [Lader] eq "on" and [Lader_manuell] eq "off")) ("python2 /usr/local/bin/ladung_off.py")

Attributes:
   cmdState   40|38|36|34|32|30|28|26|25|22|20|18|16|14|12|10|8|6|4|2|38|36|34|32|30|28|26|25|22|20|18|16|14|12|10|8|6|4|2|off
   disable    0
   do         always
   room       DOIF
   verbose    5



gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram

Per

Du triggerst hier wahrscheinlich nicht auf die Änderung des DOIF, sondern auf "Ueberschuss". Der state des DOIF wird dabei nur abgefragt. Oder über das Phyton-Script gesetzt. Das ist für Fhem ein externes Setzen.
Nebenbei: statt des [DOIF-Namens] solltest du [$SELF] verwenden, dann erkennt man auch ohne List, welches der passende Wert ist.

satprofi

leider keine ahnung was $self sein soll.

Gesendet mit Tapatalk

gruss
-----------------------------------------------------------------------
beelink miniPC - Fhem 6.x CUL 868, FS20, NetIO230 CUL 433
HMLAN, HM-CC-RT-DN,Homematic Actoren,LD382A,Telegram

Per