From c9c98a8ce3e765a7fcdf3d5d5de666189e64bfe0 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 18 Jun 2020 17:12:23 +0200 Subject: [PATCH] Added Load on Telemetry --- tasmota/xnrg_15_teleinfo.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/xnrg_15_teleinfo.ino b/tasmota/xnrg_15_teleinfo.ino index 316e567e8..a57020967 100755 --- a/tasmota/xnrg_15_teleinfo.ino +++ b/tasmota/xnrg_15_teleinfo.ino @@ -423,6 +423,11 @@ void TInfoShow(bool json) GetTextIndexed(name, sizeof(name), LABEL_HCHP, kLabel); ResponseAppend_P(PSTR(",\"%s\":\"%u\""),name , atoi(value)); } + + if (isousc) { + ResponseAppend_P(PSTR(",\"Load\":\"%d\""),(int) ((Energy.current[0]*100.0f) / isousc)); + } + #ifdef USE_WEBSERVER } else