mbmd icon indicating copy to clipboard operation
mbmd copied to clipboard

ORNO WE 516 wrong data to mqtt

Open mkmt opened this issue 1 year ago • 5 comments

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.

mkmt avatar Sep 01 '22 20:09 mkmt

What is wrong? Observed value vs actual value?

andig avatar Sep 02 '22 09:09 andig

@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

mkmt avatar Sep 02 '22 13:09 mkmt

Value should be in

homie/orno3p1-1/meter/voltagel1

andig avatar Sep 02 '22 13:09 andig

@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 avatar Sep 02 '22 14:09 mkmt

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

By the way it is still a bug worth notiecing.

mkmt avatar Sep 02 '22 18:09 mkmt