freakent / dbus-mqtt-devices

A driver for Victron VenusOS GX devices to support use of dbus-mqtt/flashmq-mqtt
MIT License
111 stars 24 forks source link

Dokumentation request #11

Closed Hofyyy closed 2 years ago

Hofyyy commented 2 years ago

Hello Martin,

first of all. Thanks for the great project. I try to connect a "Powerfox" Grid meter to my Victron management system. Until now I have a MQTT Topic which updates every 3 sec. the WATT number from all phases.

I am not sure if this questions are right in the Issue section, but i did not find a discussion page or something like that.

Now I have to ask stupid questions. But maybe this helps to enhance the documentation.

  1. clientId

    • On which MQTT server or client is this generated?
    • How can I find it? At the moment I use my own mosquito, Redflow and MQTT Explorer to try to generate exact the tuple your driver would need. So I play locally before pushing wrong data to your driver.
  2. And maybe you could also add a "grid" example?

  3. "devices/*" vs "device" In the documentation I am not sure which is the right MQTT root path. device"s" vs. device?

Hofyyy commented 2 years ago

Step by step its running :-)

60CAE4E6-7AFA-4EF5-97FF-79E59EC30441_1_105_c

stundenblume commented 2 years ago

Looks good! :)

Tele-Energy#Total and Tele-Energy#Current can be written to two topics .../Ac/xxx and .../Ac/L1/xxx I don't know if it's necessary but just in case it doesn't work as expected.

   ON Tele-Energy#Total DO Backlog Publish W/%mem1%/%mem5%/%mem2%/Ac/Energy/Forward {"value": %value%}; Publish W/%mem1%/%mem5%/%mem2%/Ac/L%mem3%/Energy/Forward {"value": %value%} ENDON
   ON Tele-Energy#Current DO Backlog Publish W/%mem1%/%mem5%/%mem2%/Ac/L%mem3%/Current {"value": %value%};  Publish W/%mem1%/%mem5%/%mem2%/Ac/Current {"value": %value%} ENDON
Hofyyy commented 2 years ago

I checked it. And I found that it should not be needed on L1. Also in the GGCX its looks good this way.

stundenblume commented 2 years ago

OK, nice to know. Power has to be written to both topics otherwise it hadn't worked for me.