FHEM Forum

FHEM => Automatisierung => Thema gestartet von: peble am 12 Februar 2016, 20:59:57

Titel: DOIF
Beitrag von: peble am 12 Februar 2016, 20:59:57
Guten Abend

ich möchte folgendes mit DOIF bauen

Schalter SA6_Kueche_Zpumpe wird eingeschalten
das soll die Zirkulationspumpe einschalten und den Funkgong Ton 014 abspielen lassen
wenn die Temperatur an Sensor Zirkulation_EG größer 40 Grad ansteigt
soll die Zirkulationspumpe ausgeschalten werden und der Funkgong soll Ton 013 abspielen

leider bekomm ich das nicht hin, evtl könnte mal jemand drüberschauen und mir sagen was ich falsch mache.

so sieht meine DEF aus:
([SA6_Kueche_Zpumpe] eq "on") (set Zirkulationspumpe on) (set Funk_Gong playTone 014) DOIF ([Zirkulation_EG T:]>40) (set Zirkulationspumpe off) (set Funk_Gong playTone 013)
Titel: Antw:DOIF
Beitrag von: dieda am 12 Februar 2016, 21:36:58
Zitat([SA6_Kueche_Zpumpe] eq "on") (set Zirkulationspumpe on) (set Funk_Gong playTone 014) DOIF ([Zirkulation_EG T:]>40) (set Zirkulationspumpe off) (set Funk_Gong playTone 013)

Dann sortieren wir mal:

Bedingungen

Das ganze liest sich in Textversion so:
DOIF ([deinAktor:Reading] eq "dein Reading") (dein Befehl) DOELSEIF ([deinAktor:Reading] eq "dein Reading") (dein Befehl) DOELSEIF ([deinAktor:Reading] eq "dein Reading") (dein Befehl).....

([SA6_Kueche_Zpumpe] eq "on") (set Zirkulationspumpe on) (set Funk_Gong playTone 014) DOELSEIF   ([Zirkulation_EG T:]>40) (set Zirkulationspumpe off) (set Funk_Gong playTone 013)

Am besten liest du dich dazu nochmal ein der Commandref in Deutsch dazu ein.

Titel: Antw:DOIF
Beitrag von: peble am 12 Februar 2016, 22:06:44
Danke für deine Hilfe
scheint so zu funktionieren
([SA6_Kueche_Zpumpe] eq "on") (set Zirkulationspumpe on)(set Funk_Gong playTone 014) DOELSEIF ([Zirkulation_EG:temperature]>40) (set Zirkulationspumpe off)(set Funk_Gong playTone 013)
Titel: Antw:DOIF
Beitrag von: dieda am 12 Februar 2016, 22:08:26
Vergiss das Einlesen zum Thema aber nicht ;)