Code Monkey home page Code Monkey logo

Comments (7)

freakent avatar freakent commented on August 23, 2024 1

Awesome. Thanks for sharing the solution.

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

When you register your device in the init, what deviceId do you get back in the device/pv001/DBus topic?
You have hardcoded 1 for the deviceId in the topic W/xxxxxxx/pvinverter/1/Ac/Power

var energie = items['Active_power']; actions.get('mqtt', 'mqtt:broker:VenusOS').publishMQTT('W/xxxxxxx/pvinverter/1/Ac/Power', '{"value": ' + energie + ' }');

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

I highly recommend you test your MQTT messages in MQTT-Explorer before implementing them in code.

from dbus-mqtt-devices.

Joeknx avatar Joeknx commented on August 23, 2024

I get 1 in device/pv001/DBus topic.

publishMQTT('W/xxxxxxx/pvinverter/1/Ac/Power', '{"value": 100}');`

for example shows 100 W in the device list from Venus os

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

The driver has no control on what gets sent by the GX device to VRM. When you are sending values to your device you are not using the driver at all.

Perhaps it is just a time lag? The GX sends data to VRM in batches, usually every 15 mins.

If in doubt, test the data you are sending by using MQTT-Explorer.

from dbus-mqtt-devices.

Joeknx avatar Joeknx commented on August 23, 2024

The PV Inverter needs all values to be displayed.
I tried only to forward "total power" of the Inverter.

With all values (L1, L2, L3 etc.) it showed up instantly in the Remote console und VRM Portal.

from dbus-mqtt-devices.

Joeknx avatar Joeknx commented on August 23, 2024

I also noticed, that sending the "total power" of the inverter to W/xxxxxxx/pvinverter/1/Ac/Power is still showing 0W in the Remote console und VRM Portal.
Sending the "total power" to W/xxxxxxxx/pvinverter/1/Ac/L1/Power works!

Venus OS seems to sum up the power from L1, L2 and L3 to show it in the Remote console und VRM Portal.

from dbus-mqtt-devices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.