Closed SirkoVZ closed 2 years ago
the reason is in: https://github.com/jblance/mpp-solar/blob/458086f5cf8fec4aec4954ea3fc41ea75c329c07/mppsolar/outputs/json_mqtt.py#L23 kwargs doesn't contain _mqtttopic It contains MqttBroker that contains _resultstopic, which holds the command line's mqtttopic instead. (It is the same for the other outputs, like influx_mqtt.py ...)
Ok thanks. Will get that fixed soon
On Fri, 19 Nov 2021, 11:53 pm Sirko, @.***> wrote:
the reason is in:
https://github.com/jblance/mpp-solar/blob/458086f5cf8fec4aec4954ea3fc41ea75c329c07/mppsolar/outputs/json_mqtt.py#L23 kwargs doesn't contain mqtt_topic It contains MqttBroker that contains results_topic, which holds the command line's mqtttopic instead. (It is the same for the other outputs, like influx_mqtt.py ...)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/183#issuecomment-973969536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNVZL6L4A2YOXUH23GTUMYUC5ANCNFSM5IJBQTVQ .
have added a fix (attempt) to version 0.9.03
tested, yes, looks good for json_mqtt now :-)
Hi,
I updated mpp-solar from something 0.7x to 0.9.02 using sudo pip install -e "git+https://github.com/jblance/mpp-solar.git#egg=mpp-solar"
and found that after that the --mqtttopic isn't used any more, example:
--mqtttopic SmartHome is ignored.
here is the debug and info output: