Ankündigung

Einklappen
Keine Ankündigung bisher.

LBS mqtt (12981)

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    And of course, not long after posting this question, I found the JSON-Convert from NilsS, which solved my problem

    Kommentar


      glad you found it by yourself :-) ...

      Kommentar


        Hallo zusammen, schon länger hat hier keiner mehr Geschrieben.....
        Scheint also Problemlos zu laufen.
        Ich habe mich heute Abend mal an der Abfrage von Werten an meiner Open WB versucht.

        Ich komme mit den Ein und Ausgängen allerdings nicht ganz zurecht.
        Soviele Optionen.....
        Habe ich das Grundsätzlich richtig vertanden, dass man über den Baustein Werte Abfragen und zum Endgerät schicken kann ?
        Testweise habe ich probiert den SOC der Batterie abzufragen. Anbei ein Screenshot dazu.

        Frage dazu.
        Muss einer der Eingänge Angetriggert werden um eine Abfrage an der WB zu starten ?
        Gibt es irgendwo nochmal eine Allgemeine Hilfe dazu ?

        Vielen Dank
        Angehängte Dateien

        Kommentar


          Du darfst nicht den Experten Debugger nehmen, die Werte stimmen nicht.

          Bitte mit hsinsight debuggen oder aber dir den wert im qc anzeigen lassen …

          Kommentar


            Hallo zusammen,
            die ersten Werte von der Open WB erhalte ich.
            Wenn ich das grundsätzlich richtig verstanden habe, filtert man über das Topic die eigentliche Information die man erhalten möchte.
            Der Werte werden auch Aktualisiert. Allerdings nur bei Wertänderung in der Open WB. Der Ladestand des Autos verändert sich in der Ruhephase nicht. Wie kann ich den Zustand Abfragen bzw. den Baustein dazu bringen den Wert bei der Wallbox abzufragen. Über den Reset wird das nicht ausgelöst.







            Desweiteren würde ich gerne den Lademodus ändern können.

            Zwischenablage03.jpg Zwischenablage02.jpg

            Wie ist hier der richtige Weg um das an die Box zu übergeben ?
            Ich hoffe das ist so verständlich.



            Das Topic sieht so aus:

            SCHREIBEND:
            openWB/set/Lademodus
            # 0 = Sofort Laden (Direct), 1 = Min und PV, 2 = Nur PV, 3 = Stop, 4 = Standby
            openWB/set/lp1/DirectChargeSubMode
            # Setzt den Sofort Laden (Direct) Untermodus, Int 0 = Aus, 1 = kWh Laden, 2 = SoC Laden
            openWB/set/lp2/DirectChargeSubMode
            # Setzt den Sofort Laden (Direct) Untermodus, Int 0 = Aus, 1 = kWh Laden, 2 = SoC Laden
            openWB/set/lp1/DirectChargeSoc
            # Setzt den Sofort Laden (Direct) Untermodus SoC Wert bis zu dem geladen werden soll, Int 1 - 100
            openWB/set/lp1/DirectChargeSoc
            # Setzt den Sofort Laden (Direct) Untermodus SoC Wert bis zu dem geladen werden soll, Int 1 - 100

            Angehängte Dateien
            Zuletzt geändert von steveoutoe; 02.04.2022, 11:08.

            Kommentar


              Hello
              Same problem as Steve above- The values are not updated by anything other than Gira in my setup too.


              Can you please explain the logic behind outputs.
              What I thought was outputs are what STAT will write. But I find that output topics have no corelation with stat.

              I am confused here (or maybe google translate isnt translating German properly).
              If I send (for example)
              cmnd/tasmota_XXXX/POWER1 in Topic Input, (and publish ON) I expect the result of stat/result at the output(in Output Topic). But it doesnot seem so. So, if I switch the POWER1 OFF using some other visual, its not reflected in Gira (In short its not subscribed to the topic POWER1)

              Please explain my understanding.
              Zuletzt geändert von Nitin; 07.05.2022, 12:11.

              Kommentar


                steveoutoe : Du scheinst den Topic nicht richtig zu nutzen und und sendest ja auch gar nichts laut deiner Verdrahtung. Du musst ja in dem Moment wo du den Lademodus ändern willst auf das topic publishen ... das seh ich nirgends bei dir.

                Nitin : can you show a screenshot from you Logicsheet please.

                Kommentar


                  Hello Paul
                  Unrelated to my question(for benefit of others)
                  I had to do debug with insight and I found that nested replies were error-(and yes - it may be due to Google translate error as I see you have written nested doesnot work)

                  Here is my json
                  {"Time":"2022-05-09T06:58:14","ANALOG":{"A1":0,"A2":0},"AM2301":{"T emperature":30.4,"Humidity":47.3,"DewPoint":17.9}, "ESP32":{"Temperature":43.9},"PCF8574-1":{"D0":1,"D1":1,"D2":1,"D3":1,"D4":1,"D5":1," D6" :1,"D7":1},"PCF8574-2":{"D0":0,"D1":0,"D2":1,"D3":1,"D4":1,"D5":1," D6" :1,"D7":1},"TempUnit":"C"}

                  So, I ended up doing this -
                  Connected the Topic(text) to JSON_Covert(12739)- and used ANALOG to get the array A1:0 and A2:0 as outputs. Then I used further JSON_Parser(11087) and used A1 as key to get 0V (A1:0 would mean 0v)


                  I believe you have written all caveats(nesting) in German and google messed it up.
                  I had wished I will convert all my Tasmotas to MQTT using your module(KNX on Tasmota is not relaible after a certain number of devices on network) -But will wait till you add some more effort into this module to parse nested json.
                  Thank you for the module though(It works as you describe)


                  On my command issue(the text that I wrote above in previous reply), I dont understand how you are calculating the output.
                  Eg - I send a command cmnd/Tasmota/Swtch1 0, using your module, I receive a response 0 on output.(As expected) I assumed that this output is coming from Stat as your module will subscribe to it. So, if I switch on Switch1 using web interface of Tasmota, I should be getting a 1 on the output. But I dont and it remains 0.
                  I have attached the second screenshot(Pool Command).

                  Angehängte Dateien
                  You do not have permission to view this gallery.
                  This gallery has 1 photos.
                  Zuletzt geändert von Nitin; 09.05.2022, 10:40.

                  Kommentar


                    Hello Again
                    Looks like I am doing something wrong.
                    If I fire up one module of yours (mqtt) in one chart sheet, the copy of that module in different chart sheet doesnot work. I am doing this in other modules (i use modbus module multiple times to the same modbus server in different sheets)

                    To increase efficiency(as i fire up same module in different sheets to get the same data)

                    How do you get the (json output in Pauls MQTT) output that I get in sheet1 into another sheet without firing up the module again in the different sheet (The sheet I am refering to is the Logik sheet)

                    Kommentar


                      For Tasmota you know this ? : https://knx-user-forum.de/forum/öffe...-tasmota-14331

                      I don't use mqtt here, i have to test status updates ... but have very limited time atm

                      Output is calculated when its received. can you confirm that tasmota writes back the state correct to the topic?

                      Kommentar


                        Yes- I am aware of the Tasmota module but it doesnt fit my requirements (I want 8 in, 8out).
                        I am reading the MQTT messages using MQTT explorer. When I send(using your module)

                        cmnd/tasmota_B6CC74/Power2 1.0

                        I get

                        stat/tasmota_B6CC74/POWER2 ON



                        I am using Homeassistant MQTT broker, which does this translation of 1=on and 0=off for me.
                        I did try to convert 1 and 0 to ON OFF (Both inputs and outputs) but it doesnt make a difference.

                        Since you programmed this module, so I am asking how you are reading the cmnd result.

                        Or am doing everything wrong (as I am novice in mqtt). If I send a cmnd, the module isnt subscribing and is just sending pure command and is not looking at power2 status at all?
                        Zuletzt geändert von Nitin; 09.05.2022, 12:12.

                        Kommentar


                          you can use as many tasmota modules as you want ... but anyway...

                          I see the point now, the status is another topic, so in this case you need two modules one for sending an one for the status.
                          as i said, i don't use mqtt for myself.

                          There is no connection between cmnd topic an this stat topic. The Module is just for one Topic Read / Write

                          Kommentar


                            To add - I just tried this -
                            I sent a command to an Tasmota which is offline. The module sends the command to MQTT broker, and then writes 1 to the output.
                            This is after I wrote a cmnd to an offline device.

                            Kommentar


                              Yes sure ... cause the topic is then 1 when you wrote it. The status lays into the broker, not in the tasmota device.
                              The Tasmota Device is acting the same way, listing to the cmnd topic but writing to the stat topic.

                              You need two modules for one tasmota device.
                              The First one is just for writing, the second ist for getting the status.

                              Kommentar


                                Zitat von derPaul Beitrag anzeigen
                                you can use as many tasmota modules as you want ... but anyway...

                                I see the point now, the status is another topic, so in this case you need two modules one for sending an one for the status.
                                as i said, i don't use mqtt for myself.

                                There is no connection between cmnd topic an this stat topic. The Module is just for one Topic Read / Write
                                So as I suspected, when I send cmnd, the topic output is success/failure only.
                                To read if MQTT was successfully able to act on the client (tasmota in my case), I have to read and suscribe to tele(its working this way).

                                The module is NOT working in multiple sheets - Only first sheet works, MQTT sees the module as client. The subsequent sheets using the module just dont appear. (Is it some limitation of MQQ broker or something in HSFS).

                                I can mitigate this if somebody guides me how to use one output in multiple sheets.

                                edit - Its working if the devices are different. Its not working if I am using the same topic in multiple sheets.
                                (As I need to read status of 20objects, I am using 4 sheets with module subscribing to the same command (tele/sensor). The first sheet works, but other 3 dont.

                                The module is being used in different sheets- with different topics- they work.
                                Zuletzt geändert von Nitin; 09.05.2022, 12:47.

                                Kommentar

                                Lädt...
                                X