Is it possible to include the output from Wh to kWh in the config, since most people work with kwh anyway?
static const SensorConfig SENSOR_CONFIGS[] = {
{.pin = D2, // GPIO pin of the phototransistor
.name = "1", // Sensor name used in MQTT topic
.numeric_only = false, // If "true", only numeric values are being published via MQTT
.output_kwh = true,// If "true", output value in kWh <--- !!!!!!!NEW!!!!!!!!
.status_led_enabled = true, // Flash status LED (3 times) when an SML start sequence has been found
.status_led_inverted = true, // Some LEDs (like the ESP8266 builtin LED) require an inverted output signal
.status_led_pin = LED_BUILTIN, // GPIO pin used for sensor status LED
.interval = 0 // If greater than 0, messages are published every [interval] seconds
}};
That's why I'm currently using Tasmota and there smartmeter integration, but I would like to switch to this, since Tasmota only sends the data via MQTT every 10 seconds.

Is it possible to include the output from Wh to kWh in the config, since most people work with kwh anyway?
That's why I'm currently using Tasmota and there smartmeter integration, but I would like to switch to this, since Tasmota only sends the data via MQTT every 10 seconds.