mr-manuel / venus-os_dbus-mqtt-grid

This Venus OS driver gets the data from MQTT and displays it as grid, genset or ac load meter.
MIT License
59 stars 20 forks source link

FR: Add Tasmota format #2

Closed kupfermuetze closed 1 year ago

kupfermuetze commented 1 year ago

Currently I'm using to connect my tasmota smart-meter into the victron universe. As far as I understodd (at least this is how i do it currently) I run an additional service which transferes the topic from tasmota to the desired format.

It would be perfect if one could state each single topic in the config file; this would increase flexibility and reduces complexity (in the application).

mr-manuel commented 1 year ago

Hi,

what format does your Tasmota publish to MQTT?

Is it publishing all values to one topic or to multiple topics? Multiple topics is not ideal.

kupfermuetze commented 1 year ago

Hello (wow, that was a quick response),

I get a full set every 10s :

{
  "Time": "2023-04-23T19:19:32",
  "haushalt�": {
    "bezug": 17448.698566,
    "einspeisung": 9594.20715,
    "leistung_gesamt": 103.81,
    "leistung_L1": 276.8,
    "leistung_L2": -222.44,
    "leistung_L3": 46.47
  }
}

but to have a smooth operation i would like to have the values that are transmitted each second (approx.)

{"Time":"2023-04-23T19:19:32","haushalt�":{"leistung_L3":46.490000}}
{"Time":"2023-04-23T19:19:32","haushalt�":{"leistung_L2":-219.460000}}
{"Time":"2023-04-23T19:19:32","haushalt�":{"leistung_L1":272.820000}}
{"Time":"2023-04-23T19:19:32","haushalt�":{"leistung_gesamt":94.460000}}
{"Time":"2023-04-23T19:19:32","haushalt�":{"einspeisung":9594.207150}}
{"Time":"2023-04-23T19:19:32","haushalt�":{"bezug":17448.698566}}
mr-manuel commented 1 year ago

The values that are send every 10 seconds would be better, but as you said, it's to slow for a smooth operation.

Are the values that are send every second send to the same topic, so that the previous value is overridden?

kupfermuetze commented 1 year ago

Yes, The topic "Haushalt" in my case ist overwritten with each new value

mr-manuel commented 1 year ago

Ok. I will not implement this right now, since it would require a lot of work. Are you using Node-RED on the Venus OS Large to translate the values or how you do it?

If a lot of people are requesting it, I will think about it again. Please give the first comment a thumbs up for this.

kupfermuetze commented 1 year ago

OK, understood.

Currently I'm using my FHEM instance for the Translation. Your script runs in a Cerbo GX.

mr-manuel commented 1 year ago

If you want you can fork my repo and open a PR to add this format.

mr-manuel commented 1 year ago

Currently not planned.

randomname32 commented 1 year ago

@kupfermuetze I created a PR #8 for this issue. I am configured tasmota to publish directly to the mqtt server on venusOS

mr-manuel commented 1 year ago

The PR was merged and the README.md was updated.