Beiträge von Daniel1401

    Ok danke



    Das läuft jetzt mal soweit.


    Wenn ich jetzt einen SSD1306 OLED Display anschließen will und den Status ausgeben will.

    Wie muss ich jetzt den display konfigurieren?


    Die rule hab ich

    Displaymode 0 damit ich eigene Daten anzeigen kann

    Und wieviele zeilen bzw spalten hat dieser display?

    Oder wird das hier anders dargestellt?


    EDIT: Habs schon hinbekommen.


    Jetzt gehts noch an die Positionierung

    Thaha genau so funktioniert es:


    rule1 on power1#state=1 do rule2 1 endon on power1#state=0 do backlog rule2 0; power2 0 endon


    rule2 on DHT11#Temperature<20 do power2 1 endon on DHT11#Temperature>25 do power2 0 endon


    rule1 1


    Nun ist auch der Hauptschalter aktiv und macht das was er soll.


    DAAAAANKEEEEEE😍😍😍😍👍👍👍👍🙌🙌🙌🙌


    Nochmals zum Verständnis:

    Jetzt muss ich natürlich immer die gesamte Rule neu schreiben um die Temperaturen zu ändern.

    Jetzt könnte ich die beiden Zahlen durch var1 und var2 ersetzen.

    Diese sind allerdings nach einem Reboot "verloren".

    Würde ich es durch mem1 und mem2 ersetzten bleiben diese gespeichert.


    Bzw. zwei virtuelle Regler an denen Ein- und Ausschalttemperatur eingestellt werden können.

    Allerdings werde ich mich hierzu noch etwas mit der Programmierung auseinandersetzen müssen.

    Wäre also schon mit der mem1 zufrieden.

    Ok ich glaube ich verlaufe mich da gerade in etwas.

    Den Hauptschalter gibt es ja nur in Tasmota.

    Sprich mein Aufbau ist der DHT11, ein ESP8266 und ein Relais. (Aufbau ist nur für Testzwecke so und wird natürlich vor Verwendung sauber gebaut und in eine KU Box gepackt)

    ESP8266 ist von AZDelivery

    Was kommt in der Konsole wenn du switchmode1

    "Switchmode1":2


    Sprich:

    das Relais auf GPIO5 D1

    und den DHT11 auf GPIO4 D2

    gibt es wirklich.


    Alles andere gibt es nur in der Software.

    07:16:41.629 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":88,"Free":423,"Rules":"on power1#state=1 do rule2 1 endon on switch1#state=0 do backlog rule2 0; power2 0 endon"}}


    07:17:12.350 RSL: RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":83,"Free":428,"Rules":"on DHT11#Temperature<25 do power2 1 endon on DHT11#Temperature>26 do power2 0 endon"}}




    07:15:53.562 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:53.568 RSL: RESULT = {"POWER2":"ON"}

    07:15:53.570 RSL: POWER2 = ON

    07:15:54.093 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:54.098 RSL: RESULT = {"POWER2":"ON"}

    07:15:54.101 RSL: POWER2 = ON

    07:15:54.704 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:54.710 RSL: RESULT = {"POWER2":"ON"}

    07:15:54.713 RSL: POWER2 = ON

    07:15:55.294 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:55.299 RSL: RESULT = {"POWER2":"ON"}

    07:15:55.302 RSL: POWER2 = ON

    07:15:55.893 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:55.898 RSL: RESULT = {"POWER2":"ON"}

    07:15:55.901 RSL: POWER2 = ON

    07:15:56.487 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:56.492 RSL: RESULT = {"POWER2":"ON"}

    07:15:56.495 RSL: POWER2 = ON

    07:15:57.086 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:57.091 RSL: RESULT = {"POWER2":"ON"}

    07:15:57.094 RSL: POWER2 = ON

    07:15:57.697 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:57.703 RSL: RESULT = {"POWER2":"ON"}

    07:15:57.706 RSL: POWER2 = ON

    07:15:58.290 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:58.295 RSL: RESULT = {"POWER2":"ON"}

    07:15:58.298 RSL: POWER2 = ON

    07:15:58.916 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:58.921 RSL: RESULT = {"POWER2":"ON"}

    07:15:58.924 RSL: POWER2 = ON

    07:15:59.516 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:15:59.522 RSL: RESULT = {"POWER2":"ON"}

    07:15:59.524 RSL: POWER2 = ON

    07:16:00.119 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:00.125 RSL: RESULT = {"POWER2":"ON"}

    07:16:00.127 RSL: POWER2 = ON

    07:16:00.729 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:00.734 RSL: RESULT = {"POWER2":"ON"}

    07:16:00.737 RSL: POWER2 = ON

    07:16:01.304 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:01.310 RSL: RESULT = {"POWER2":"ON"}

    07:16:01.313 RSL: POWER2 = ON

    07:16:01.906 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:01.912 RSL: RESULT = {"POWER2":"ON"}

    07:16:01.914 RSL: POWER2 = ON

    07:16:02.508 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:02.513 RSL: RESULT = {"POWER2":"ON"}

    07:16:02.516 RSL: POWER2 = ON

    07:16:03.108 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:03.114 RSL: RESULT = {"POWER2":"ON"}

    07:16:03.116 RSL: POWER2 = ON

    07:16:03.791 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:03.797 RSL: RESULT = {"POWER2":"ON"}

    07:16:03.799 RSL: POWER2 = ON

    07:16:04.421 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:04.427 RSL: RESULT = {"POWER2":"ON"}

    07:16:04.429 RSL: POWER2 = ON

    07:16:04.976 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:04.982 RSL: RESULT = {"POWER2":"ON"}

    07:16:04.984 RSL: POWER2 = ON

    07:16:05.576 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:05.582 RSL: RESULT = {"POWER2":"ON"}

    07:16:05.584 RSL: POWER2 = ON

    07:16:06.274 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:06.280 RSL: RESULT = {"POWER2":"ON"}

    07:16:06.283 RSL: POWER2 = ON

    07:16:06.904 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:06.910 RSL: RESULT = {"POWER2":"ON"}

    07:16:06.912 RSL: POWER2 = ON

    07:16:07.506 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:07.511 RSL: RESULT = {"POWER2":"ON"}

    07:16:07.514 RSL: POWER2 = ON

    07:16:08.165 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:08.170 RSL: RESULT = {"POWER2":"ON"}

    07:16:08.173 RSL: POWER2 = ON

    07:16:08.862 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:08.868 RSL: RESULT = {"POWER2":"ON"}

    07:16:08.870 RSL: POWER2 = ON

    07:16:09.486 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:09.492 RSL: RESULT = {"POWER2":"ON"}

    07:16:09.494 RSL: POWER2 = ON

    07:16:10.088 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:10.094 RSL: RESULT = {"POWER2":"ON"}

    07:16:10.097 RSL: POWER2 = ON

    07:16:10.699 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:10.704 RSL: RESULT = {"POWER2":"ON"}

    07:16:10.707 RSL: POWER2 = ON

    07:16:11.321 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:11.326 RSL: RESULT = {"POWER2":"ON"}

    07:16:11.329 RSL: POWER2 = ON

    07:16:11.921 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:11.927 RSL: RESULT = {"POWER2":"ON"}

    07:16:11.929 RSL: POWER2 = ON

    07:16:12.521 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:12.526 RSL: RESULT = {"POWER2":"ON"}

    07:16:12.529 RSL: POWER2 = ON

    07:16:13.127 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:13.133 RSL: RESULT = {"POWER2":"ON"}

    07:16:13.136 RSL: POWER2 = ON

    07:16:13.675 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:13.681 RSL: RESULT = {"POWER2":"ON"}

    07:16:13.683 RSL: POWER2 = ON

    07:16:13.712 CMD: rule1

    07:16:13.719 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":88,"Free":423,"Rules":"on power1#state=1 do rule2 1 endon on switch1#state=0 do backlog rule2 0; power2 0 endon"}}

    07:16:14.295 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:14.301 RSL: RESULT = {"POWER2":"ON"}

    07:16:14.303 RSL: POWER2 = ON

    07:16:14.895 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:14.901 RSL: RESULT = {"POWER2":"ON"}

    07:16:14.903 RSL: POWER2 = ON

    07:16:15.498 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:15.504 RSL: RESULT = {"POWER2":"ON"}

    07:16:15.506 RSL: POWER2 = ON

    07:16:16.097 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:16.103 RSL: RESULT = {"POWER2":"ON"}

    07:16:16.105 RSL: POWER2 = ON

    07:16:16.685 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:16.691 RSL: RESULT = {"POWER2":"ON"}

    07:16:16.693 RSL: POWER2 = ON

    07:16:17.278 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:17.284 RSL: RESULT = {"POWER2":"ON"}

    07:16:17.286 RSL: POWER2 = ON

    07:16:17.878 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:17.884 RSL: RESULT = {"POWER2":"ON"}

    07:16:17.886 RSL: POWER2 = ON

    07:16:18.479 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:18.484 RSL: RESULT = {"POWER2":"ON"}

    07:16:18.486 RSL: POWER2 = ON

    07:16:19.157 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:19.162 RSL: RESULT = {"POWER2":"ON"}

    07:16:19.165 RSL: POWER2 = ON

    07:16:19.703 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:19.709 RSL: RESULT = {"POWER2":"ON"}

    07:16:19.711 RSL: POWER2 = ON

    07:16:20.292 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:20.298 RSL: RESULT = {"POWER2":"ON"}

    07:16:20.300 RSL: POWER2 = ON

    07:16:20.893 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:20.899 RSL: RESULT = {"POWER2":"ON"}

    07:16:20.901 RSL: POWER2 = ON

    07:16:21.493 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:21.499 RSL: RESULT = {"POWER2":"ON"}

    07:16:21.501 RSL: POWER2 = ON

    07:16:22.098 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:22.103 RSL: RESULT = {"POWER2":"ON"}

    07:16:22.106 RSL: POWER2 = ON

    07:16:22.708 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:22.714 RSL: RESULT = {"POWER2":"ON"}

    07:16:22.716 RSL: POWER2 = ON

    07:16:23.297 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:23.302 RSL: RESULT = {"POWER2":"ON"}

    07:16:23.305 RSL: POWER2 = ON

    07:16:23.898 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:23.903 RSL: RESULT = {"POWER2":"ON"}

    07:16:23.906 RSL: POWER2 = ON

    07:16:24.500 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:24.505 RSL: RESULT = {"POWER2":"ON"}

    07:16:24.508 RSL: POWER2 = ON

    07:16:25.100 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:25.105 RSL: RESULT = {"POWER2":"ON"}

    07:16:25.108 RSL: POWER2 = ON

    07:16:25.711 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:25.716 RSL: RESULT = {"POWER2":"ON"}

    07:16:25.718 RSL: POWER2 = ON

    07:16:25.888 CMD: rule2

    07:16:25.895 RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":83,"Free":428,"Rules":"on DHT11#Temperature<25 do power2 1 endon on DHT11#Temperature>26 do power2 0 endon"}}

    07:16:26.378 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:26.384 RSL: RESULT = {"POWER2":"ON"}

    07:16:26.386 RSL: POWER2 = ON

    07:16:26.982 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:26.988 RSL: RESULT = {"POWER2":"ON"}

    07:16:26.990 RSL: POWER2 = ON

    07:16:27.583 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:27.589 RSL: RESULT = {"POWER2":"ON"}

    07:16:27.591 RSL: POWER2 = ON

    07:16:28.182 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:28.188 RSL: RESULT = {"POWER2":"ON"}

    07:16:28.190 RSL: POWER2 = ON

    07:16:28.821 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:28.827 RSL: RESULT = {"POWER2":"ON"}

    07:16:28.829 RSL: POWER2 = ON

    07:16:29.421 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:29.426 RSL: RESULT = {"POWER2":"ON"}

    07:16:29.429 RSL: POWER2 = ON

    07:16:30.028 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:30.034 RSL: RESULT = {"POWER2":"ON"}

    07:16:30.036 RSL: POWER2 = ON

    07:16:30.574 RUL: DHT11#TEMPERATURE<25 performs "power2 1"

    07:16:30.579 RSL: RESULT = {"POWER2":"ON"}

    07:16:30.582 RSL: POWER2 = ON

    07:16:31.247 CMD: rule2 0

    07:16:31.254 RSL: RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":83,"Free":428,"Rules":"on DHT11#Temperature<25 do power2 1 endon on DHT11#Temperature>26 do power2 0 endon"}}

    07:16:41.622 CMD: rule1

    07:16:41.629 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":88,"Free":423,"Rules":"on power1#state=1 do rule2 1 endon on switch1#state=0 do backlog rule2 0; power2 0 endon"}}

    07:17:12.343 CMD: rule2

    07:17:12.350 RSL: RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":83,"Free":428,"Rules":"on DHT11#Temperature<25 do power2 1 endon on DHT11#Temperature>26 do power2 0 endon"}}

    Also das Schaltrelais, also welches physisch auch existiert, hängt auf GPIO5 also D1.

    GPIO2 D4 ist mein virtuelles Relais welches gemeinsam mit dem Switch auf GPIO 0 D3 geschalten wird. (So zumindest mein Verständnis/ meine Theorie)



    Die Darstellung stammt aus der Tasmota Control App

    Da können mehrere Tasmota Geräte auf einmal dargestellt werden.

    Ist grundsätzlich eine Zusammenfassung von Verlinkungen bzw. der einzelnen IP Adressen der Geräte.

    Hallo!


    Ich möchte mir mit einem ESP8266, einem DHT11 und einem Relais eine Steuerung für einen Heizlüfter bauen.

    Diese soll bei einer gewissen Temperatur ein- bzw. ausschalten.

    Ich habe es hinbekommen, dass bei 20° das Relais einschaltet und bei erreichen von 25° wieder aus. (Mit einer Rule)

    Allerdings muss ich nun jedesmal die rule aktivieren bzw. deaktivieren da die Heizung nur laufen soll, wenn ich anwesend bin.


    Ist es jetzt mit einer rule möglich, einen zusätzlichen (Haupt-) schalter mit einzubinden?


    Also nur wenn der Schalter ein ist funktioniert und schaltet die Steuerung.

    Ist der Schalter AUS, soll auch die Heizung immer aus sein.


    rule on power1#state=1 DHT11#Temperature<20 do power2 on endon on DHT11#Temperature>25 do power2 off endon



    Würde dies so funktionieren?


    Bild ist zur Veranschaulichung

    Heizungsschalter ist Hauptschalter und Status ist das Relais welches Schalter