My Sonoff Dual R3 is flashed with Tasmota and in NodeRED I can read the status of the switches via MQTT (stat/Fietsen/RESULT). Now I would also like to be able to see the power consumption, preferably with an interval of 5 minutes. I don't know how to set that up in NodeRED, can someone help me with this?
Below information from the Tasmota console.
11:56:56.858 MQT: stat/Fietsen/POWER1 = ON
11:57:08.911 MQT: tele/Fietsen/STATE = {"Time":"2022-04-17T11:57:08","Uptime":"0T00:40:08","UptimeSec":2408,"Heap":154,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":40},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"TIS","BSSId":"2C:91:AB:D4:57:79","Channel":1,"Mode":"11n","RSSI":100,"Signal":-43,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:57:08.936 MQT: tele/Fietsen/SENSOR = {"Time":"2022-04-17T11:57:08","Switch1":"ON","Switch2":"ON","ENERGY":{"TotalStartTime":"2022-04-17T10:26:15","Total":0.001,"Yesterday":0.000,"Today":0.001,"Period":[ 0, 0],"Power":[ 7, 0],"ApparentPower":[12, 0],"ReactivePower":[10, 0],"Factor":[0.54,0.00],"Voltage":247,"Current":[0.049,0.000],"BL09XX":{"Temperature":35.4}},"ESP32":{"Temperature":56.7},"TempUnit":"C"}
11:57:25.434 MQT: stat/Fietsen/RESULT = {"POWER1":"OFF"}
11:57:25.443 MQT: stat/Fietsen/POWER1 = OFF