Mal wieder: Steuerung Zirkulationspumpe mit Tasmota rule und DS18B20

  • jo ok - Temperaturänderungen stoppen den Prozess - aber hier Anpassung

    rule1

    ' Laden aktuelle Temperatur in VAR1 bei Teleperiod 300 ( alle 5 Min)

    on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon

    'Änderungen sofort in VAR2

    on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2% endon

    rule2

    'Vergleich führt zum Einschalten und setzt Ausschaltzielzeit 20 Sek.

    on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3% endon

    on Rules#Timer=1 do Power1 0 endon

  • Hmm, schaltet immer noch ohne Temp Änderung, bzw duch das Einschalten der Pumpe steigt auch die Temp am Fühler:


    17:56:30.870 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.6"}

    17:56:30.899 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:30.918 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"55.900"}

    17:56:30.945 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:30.966 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:30.971 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:31.175 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:31.378 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:31.381 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:31.633 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:32.332 MQT: /smarthome/heizung/Zirkulation/tele/STATE = {"Time":"2023-06-01T17:56:32","Uptime":"0T00:00:28","UptimeSec":28,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"FRITZ!Box Fon WLAN 73902","BSSId":"08:96:D7:49:BF:74","Channel":1,"Mode":"11n","RSSI":72,"Signal":-64,"LinkCount":1,"Downtime":"0T00:00:03"}}

    17:56:32.347 MQT: /smarthome/heizung/Zirkulation/tele/SENSOR = {"Time":"2023-06-01T17:56:32","DS18B20-1":{"Id":"3C08F6489460","Temperature":49.4},"DS18B20-2":{"Id":"3CACF6484987","Temperature":70.7},"DS18B20-3":{"Id":"3CADF648550C","Temperature":55.7},"DS18B20-4":{"Id":"3CBAF6488C15","Temperature":54.5},"TempUnit":"C"}

    17:56:32.365 RUL: TELE-DS18B20-3#TEMPERATURE performs "Backlog VAR1 55.7"

    17:56:32.381 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"55.7"}

    17:56:33.194 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.7; ADD2 0.300"

    17:56:33.236 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.7"}

    17:56:33.265 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:33.284 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.000"}

    17:56:33.311 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:33.376 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:33.380 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:33.582 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:33.832 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:33.836 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:34.032 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:35.601 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.8; ADD2 0.300"

    17:56:35.641 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.8"}

    17:56:35.665 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:35.690 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.100"}

    17:56:35.718 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:35.739 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:35.743 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:35.992 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:36.240 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:36.244 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:36.491 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:38.011 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.9; ADD2 0.300"

    17:56:38.055 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.9"}

    17:56:38.080 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:38.101 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.200"}

    17:56:38.125 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

    17:56:38.150 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:38.153 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:38.405 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    17:56:38.655 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    17:56:38.658 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    17:56:38.861 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

  • Ich bin mir nicht sicher, ob der Vergleich richtig rum ist:

    on VAR2#State>VAR1

    Die aktuelle Temperatur muss höher sein, als die letzte, abgespeicherte (und um mem2 erhöhte) Temperatur. Dann soll die Pumpe anlaufen. Allerdings ist die Zeit zwischen den zwei Messungen zu kurz, damit der Wert auch höher ist. Das funktioniert mit der Teleperiod 300 nicht. Daher dachte ich an einen Timer dazwischen, um der Temperatur zeit zu geben, sich zu erhöhen.

  • Es ist alles richtig und läuft schon gut - der Start ist nur etwas holprig und die Einstellungen der mem-Temperaturen sind zu prüfen/anzupassen

    da die Temperatur nach dem Pumpenlauf nicht ausreichend schnell absinkt

    Für die Einstellung der Hysterese würde ich die zeitweise Verstellung von VAR1 um 2 Grad (mit Zeit in mem4) vorschlagen

    rule1

    ' Laden aktuelle Temperatur in VAR1 bei Teleperiod 300 ( alle 5 Min)

    on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon

    'Änderungen sofort in VAR2

    on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2% endon

    rule2

    'Vergleich führt zum Einschalten und setzt Ausschaltzielzeit 20 Sek. und Basiswert VAR1 zeitweise hoch.

    on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4%; ADD1 2 endon

    on Rules#Timer=1 do Power1 0 endon

    on Rules#Timer=2 do SUB1 2 endon


    • 17:56:32.365 RUL: TELE-DS18B20-3#TEMPERATURE performs "Backlog VAR1 55.7"

      17:56:32.381 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"55.7"}

      17:56:33.194 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.7; ADD2 0.300"

      17:56:33.236 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.7"}

      17:56:33.265 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20" - Vergleich löst nicht aus da VAR2 noch ohne ADD-mem

      17:56:33.284 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.000"}

      17:56:33.311 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

      17:56:33.376 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:33.380 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:33.582 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

      17:56:33.832 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:33.836 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:34.032 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} - 2. Auslösung! durch ADD auf VAR2 - kein Problem !

      17:56:35.601 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.8; ADD2 0.300"

      17:56:35.641 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.8"}

      17:56:35.665 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

      17:56:35.690 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.100"}

      17:56:35.718 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

      17:56:35.739 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:35.743 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:35.992 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

      17:56:36.240 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:36.244 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:36.491 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

      17:56:38.011 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 55.9; ADD2 0.300"

      17:56:38.055 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"55.9"}

      17:56:38.080 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

      17:56:38.101 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"56.200"}

      17:56:38.125 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20"

      17:56:38.150 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:38.153 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:38.405 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

      17:56:38.655 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

      17:56:38.658 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

      17:56:38.861 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    2 Mal editiert, zuletzt von karoCB (2. Juni 2023 um 12:39)

  • Hmm, schaltet immer noch auf Dauer:

    18:22:28.812 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    18:22:29.061 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:29.261 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:29.463 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    18:22:29.466 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    18:22:29.714 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:29.916 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:31.078 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 61.8; ADD2 20.000"

    18:22:31.117 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"61.8"}

    18:22:31.148 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20; RuleTimer2 20.000"

    18:22:31.168 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"81.800"}

    18:22:31.199 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20; RuleTimer2 20.000"

    18:22:31.217 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    18:22:31.222 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    18:22:31.422 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:31.648 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:31.896 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    18:22:31.901 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    18:22:32.148 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:32.398 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    18:22:33.463 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 61.8; ADD2 20.000"

  • 19:09:12.247 CMD: Rule1

    19:09:12.254 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":127,"Free":384,"Rules":"on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2% endon"}}

    19:

    19:10:25.510 CMD: Rule2

    19:10:25.518 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":184,"Free":327,"Rules":"on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4% endon on Rules#Timer=1 do backlog Power1 0; ADD1 2 endon on Rules#Timer=2 do backlog Power1 0; SUB1 2 endon"}}

    19:10:

    Rule2 ist im Moment aus.

    19:11:46.139 CMD: Mem1

    19:11:46.146 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Mem1":"0.000"}

    Mem1 wird im Moment nicht verwendet

    19:13:10.103 CMD: Mem2

    19:13:10.110 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Mem2":"20.000"}

    19:14:02.234 CMD: Mem3

    19:14:02.241 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Mem3":"20"}

    19:16:00.583 CMD: Backlog mem4

    19:16:00.614 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Mem4":"20.000"}


    Gruß

    Thorsten

  • Schaltet auf Dauer

    19:22:07.677 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.300"}

    19:22:07.708 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000"

    19:22:07.726 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:22:07.731 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:22:07.929 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:08.130 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:08.330 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:22:08.335 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:22:08.583 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:08.785 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:09.002 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.3; ADD2 0.200"

    19:22:10.037 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.3"}

    19:22:10.068 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000"

    19:22:10.087 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.500"}

    19:22:10.117 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000"

    19:22:10.138 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:22:10.143 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:22:10.342 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:10.593 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:10.841 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:22:10.846 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:22:11.098 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:22:11.349 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0

  • 1,) Rule 1 und 2 muss laufen.

    2.) falsche Programm geladen !

    karoCB
    2. Juni 2023 um 08:15
  • Beide rules neu eingespielt und gestartet


    19:50:36.713 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"228.600"}

    19:50:37.530 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 61.4; ADD2 0.200"

    19:50:37.570 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"61.4"}

    19:50:37.602 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:50:37.620 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"61.600"}

    19:50:37.652 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:50:37.671 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:50:37.675 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:50:37.922 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:50:38.125 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:50:38.376 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"230.600"}

    19:50:38.625 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:50:38.628 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:50:38.879 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:50:39.129 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:50:39.377 MQT: /smarthome/heizung/Zirkulation/stat/RESULT =

  • Neustart, power1 off, rule2 1

    19:54:15.311 CMD: Rule2 1

    19:54:15.319 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":160,"Free":351,"Rules":"on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4%; ADD1 2 endon on Rules#Timer=1 do Power1 0 endon on Rules#Timer=2 do SUB1 2 endon"}}

    19:54:16.851 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.2; ADD2 0.200"

    19:54:16.886 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.2"}

    19:54:16.919 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:16.939 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"62.400"}

    19:54:16.970 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:16.986 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:16.990 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:17.186 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:17.385 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:17.613 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"64.300"}

    19:54:17.846 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:17.852 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:18.075 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:18.324 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:18.529 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"66.300"}

    19:54:19.327 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.2; ADD2 0.200"

    19:54:19.369 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.2"}

    19:54:19.402 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:19.472 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"62.400"}

    19:54:19.503 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:19.522 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:19.527 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:19.729 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:19.928 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:20.177 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"68.300"}

    19:54:20.379 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:20.383 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:20.582 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:20.836 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:21.085 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"70.300"}

    19:54:21.749 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.1; ADD2 0.200"

    19:54:21.787 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.1"}

    19:54:21.819 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:21.839 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"62.300"}

    19:54:21.872 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:21.888 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:21.893 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:22.095 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:22.343 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:22.593 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"72.300"}

    19:54:22.830 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:22.835 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:23.052 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:23.251 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:23.504 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"74.300"}

    19:54:24.122 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.1; ADD2 0.200"

    19:54:24.158 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.1"}

    19:54:24.191 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:24.210 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"62.300"}

    19:54:24.243 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:24.260 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:24.264 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:24.468 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:24.719 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:24.970 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"76.300"}

    19:54:25.216 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:25.221 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:25.475 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:25.725 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:25.926 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"78.300"}

    19:54:26.541 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.1; ADD2 0.200"

    19:54:26.584 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.1"}

    19:54:26.617 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:26.634 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"62.300"}

    19:54:26.665 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 2"

    19:54:26.686 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:26.690 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    19:54:26.938 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:27.193 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    19:54:27.442 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"80.300"}

    19:54:27.681 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    19:54:27.685 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

  • 19:54:27.442 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"80.300"

    Hier ist es sicherlich ausgegangen - ?

    Da die Temperaturmessung auf 80 Grad steigt müssen wir die Hysterese für VAR1 auch um 30 Grad zur Sicherheit anheben !

    Um den Programmfehler 1/600 durch zyklisches Laden VAR1 kümmern wir uns später

    Also neues Programm:

    rule1

    ' Laden aktuelle Temperatur in VAR1 bei Teleperiod 300 ( alle 5 Min)

    on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon

    'Änderungen sofort in VAR2

    on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2% endon

    rule2

    'Vergleich führt zum Einschalten und setzt Ausschaltzielzeit in s und Basiswert VAR1 zeitweise hoch.

    on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4%; ADD1 30 endon

    on Rules#Timer=1 do Power1 0 endon

    on Rules#Timer=2 do SUB1 30 endon

  • Geht nicht aus

    20:08:27.976 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:27.996 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:28.000 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:28.201 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:28.451 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:28.651 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"450.900"}

    20:08:28.855 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:28.858 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:29.059 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:29.310 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:29.514 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"480.900"}

    20:08:30.332 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.8; ADD2 0.400"

    20:08:30.415 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.8"}

    20:08:30.446 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:30.470 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"63.200"}

    20:08:30.502 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:30.519 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:30.523 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:30.723 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:30.973 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:31.174 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"510.900"}

    20:08:31.227 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"OFF"}

    20:08:31.232 MQT: /smarthome/heizung/Zirkulation/stat/POWER = OFF

    20:08:31.386 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:31.390 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:31.614 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:31.864 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:32.115 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"540.900"}

    20:08:32.727 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.8; ADD2 0.400"

    20:08:32.766 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.8"}

    20:08:32.797 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:32.817 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"63.200"}

    20:08:32.849 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:32.866 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:32.871 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:33.118 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:33.369 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:33.572 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"570.900"}

    20:08:33.773 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:33.778 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:33.976 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:34.178 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:34.430 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"600.900"}

    20:08:35.226 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.8; ADD2 0.400"

    20:08:35.266 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.8"}

    20:08:35.298 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:35.316 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"63.200"}

    20:08:35.348 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:35.367 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:35.371 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:35.572 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:35.775 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:35.975 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"630.900"}

    20:08:36.174 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:36.179 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:36.377 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:36.628 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:36.830 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"660.900"}

    20:08:37.634 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.8; ADD2 0.400"

    20:08:37.672 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.8"}

    20:08:37.700 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:37.726 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"63.200"}

    20:08:37.755 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD1 30"

    20:08:37.775 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:37.779 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:37.979 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:38.182 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:38.433 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"690.900"}

    20:08:38.682 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    20:08:38.685 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    20:08:38.934 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:39.185 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    20:08:39.435 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add1":"720.900"}

    20:08:40.034 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 62.8; ADD2 0.400"

    20:08:40.075 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"62.8"}

    20:08:40.107 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000;

  • # System immer Booten zum Laden der Startdaten !

    rule1

    ' Laden aktuelle Temperatur in VAR1 bei Teleperiod 300 ( alle 5 Min) -für Start 100

    ON System#boot DO VAR1 100 ENDON

    on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon

    'Änderungen sofort in VAR2 und Komponenten bereitstellen

    'VAR2 Vergleich

    'VAR3 Basiswert dynamisch

    'VAR4 Hysteresestartwert dynamisch

    on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2%; VAR3 %value%; VAR4 %value% endon

    rule2

    'Vergleich führt zum Einschalten und setzt Ausschaltzielzeit in s und Basiswert VAR1 zeitweise hoch.

    on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4%; ADD4 30; VAR1 %VAR4%  endon

    on Rules#Timer=1 do Power1 0 endon

    on Rules#Timer=2 do VAR1 %VAR3% endon

  • immer noch an, Neustart durchgeführt

    21:49:38.654 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:38.854 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":17,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:39.103 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:39.352 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"87.800"}

    21:49:39.554 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"117.700"}

    21:49:39.667 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.0; ADD2 0.400; VAR3 58.0; VAR4 58.0"

    21:49:39.705 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:39.710 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:39.908 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:40.128 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:40.366 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"117.800"}

    21:49:40.616 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"117.700"}

    21:49:40.867 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:40.871 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:41.118 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:41.369 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:41.569 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"147.800"}

    21:49:41.771 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"57.8"}

    21:49:41.974 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:41.977 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:42.137 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.1; ADD2 0.400; VAR3 58.1; VAR4 58.1"

    21:49:42.175 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:42.426 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:42.678 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"177.800"}

    21:49:42.913 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"57.8"}

    21:49:43.115 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.0"}

    21:49:43.148 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 177.800"

    21:49:43.165 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.400"}

    21:49:43.199 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 177.800"

    21:49:43.216 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var3":"58.0"}

    21:49:43.419 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var4":"58.0"}

    21:49:43.654 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.1"}

    21:49:43.688 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 58.0"

    21:49:43.705 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.500"}

    21:49:43.740 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 58.0"

    21:49:43.758 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var3":"58.1"}

    21:49:44.007 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var4":"58.1"}

    21:49:44.209 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:44.213 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:44.431 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":17,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:44.542 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.2; ADD2 0.400; VAR3 58.2; VAR4 58.2"

    21:49:44.582 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:44.786 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"88.100"}

    21:49:44.989 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"177.800"}

    21:49:45.235 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:45.240 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:45.438 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:45.666 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:45.916 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"118.100"}

    21:49:46.122 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"177.800"}

    21:49:46.373 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:46.378 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:46.626 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:46.876 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:46.937 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.3; ADD2 0.400; VAR3 58.3; VAR4 58.3"

    21:49:46.975 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"148.100"}

    21:49:47.200 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"58.0"}

    21:49:47.450 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:47.453 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:47.668 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:47.918 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:48.169 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"178.100"}

    21:49:48.418 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"58.0"}

    21:49:48.620 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.2"}

    21:49:48.655 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 178.100"

    21:49:48.672 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.600"}

    21:49:48.705 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 178.100"

    21:49:48.724 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var3":"58.2"}

    21:49:48.975 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var4":"58.2"}

    21:49:49.175 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.3"}

    21:49:49.208 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 58.2"

    21:49:49.225 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add2":"58.700"}

    21:49:49.260 RUL: VAR2#STATE>VAR1 performs "backlog Power1 1; RuleTimer1 20.000; RuleTimer2 20.000; ADD4 30; VAR1 58.2"

    21:49:49.278 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var3":"58.3"}

    21:49:49.322 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.4; ADD2 0.400; VAR3 58.4; VAR4 58.4"

    21:49:49.341 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var4":"58.3"}

    21:49:49.547 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:49.551 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:49.799 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":18,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:50.000 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:50.250 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"88.300"}

    21:49:50.500 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"178.100"}

    21:49:50.701 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:50.706 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:50.905 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:51.156 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":20,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:51.406 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"118.300"}

    21:49:51.641 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"178.100"}

    21:49:51.753 RUL: DS18B20-3#TEMPERATURE performs "Backlog VAR2 58.6; ADD2 0.400; VAR3 58.6; VAR4 58.6"

    21:49:51.791 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:51.794 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:52.119 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:52.347 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:52.549 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"148.300"}

    21:49:52.799 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"58.2"}

    21:49:53.049 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"POWER":"ON"}

    21:49:53.054 MQT: /smarthome/heizung/Zirkulation/stat/POWER = ON

    21:49:53.253 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":20,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:53.456 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"T1":19,"T2":19,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}

    21:49:53.680 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Add4":"178.300"}

    21:49:53.931 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"58.2"}

    21:49:54.134 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var2":"58.4"}

  • Bei Rules gibt es immer 2 Probleme:

    - die Weitergabe von Rechenergebnissen und das Mehrfachtriggern auf VAR#State bei VAR-Änderungen auch in einer Zeile

    1:49:39.554 MQT: /smarthome/heizung/Zirkulation/stat/RESULT = {"Var1":"117.700"} sieht aber gut aus ( leider nicht das Log vom Start an)

    weiter mit Probieren mit Einstellung:

    mem2 5 (Grad)

    mem3 20

    mem4 150

    und dann mem2 absenken - 0.2 scheint mir eine Messfehlerschwankung zu sein

    Angepasst:

    rule1

    ' Laden aktuelle Temperatur in VAR1 bei Teleperiod 300 ( alle 5 Min) -für Start 100

    ON System#boot DO VAR1 100 ENDON

    on tele-DS18B20-3#Temperature do Backlog VAR1 %value% endon

    'Änderungen sofort in VAR2 und Komponenten bereitstellen

    'VAR2 Vergleich

    'VAR3 Basisrückstellwert dynamisch und Übergabetrigger für VAR1

    'VAR4 Hysteresestartwert dynamisch

    on DS18B20-3#Temperature do Backlog VAR2 %value%; ADD2 %mem2%; VAR3 %value%; VAR4 %value% endon

    rule2

    'Vergleich führt zum Einschalten und setzt Ausschaltzielzeit in s und Basiswert VAR1 zeitweise hoch.

    on VAR3#State do ADD4 30 endon

    on VAR2#State>VAR1 do backlog Power1 1; RuleTimer1 %mem3%; RuleTimer2 %mem4%; VAR1 %VAR4% endon

    on Rules#Timer=1 do Power1 0 endon

    on Rules#Timer=2 do VAR1 %VAR3% endon

    wenn es nichts wird, müssen wir den Skript das Mehrfachtriggern auf VAR2 abgewöhnen

    2 Mal editiert, zuletzt von karoCB (3. Juni 2023 um 09:14)