[Twiz O'Meter] MQTT data format questions
- maikt
- Autor
- Expert Boarder
- Beiträge: 225
- Dank erhalten: 209
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
In the attached archive:maikt schrieb: And would it be possible to only send values that are not empty?
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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
I found a bug which, occasionally, reset the publishing frequency when the Json payload was active.maikt schrieb:
Very strange. I have set 15s refresh interval and I get multiple refreshes per second. But 5s also didn't work. See ScreenshotDelvecchio schrieb: After some tests, it seems to me the publishing frequency is correct.
Give a look at the following screenshot
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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- maikt
- Autor
- Expert Boarder
- Beiträge: 225
- Dank erhalten: 209
Thanks, I will test/observe itDelvecchio 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).
Yes, your fix resolve this issue, thanks.Delvecchio schrieb: I think this was the cause of the problem you reported.
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
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
For the binary payload, symply add "ToM/" (or, if you prefer, the ClientID/) at the beginning of the topic out field.maikt schrieb: Is this also possible with the binary payload? And can the existing ClientID be used instead of "ToM"?
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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- maikt
- Autor
- Expert Boarder
- Beiträge: 225
- Dank erhalten: 209
It works perfect, thanks.Delvecchio schrieb: For the binary payload, symply add "ToM/" (or, if you prefer, the ClientID/) at the beginning of the topic out field.
Unfortunately this doesn't work for me. Do I need an update of the display firmware for this?Delvecchio schrieb: Fw for LCD display, with WiFi reconnect forced when tapping on tray icon (mqtt or wi-fi).
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.Delvecchio schrieb: Fw145 for ESP32, with empty value filtered from the Json payload.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
Yes, in the archive I included the LCD fw file for this reason.maikt schrieb: Unfortunately this doesn't work for me. Do I need an update of the display firmware for this?
No problem, I can restore the full payload (empty values included), as it was before.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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
Dieser Beitrag enthält einen Anhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Wolfe
- Expert Boarder
- Nur fliegen ist schöner !
- Beiträge: 255
- Dank erhalten: 159
That's cool !
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. 44+ tkm, seit 12/'23 mit 20 kWh Batterie
ToM seit 10/'23, einschl. PV-Überschußladung
DIY V2H DC-BiDi Charging
Dach- & Insel PV-Anlage: 13 / 2,9 kWp
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Delvecchio
- Pro Boarder
- Fabio java
- Beiträge: 577
- Dank erhalten: 904
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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- maikt
- Autor
- Expert Boarder
- Beiträge: 225
- Dank erhalten: 209
Bitte Anmelden oder Registrieren um der Konversation beizutreten.