volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
229 stars 81 forks source link

ORNO WE 516 wrong data to mqtt #274

Closed mkmt closed 1 year ago

mkmt commented 2 years ago

Running command:

mbmd run -a /dev/tty.usb-1.1.4 -d ORNO3P:1 --raw --comset 8E1 -r 60s -m tcp://127.0.0.1:1883

gives me right values in web interface but completely wrong in mqtt, like:

... homie/orno3p1-1/meter/voltagel1/$name L1 Voltage homie/orno3p1-1/meter/voltagel1/$unit V homie/orno3p1-1/meter/voltagel1/$datatype float homie/orno3p1-1/meter/currentl1/$name L1 Current homie/orno3p1-1/meter/currentl1/$unit A ...

Seems to be an error in mbmd code.

andig commented 2 years ago

What is wrong? Observed value vs actual value?

mkmt commented 2 years ago

@andig there is no value, instead of value I get what I think is name of variable, like in:

homie/orno3p1-1/meter/voltagel1/$name L1 Voltage

andig commented 2 years ago

Value should be in

homie/orno3p1-1/meter/voltagel1
mkmt commented 2 years ago

@andig yes it should but instead of value in mqtt I get this:

... homie/orno3p1-1/meter/voltagel1/$name L1 Voltage homie/orno3p1-1/meter/voltagel1/$unit V homie/orno3p1-1/meter/voltagel1/$datatype float ...

mkmt commented 2 years ago

Solved, just few first mqtt messages are like that, rest are normal.

By the way it is still a bug worth notiecing.

andig commented 1 year ago

Closing as its not clear if that's an issue on mbmd side or related to the meter.