Browse Source

MQTT topic was ignored

pull/757/head
Michele Blank (DM6JM) 2 years ago
parent
commit
4d5dbcb58a
  1. 3
      tools/rpi/hoymiles/outputs.py

3
tools/rpi/hoymiles/outputs.py

@ -210,7 +210,8 @@ class MqttOutputPlugin(OutputPluginFactory):
"""
data = response.__dict__()
topic = f'{data.get("inverter_name", "hoymiles")}/{data.get("inverter_ser", None)}'
#topic = f'{data.get("inverter_name", "hoymiles")}/{data.get("inverter_ser", None)}'
topic = params.get('topic', f'{data.get("inverter_name", "hoymiles")}/{data.get("inverter_ser", None)}')
if isinstance(response, StatusResponse):

Loading…
Cancel
Save