[Twiz O'Meter] MQTT data format questions

  • maikt
  • maikts Avatar
  • Autor
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 202
  • Dank erhalten: 174
01 Jun 2023 10:51 #244624 von maikt
[Twiz O'Meter] MQTT data format questions
Yes that would be good. And would it be possible to only send values that are not empty? Basically, I think it's good if the TOM also sends values when the 12V battery is being charged.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
02 Jun 2023 22:30 #244645 von Delvecchio
[Twiz O'Meter] MQTT data format questions

maikt schrieb: And would it be possible to only send values that are not empty?

In the attached archive:
Fw145 for ESP32, with empty value filtered from the Json payload
Fw for LCD display, with WiFi reconnect forced when tapping on tray icon (mqtt or wi-fi).
Just for testing purposes, so no guaranty it will work...

Dieser Beitrag enthält einen Anhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.

Folgende Benutzer bedankten sich: maikt

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
04 Jun 2023 22:10 - 04 Jun 2023 22:11 #244691 von Delvecchio
[Twiz O'Meter] MQTT data format questions

maikt schrieb:

Delvecchio schrieb: After some tests, it seems to me the publishing frequency is correct.
Give a look at the following screenshot

Very strange. I have set 15s refresh interval and I get multiple refreshes per second. But 5s also didn't work. See Screenshot

I found a bug which, occasionally, reset the publishing frequency when the Json payload was active.
I think this was the cause of the problem you reported.
Enclosed the fw fix.

Dieser Beitrag enthält einen Anhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.

Letzte Änderung: 04 Jun 2023 22:11 von Delvecchio.
Folgende Benutzer bedankten sich: maikt, AndiEcker

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • maikt
  • maikts Avatar
  • Autor
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 202
  • Dank erhalten: 174
07 Jun 2023 23:37 #244772 von maikt
[Twiz O'Meter] MQTT data format questions

Delvecchio schrieb: Fw145 for ESP32, with empty value filtered from the Json payload
Fw for LCD display, with WiFi reconnect forced when tapping on tray icon (mqtt or wi-fi).

Thanks, I will test/observe it :)

Delvecchio schrieb: I think this was the cause of the problem you reported.

Yes, your fix resolve this issue, thanks.

Otherwise the json payload is now grouped, this is great. Is this also possible with the binary payload? And can the existing ClientID be used instead of "ToM"?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
08 Jun 2023 09:55 - 08 Jun 2023 09:58 #244785 von Delvecchio
[Twiz O'Meter] MQTT data format questions

maikt schrieb: Is this also possible with the binary payload? And can the existing ClientID be used instead of "ToM"?

For the binary payload, symply add "ToM/" (or, if you prefer, the ClientID/) at the beginning of the topic out field.
For sure it's possible to use ClientID (as suggested above), but for now not for the json payload, because its topic isn't configurable at the moment. May be in the future I'll add another field.
Letzte Änderung: 08 Jun 2023 09:58 von Delvecchio.
Folgende Benutzer bedankten sich: maikt

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
08 Jun 2023 09:57 - 08 Jun 2023 09:58 #244786 von Delvecchio
[Twiz O'Meter] MQTT data format questions
(doubled post)
Letzte Änderung: 08 Jun 2023 09:58 von Delvecchio.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • maikt
  • maikts Avatar
  • Autor
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 202
  • Dank erhalten: 174
08 Jun 2023 23:54 #244800 von maikt
[Twiz O'Meter] MQTT data format questions

Delvecchio schrieb: For the binary payload, symply add "ToM/" (or, if you prefer, the ClientID/) at the beginning of the topic out field.

It works perfect, thanks.

Delvecchio schrieb: Fw for LCD display, with WiFi reconnect forced when tapping on tray icon (mqtt or wi-fi).

Unfortunately this doesn't work for me. Do I need an update of the display firmware for this?

Delvecchio schrieb: Fw145 for ESP32, with empty value filtered from the Json payload.

It works, but now I have a problem with the new json payload, because in order to read + transform the data in openHAB, all the data elements must always be available. However, empty values is no longer sent. You changed that at my request, but now I've seen that unfortunately it doesn't work. Sorry.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
09 Jun 2023 09:33 - 09 Jun 2023 09:37 #244806 von Delvecchio
[Twiz O'Meter] MQTT data format questions

maikt schrieb: Unfortunately this doesn't work for me. Do I need an update of the display firmware for this?

Yes, in the archive I included the LCD fw file for this reason.

maikt schrieb: all the data elements must always be available. However, empty values is no longer sent. You changed that at my request, but now I've seen that unfortunately it doesn't work. Sorry.

No problem, I can restore the full payload (empty values included), as it was before.
Letzte Änderung: 09 Jun 2023 09:37 von Delvecchio.
Folgende Benutzer bedankten sich: maikt

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
09 Jun 2023 14:04 #244821 von Delvecchio
[Twiz O'Meter] MQTT data format questions
Full Json payload restored.

Dieser Beitrag enthält einen Anhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.

Folgende Benutzer bedankten sich: maikt

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Wolfe
  • Wolfes Avatar
  • Senior Boarder
  • Senior Boarder
  • Nur fliegen ist schöner !
  • Beiträge: 194
  • Dank erhalten: 70
13 Okt 2023 11:07 #250373 von Wolfe
[Twiz O'Meter] MQTT data format questions
Wie cool ist das denn !!:woohoo:

That's cool !:woohoo:



Readout from toM via Node-RED
Ausgelesen mit Node-RED

One simple question (perhaps I missed somewhere the info).
Eine einfache Frage (vielleicht habe ich die Info übersehen).

How is the string field wise arranged ?
Wie lautet die (Feld-)Zusammensetzung vom String ?

Cheers
Eckhard

Twizy Bj 2012, seit 08/'23: ca. 40+ tkm, seit 12/'23 mit 20 kWh Batterie
ToM seit 10/'23, einschl. PV-Überschußladung
Dach- & Insel PV-Anlage: 13 / 2,9 kWp
Anhänge:
Folgende Benutzer bedankten sich: Delvecchio

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Delvecchio
  • Delvecchios Avatar
  • Pro Boarder
  • Pro Boarder
  • Fabio java
  • Beiträge: 486
  • Dank erhalten: 686
13 Okt 2023 13:57 - 13 Okt 2023 14:00 #250376 von Delvecchio
[Twiz O'Meter] MQTT data format questions
The payload coming from "TopicOut" is in raw format, and it's mainly used by the android app to retrieve values.
It's easier to subscribe to ToM/TopicJson ad use its payload in json format. You need to enable this payload in the Wifi page of the webserver.
Letzte Änderung: 13 Okt 2023 14:00 von Delvecchio.
Folgende Benutzer bedankten sich: maikt, Wolfe

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • maikt
  • maikts Avatar
  • Autor
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 202
  • Dank erhalten: 174
14 Okt 2023 00:57 #250394 von maikt
[Twiz O'Meter] MQTT data format questions
Genau, das sieht dann so aus und müsste dann auch selbsterklärend sein:
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

   Become a Patron