Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Park-Ampel

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Park-Ampel

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TH16 @Wal last edited by TH16

      @wal

      Vielen herzlichen Dank für Deine Mühe! 👍
      Da ich mit sowas noch nie zu tun hatte und ich, wie schon erwähnt, alles nur in Blockly mache - wie bekomme ich das Alles in den Wemos rein?
      Über die Konsole, jede Zeile einzeln, oder zusammen?
      Oder ganz anders...?
      Sorry das ich Dich nerve, aber könntest Du mir da noch einen Tipp geben?
      Ich möchte da auch ungern was kaputt machen.

      Wal 1 Reply Last reply Reply Quote 0
      • Wal
        Wal Developer @TH16 last edited by Wal

        @th16 ,
        du musst nur eine Tasmota Firmware mit Script flashen, danach den Script-Editor aufrufen und das Script einfügen.
        Den Editor findest du im Menüpunkt Konsole.
        Screenshot 2023-04-01 215326.png

        Evtl. mit einem anderen Wemos testen ?

        T 1 Reply Last reply Reply Quote 0
        • T
          TH16 @Wal last edited by TH16

          @wal
          "Tasmota Firmware mit Script flashen"? 😮
          Was ist "mit Script flashen"?
          Ich flashe immer mit dem ESP-Flasher. Der hat zwar unten auch eine Konsole drin, aber dort kann man nichts reinschreiben, nur auslesen. Zur Verwendung mit dem o.g. Sensor habe ich die "Tasmota-Sensor-Version" benutzt, so wie es von Tasmota vorgesehen ist.
          Bei Deiner Konsole sehe ich oben angehakt "Skript aktivieren". So einen Punkt gibt es bei mir nicht.
          Ist mir auch noch nie aufgefallen. Wie komme ich dahin? Wie kann ich das aktivieren?
          So sieht es bei mir aus:
          96bea049-ccb8-496b-9e33-1b374dcb24bd-image.png

          Wal 1 Reply Last reply Reply Quote 0
          • Wal
            Wal Developer @TH16 last edited by Wal

            @th16 sagte in Park-Ampel:

            Bei Deiner Konsole sehe ich oben angehakt "Skript aktivieren". So einen Punkt gibt es bei mir nicht.

            Weil du keine Firmware mit Scriptunterstützung geflasht hast.
            Hier findest du eine.

            Mit diesem Skript bekommst du jede Sekunde den Abstand und kannst dein Blockly weiter nutzen.
            Es muss nur der Datenpunkt im Blockly geändert werden, da das Abstandsobjekt einen anderen Namen hat.

            >D
            Weg=0.0
             
            >E
            Weg=SR04#Distance
             
            >S
            =>publish stat/%topic%/RESULT {"Abstand":%Weg%}
             
            >W
            Abstand:{m} %1Weg% cm
            
            T 2 Replies Last reply Reply Quote 1
            • T
              TH16 @Wal last edited by

              @wal
              Vielen Dank!
              Werde ich gleich alles mal ausprobieren.

              1 Reply Last reply Reply Quote 0
              • T
                TH16 @Wal last edited by

                @wal
                Ich habe mir die "tasmota-scripting.bin" runtergeladen, geflasht und Dein Script eingefügt - so weit so gut.
                Nun wollte ich den Sensor SR04 auswählen, doch den gibt es ja nur in einem Sensor.bin.
                f04a5791-6aaa-44a8-a0e8-7c4b0f018a2c-image.png
                Also bräuchte ich entweder eine scripting.bin wo der Sensor mit drin ist, oder eine sensor.bin wo ich auch ein Script einlesen kann.
                Doch wo hernehmen? Kannst Du mir da weiterhelfen?

                liv-in-sky Wal 2 Replies Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @TH16 last edited by

                  @th16 ich habe mal ein paar tests gemacht

                  dazu eine rule:

                  rule1 ON SR04#distance<100  DO  backlog publish tele/sonoff/Distance %value%; var1 %value%  ENDON
                  

                  ich habe aber festgestellt, das der sensor mit tasmota eher langsam reagiert - mit der rule wird unter 100 sofort gesendet - es dauert - so finde ich - aber immer noch zu lange - vorallem, wenn ich mir vorstelle, das die letzten centimeter beim einparken wirklich schnell kommen müssen

                  ich habe auch mit einem anderen sensor gemessen (VL53L0X) - der ist auch nicht schneller - ich gehe davon aus, dass es an tasmota liegt

                  siehst du hier - ich bewege mich zum sensor hin- schneller wird nicht gesendet:

                  script-vis30.gif

                  ich denke, du solltest es mal mit esphome versuchen - ist am anfang etwas kompliziert aber ich verwende mittlerweile lieber esphome für sensoren

                  T 1 Reply Last reply Reply Quote 1
                  • T
                    TH16 @liv-in-sky last edited by

                    @liv-in-sky
                    Vielen Dank für Deine Mühe.
                    Habe soeben mal Deine Rule eingesetzt und ausprobiert - ist wirklich langsam - eigentlich gefühlt keine Änderung zu vorher. 😞
                    Es wird wohl darauf hinauslaufen, dass es eine "Direktverbindung" innerhalb des Wemos mit den Anzeige-LEDs in Zusammenspiel mit dem Sensor gibt, so wie es @Wal schon oben in seinem Script dargelegt hat.
                    Doch dazu brauche ich erstmal eine andere "bin" die den Sensor enthält und auch die Möglichkeit bietet ein Skript einzulesen.

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • Wal
                      Wal Developer @TH16 last edited by

                      @th16 sagte in Park-Ampel:

                      eine sensor.bin wo ich auch ein Script einlesen kann

                      Ich erstelle eine, ein Augenblick.

                      1 Reply Last reply Reply Quote 0
                      • Wal
                        Wal Developer last edited by

                        @TH16 .
                        firmware.bin.gz

                        1 Reply Last reply Reply Quote 1
                        • liv-in-sky
                          liv-in-sky @TH16 last edited by

                          @th16
                          hast du in der rule auch dein topic richtig drin - mach mal lieber diese rule rein

                          rule1 ON SR04#distance<100  DO  backlog publish tele/%topic%/Distance %value%; var1 %value%  ENDON
                          
                          1 Reply Last reply Reply Quote 1
                          • T
                            TH16 @Wal last edited by

                            @wal

                            @wal sagte in Park-Ampel:

                            @th16 ,
                            habe gerade Lust, werde mal ein Script vorbereiten.

                            Edit: @th16 ,
                            mal was schnelles, ohne Gewähr da ich das nicht testen kann. 😉

                            >D
                            Weg=0.0
                             
                            >E
                            Weg=SR04#Distance
                            if (Weg<250 and Weg>130)
                            then =>power1 1
                            else =>power1 0
                            endif
                            if (Weg<150 and Weg>50)
                            then =>power2 1
                            else =>power2 0
                            endif
                            if (Weg<60 and Weg>35)
                            then =>power3 1
                            else =>power3 0
                            endif 
                            if (Weg<99 and Weg>1)
                            then =>publish stat/%topic%/RESULT {"AutoInGarage":"True"}
                            else =>publish stat/%topic%/RESULT {"AutoInGarage":"False"}
                            endif 
                            
                            >S
                            =>publish stat/%topic%/RESULT {"Abstand":%Weg%}
                            
                            >W
                            Abstand:{m} %1Weg% cm
                            

                            Die neue bin, die Du mir geschickt hast, hat super funktioniert.
                            Ich konnte den Sensor auswählen und auch Dein Skript, siehe oben, einspielen.
                            Nur leider tut sich bei den LEDs nichts.
                            Ich nehme mal an, dass es daran liegt, dass er den Sensor nun doppelt angezeigt bekommt, siehe hier:
                            cb95afa1-9bbd-4e55-9fac-17e760ed152f-image.png
                            Einmal als "SR04" mit einem Sensorwert und einmal als "Abstand" ohne Wert (aus Deinem Skript vermute ich).

                            Wal 1 Reply Last reply Reply Quote 0
                            • Wal
                              Wal Developer @TH16 last edited by Wal

                              @th16 ,
                              zeig nochmal einen Log bitte.

                              Edit: vorher bitte "Weblog 4" in die Konsole eingeben und den Log in Code Tags setzen, keine Bildschirmkopie.

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                TH16 @Wal last edited by

                                @wal

                                12:53:05.308 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:06.295 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:06.301 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:07.310 MQT: tele/Park-Ampel/STATE = {"Time":"2023-04-02T12:53:07","Uptime":"0T00:28:23","UptimeSec":1703,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"KON","BSSId":"CC:2D:21:55:C1:31","Channel":13,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:17"}}
                                12:53:07.320 MQT: tele/Park-Ampel/SENSOR = {"Time":"2023-04-02T12:53:07","SR04":{"Distance":87.3}}
                                12:53:07.325 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:07.331 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:08.265 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:08.271 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:09.310 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:09.317 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:10.280 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:10.288 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:11.278 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:11.284 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:12.267 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:12.273 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:13.278 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:13.285 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:14.267 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:14.275 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:15.312 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:15.318 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:16.283 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:16.289 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:17.277 MQT: tele/Park-Ampel/STATE = {"Time":"2023-04-02T12:53:17","Uptime":"0T00:28:33","UptimeSec":1713,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"KON","BSSId":"CC:2D:21:55:C1:31","Channel":13,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:17"}}
                                12:53:17.287 MQT: tele/Park-Ampel/SENSOR = {"Time":"2023-04-02T12:53:17","SR04":{"Distance":87.3}}
                                12:53:17.291 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:17.298 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:18.281 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:18.288 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:19.296 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:19.303 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:20.287 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:20.293 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:21.277 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:21.283 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:22.296 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:22.302 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:23.286 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:23.294 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:24.305 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:24.312 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:25.302 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:25.308 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:26.289 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:26.295 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:27.331 MQT: tele/Park-Ampel/STATE = {"Time":"2023-04-02T12:53:27","Uptime":"0T00:28:43","UptimeSec":1723,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":29,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"KON","BSSId":"CC:2D:21:55:C1:31","Channel":13,"Mode":"11n","RSSI":88,"Signal":-56,"LinkCount":1,"Downtime":"0T00:00:17"}}
                                12:53:27.340 MQT: tele/Park-Ampel/SENSOR = {"Time":"2023-04-02T12:53:27","SR04":{"Distance":87.5}}
                                12:53:27.345 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:27.352 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:28.289 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:28.296 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:29.279 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:29.285 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:30.301 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:30.307 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:31.292 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:31.298 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:32.308 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:32.314 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:33.300 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:33.306 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:53:34.292 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:53:34.298 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:07.285 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:07.291 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:08.274 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:08.281 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:09.267 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:09.273 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:10.304 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:10.311 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:11.296 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:11.302 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:12.287 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:12.293 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:13.276 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:13.283 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:14.269 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:14.275 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:15.312 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:15.318 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:16.304 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:16.310 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:17.302 MQT: tele/Park-Ampel/STATE = {"Time":"2023-04-02T12:54:17","Uptime":"0T00:29:33","UptimeSec":1773,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"KON","BSSId":"CC:2D:21:55:C1:31","Channel":13,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:17"}}
                                12:54:17.312 MQT: tele/Park-Ampel/SENSOR = {"Time":"2023-04-02T12:54:17","SR04":{"Distance":87.4}}
                                12:54:17.317 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:17.324 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:18.305 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:18.312 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:19.297 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:19.304 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:20.291 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:20.297 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:21.281 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:21.287 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:22.270 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:22.276 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:23.310 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:23.316 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:23.447 CMD: Weblog 4
                                12:54:23.454 MQT: stat/Park-Ampel/RESULT = {"WebLog":4}
                                12:54:23.458 Script: performs "power1 0"
                                12:54:23.460 SRC: Rule
                                12:54:23.463 CMD: Grp 0, Cmd 'POWER', Idx 1, Len 1, Pld 0, Data '0'
                                12:54:23.471 MQT: stat/Park-Ampel/RESULT = {"POWER1":"OFF"}
                                12:54:23.476 MQT: stat/Park-Ampel/POWER1 = OFF
                                12:54:23.478 Script: performs "power2 0"
                                12:54:23.480 SRC: Rule
                                12:54:23.483 CMD: Grp 0, Cmd 'POWER', Idx 2, Len 1, Pld 0, Data '0'
                                12:54:23.491 MQT: stat/Park-Ampel/RESULT = {"POWER2":"OFF"}
                                12:54:23.497 MQT: stat/Park-Ampel/POWER2 = OFF
                                12:54:23.500 Script: performs "power3 0"
                                12:54:23.502 SRC: Rule
                                12:54:23.505 CMD: Grp 0, Cmd 'POWER', Idx 3, Len 1, Pld 0, Data '0'
                                12:54:23.513 MQT: stat/Park-Ampel/RESULT = {"POWER3":"OFF"}
                                12:54:23.518 MQT: stat/Park-Ampel/POWER3 = OFF
                                12:54:23.521 Script: performs "publish stat/Park-Ampel/RESULT {"AutoInGarage":"False"}"
                                12:54:23.522 SRC: Rule
                                12:54:23.525 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 47, Pld -99, Data 'stat/Park-Ampel/RESULT {"AutoInGarage":"False"}'
                                12:54:23.530 MQT: stat/Park-Ampel/RESULT = {"AutoInGarage":"False"}
                                12:54:23.873 CFG: Saved to flash at F6, Count 22, Bytes 4096
                                12:54:24.285 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:24.287 SRC: Rule
                                12:54:24.290 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:24.296 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:25.281 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:25.283 SRC: Rule
                                12:54:25.285 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:25.291 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:26.295 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:26.297 SRC: Rule
                                12:54:26.300 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:26.305 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:27.296 MQT: tele/Park-Ampel/STATE = {"Time":"2023-04-02T12:54:27","Uptime":"0T00:29:43","UptimeSec":1783,"Heap":18,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":23,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"KON","BSSId":"CC:2D:21:55:C1:31","Channel":13,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:17"}}
                                12:54:27.305 MQT: tele/Park-Ampel/SENSOR = {"Time":"2023-04-02T12:54:27","SR04":{"Distance":87.4}}
                                12:54:27.310 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:27.312 SRC: Rule
                                12:54:27.315 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:27.321 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:28.304 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:28.306 SRC: Rule
                                12:54:28.308 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:28.315 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:29.270 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:29.273 SRC: Rule
                                12:54:29.276 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:29.281 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:30.265 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:30.267 SRC: Rule
                                12:54:30.270 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:30.275 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:31.292 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:31.294 SRC: Rule
                                12:54:31.298 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:31.302 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:32.286 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:32.288 SRC: Rule
                                12:54:32.291 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:32.296 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                12:54:33.280 Script: performs "publish stat/Park-Ampel/RESULT {"Abstand":0.00}"
                                12:54:33.283 SRC: Rule
                                12:54:33.286 CMD: Grp 0, Cmd 'PUBLISH', Idx 1, Len 39, Pld -99, Data 'stat/Park-Ampel/RESULT {"Abstand":0.00}'
                                12:54:33.291 MQT: stat/Park-Ampel/RESULT = {"Abstand":0.00}
                                
                                Wal 1 Reply Last reply Reply Quote 0
                                • Wal
                                  Wal Developer @TH16 last edited by

                                  @th16 ,
                                  er ließt den Sensor nicht ein,

                                  Weg=SR04#Distance
                                  

                                  obwohl die Abfrage stimmt, ich kann leider nicht testen da ich den Sensor nicht habe.
                                  Ich kann da erstmal nicht weiter helfen.

                                  Flash nochmal die Sensor mit Rules und teste mal die Rule von @liv-in-sky.

                                  T 1 Reply Last reply Reply Quote 1
                                  • Wal
                                    Wal Developer @TH16 last edited by Wal

                                    @th16 ,
                                    so wie ich die Doku in Tasmota lese, wird nur alle Teleperiod ein Wert gesendet.
                                    D.h. Tasmota ist nicht für deine Applikation geeignet.
                                    Du wirst dir so etwas anschauen müssen oder wie @liv-in-sky bemerkte evtl. ESPEasy

                                    T 1 Reply Last reply Reply Quote 1
                                    • T
                                      TT-Tom @Wal last edited by

                                      @wal
                                      Sowas in Richtung Arduino hatte ich auch im Sinn aber ohne Sensor schwer zu testen.

                                      1 Reply Last reply Reply Quote 1
                                      • T
                                        TH16 @Wal last edited by

                                        @wal

                                        @wal sagte in Park-Ampel:

                                        @th16 ,
                                        so wie ich die Doku in Tasmota lese, wird nur alle Teleperiod ein Wert gesendet.
                                        D.h. Tasmota ist nicht für deine Applikation geeignet.
                                        Du wirst dir so etwas anschauen müssen oder wie @liv-in-sky bemerkte evtl. ESPEasy

                                        Das ist natürlich Schade, dass es so wie gedacht nicht funktioniert.
                                        Also werde ich mich wohl oder übel mal mit ESPHome/ESPEasy beschäftigen müssen wie von @liv-in-sky empfohlen.

                                        Euch allen, @Wal , @liv-in-sky , @TT-Tom , @David-G trotzdem einen herzlichen Dank für Eure Mühen bei diesem verzwickten Thema.
                                        Einen schönen Sonntag noch... 👍

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @TH16 last edited by

                                          @th16

                                          hier mal das ganze mit esphome - update im sekunden takt

                                          das ganze gehört aber noch verbessert: zb. die updatezeit zu ändern, wenn man weiter weg ist - sonst sendet der den ganzen tag oder auch; die updatezeit zu ändern, wenn sich der abstand nur minimal ändert (also bei stilstand) - aber das programmieren in esphome habe ich noch nie gemacht 😞

                                          script-vis31.gif

                                          T 1 Reply Last reply Reply Quote 1
                                          • T
                                            TH16 @liv-in-sky last edited by

                                            @liv-in-sky
                                            Also das nenne ich mal schnell!
                                            Ich denke mal, dass dies schon ausreichend sein sollte.
                                            Und das Ganze ist mit ESPHome gemacht worden?
                                            Also bräuchte ich "nur" den Wemos mit ESPHome zu flashen und mit ioBroker zu verbinden und MQTT auswerten?
                                            Da ich mit ESPHome überhaupt noch nie was zu tun hatte, muss ich mich da erstmal einarbeiten.
                                            Aber wenn ich das so sehe, wie schnell der updatet, lohnt sich der Aufwand auf jeden fall. 👍
                                            So eine 10s-Sperre für MQTT-Übertragungen wie in Tasmota gibt es wohl bei ESPHome nicht?

                                            Wal liv-in-sky 3 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            935
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            55
                                            2702
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo