arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.8k stars 4.73k forks source link

Incorrect power measurement on Shelly Puls PM Mini #21284

Closed guiumb closed 3 months ago

guiumb commented 3 months ago

PROBLEM DESCRIPTION

I have a new device Shally Puls PM Mini with tasmota 13.4.1.2 self compiled firmware connected to 60W bulb lamp with current clamp connection in between. I read 0.080A on the Shelly and 0.220A on the clamp and also the power is not correct on the Shelly. As I flashed the unit with Tasmota as soon as I bought it, I have no reference with the original firmware. This is my 1st shelly plus device and I cannot verify with any other. I have also upgraded the device with pre-compiled binary but the issue persists.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

TO REPRODUCE

EXPECTED BEHAVIOUR

SCREENSHOTS

ADDITIONAL CONTEXT

(Please, remember to close the issue when the problem has been addressed)

sfromis commented 3 months ago

Did you try the calibration? https://tasmota.github.io/docs/Power-Monitoring-Calibration/

guiumb commented 3 months ago

Yes, but the value is sitll incorect.


20:38:34.709 MQT: tele/shellybagno/SENSOR = {"Time":"2024-04-26T20:38:34","ANALOG":{"Temperature1":53.273},"ENERGY":{"TotalStartTime":"2024-04-26T11:45:22","Total":0.07622,"Yesterday":0.01930,"Today":0.05692,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Frequency":50,"Voltage":205,"Current":0.000},"ESP32":{"Temperature":58.400},"TempUnit":"C"}
20:39:20.563 CMD: powerset 60.0
20:39:20.567 MQT: stat/shellybagno/RESULT = {"PowerSetCal":165}
20:39:34.722 MQT: tele/shellybagno/STATE = {"Time":"2024-04-26T20:39:34","Uptime":"0T04:19:09","UptimeSec":15549,"Heap":154,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":23,"Objects":300},"Wifi":{"AP":1,"SSId":"guilan","BSSId":"3C:A6:2F:08:7B:F7","Channel":1,"Mode":"HT20","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:04"}}
20:39:34.731 MQT: tele/shellybagno/SENSOR = {"Time":"2024-04-26T20:39:34","ANALOG":{"Temperature1":53.273},"ENERGY":{"TotalStartTime":"2024-04-26T11:45:22","Total":0.07643,"Yesterday":0.01930,"Today":0.05713,"Period":0,"Power":17,"ApparentPower":17,"ReactivePower":0,"Factor":1.00,"Frequency":50,"Voltage":205,"Current":0.085},"ESP32":{"Temperature":58.400},"TempUnit":"C"}
20:40:34.698 MQT: tele/shellybagno/STATE = {"Time":"2024-04-26T20:40:34","Uptime":"0T04:20:09","UptimeSec":15609,"Heap":154,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":23,"Objects":300},"Wifi":{"AP":1,"SSId":"guilan","BSSId":"3C:A6:2F:08:7B:F7","Channel":1,"Mode":"HT20","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:04"}}
20:40:34.706 MQT: tele/shellybagno/SENSOR = {"Time":"2024-04-26T20:40:34","ANALOG":{"Temperature1":53.273},"ENERGY":{"TotalStartTime":"2024-04-26T11:45:22","Total":0.07712,"Yesterday":0.01930,"Today":0.05782,"Period":1,"Power":17,"ApparentPower":17,"ReactivePower":0,"Factor":1.00,"Frequency":50,"Voltage":206,"Current":0.085},"ESP32":{"Temperature":58.400},"TempUnit":"C"}
20:40:53.711 CMD: voltageset 220
20:40:53.716 MQT: stat/shellybagno/RESULT = {"VoltageSetCal":14403}
20:41:34.720 MQT: tele/shellybagno/STATE = {"Time":"2024-04-26T20:41:34","Uptime":"0T04:21:09","UptimeSec":15669,"Heap":153,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":23,"Objects":300},"Wifi":{"AP":1,"SSId":"guilan","BSSId":"3C:A6:2F:08:7B:F7","Channel":1,"Mode":"HT20","RSSI":88,"Signal":-56,"LinkCount":1,"Downtime":"0T00:00:04"}}
20:41:34.729 MQT: tele/shellybagno/SENSOR = {"Time":"2024-04-26T20:41:34","ANALOG":{"Temperature1":53.315},"ENERGY":{"TotalStartTime":"2024-04-26T11:45:22","Total":0.07785,"Yesterday":0.01930,"Today":0.05855,"Period":1,"Power":19,"ApparentPower":19,"ReactivePower":0,"Factor":1.00,"Frequency":50,"Voltage":221,"Current":0.086},"ESP32":{"Temperature":59.400},"TempUnit":"C"}
sfromis commented 3 months ago

What you post shows that you did not perform the calibration

guiumb commented 3 months ago

Sorry for the incomplete cut and paste: this is the complete one.

09:23:57.524 CMD: powerset 58
09:23:57.528 MQT: stat/shellybagno/RESULT = {"PowerSetCal":153}
09:24:01.784 CMD: voltageset 213
09:24:01.789 MQT: stat/shellybagno/RESULT = {"VoltageSetCal":14318}
09:24:06.545 CMD: currentset 220
09:24:06.549 MQT: stat/shellybagno/RESULT = {"CurrentSetCal":251213}
09:24:32.690 MQT: tele/shellybagno/STATE = {"Time":"2024-04-27T09:24:32","Uptime":"0T17:04:07","UptimeSec":61447,"Heap":154,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":2,"Berry":{"HeapUsed":23,"Objects":300},"Wifi":{"AP":1,"SSId":"guilan","BSSId":"3C:A6:2F:08:7B:F7","Channel":1,"Mode":"HT20","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:04"}}
09:24:32.698 MQT: tele/shellybagno/SENSOR = {"Time":"2024-04-27T09:24:32","ANALOG":{"Temperature1":52.766},"ENERGY":{"TotalStartTime":"2024-04-26T11:45:22","Total":0.08050,"Yesterday":0.05938,"Today":0.00182,"Period":1,"Power":16,"ApparentPower":16,"ReactivePower":0,"Factor":1.00,"Frequency":50,"Voltage":214,"Current":0.075},"ESP32":{"Temperature":58.400},"TempUnit":"C"}
guiumb commented 3 months ago

I would like to apologise to everyone: the incorrect readings were caused by incorrect wiring. Thank you for your patience @sfromis.