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

Change MQTT sub topic #270

Open RichieB2B opened 2 years ago

RichieB2B commented 2 years ago

I have two ORNO3p meters, both are connected to different Raspberry Pi's running mbmd but logging to the same remote MQTT server. Using the default configuration both mbmd instances send messages to mbmd/orno3p1-1 which of course is confusing. It seems I can only change the root topic to make the distinction:

mbmd/orno3p1-1
mbmd2/orno3p1-1

But what I'd really want is to change the sub topic:

mbmd/ev-charger
mbmd/pv-panels

Is that currently possible?

In the future I might want to connect multiple ORNO3p meters to the same mbmd. Will that work, or will it have the same problem?

andig commented 2 years ago

Good question... seems we should allow a name setting per meter at least in the extended config to enable this. Would be happy to take a PR!

twam commented 6 months ago

Would also really love to be able to set this. There seems t be a name property in the config for devices, but I cannot see what it is used for.