Plugin to HomeBridge optimized for work with Itead Sonoff POW hardware with firmware Sonoff-Tasmota via MQTT with log data to file. Partially emulate Elgato Eve Energy. Measure used power and write data to log text files.
in my setup with many devices I use nested topics like home/kitchen/fridge, but the plugin doesn't create logfiles anymore. As a quick workaround I modified line 57 of index.js from
this.filename = this.topicStatusGet.split("/")[1];
to
this.filename = this.name;
Now logging seem to work, but I don't know whether there are any impacts on this or if there is a better solution for this. Of course the device names shouldn't contain special characters, spaces and similar.
I also recommend changing the parameter "patchToSave" to "pathToSave", it looks like a typo.
Hello,
in my setup with many devices I use nested topics like home/kitchen/fridge, but the plugin doesn't create logfiles anymore. As a quick workaround I modified line 57 of index.js from this.filename = this.topicStatusGet.split("/")[1]; to this.filename = this.name; Now logging seem to work, but I don't know whether there are any impacts on this or if there is a better solution for this. Of course the device names shouldn't contain special characters, spaces and similar.
I also recommend changing the parameter "patchToSave" to "pathToSave", it looks like a typo.
Cheers, Dirk