Code Monkey home page Code Monkey logo

Comments (5)

freakent avatar freakent commented on August 23, 2024

Hi @mtucker502, I've not used grid myself. If this driver is registering your device correctly then it is doing its job, the interface you are using to publish data values is Victron's own dbus-mqtt interface.

Having said that, could the cause of your issue be the same as the one reported earlier this week, posting strings instead on numeric values? You have quotes around numeric values.

W/102c6b64af99/grid/1/Ac/L1/Voltage {"value": "120.2"}
W/102c6b64af99/grid/1/Ac/L2/Voltage {"value": "120.2"}
W/102c6b64af99/grid/1/Ac/L1/Current {"value": "11.98"}
W/102c6b64af99/grid/1/Ac/L2/Current {"value": "18.51"}

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

One more thing that looks a bit odd in your log file:

INFO:device_manager:**** Unregistering device ctsensor ****

Are you publishing data after the driver has stopped or been killed? I'm not sure how the dbus will behave if your device is not connected.

from dbus-mqtt-devices.

mtucker502 avatar mtucker502 commented on August 23, 2024

I had the pip install error earlier :)

This one though you were right on the money. I'm sending floats as strings. Is there a preferred method for decoding bytes from paho-mqtt into the proper type?

Currently I'm decoding as "utf-8" and for these sensor values then converting to floats. Example: sensor_value = float(message.payload.decode("UTF-8"))

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

I couldn't tell you. As far as I know you just need to ensure your numeric values are floats or integers.

from dbus-mqtt-devices.

freakent avatar freakent commented on August 23, 2024

As you found the problem was, can this issue be closed?

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.