Why does OpenBeken on my Action SmartPlug 3202088 show 0 W or NaN after calibration, and how can I fix the power monitoring?
Update to the latest OpenBK7231N firmware; in this thread, flashing OpenBK7231N_1.18.15 made the power monitoring work again [#21383107] The NaN/0 W problem was explained as a calibration-on-zero issue: if the plug is still reading 0 power, PowerSet/calibration divides by zero and produces NaN, so calibration cannot recover from that state [#21382918] The most likely cause is that the metering chip is not producing pulses because the BL0937/BL0942 or CF pin is wrong, disconnected, or otherwise misconfigured [#21371554][#21382918] Check that the template/pin mapping matches your exact board and that the correct meter GPIO is assigned, because the model may differ from the one in the device list [#21370967][#21376621]
Hi,
I achieved to install OpenBeken on my Action SmartPlug with power monitoring (3202088). Tuya board CB2S.
Everything works fine except the power that is always at 0 W.
Calibration was done using a non-flashed plug and then I see "nanW" (see picture)
Thanks
Christophe.
AI: Could you describe the steps you followed for calibrating the power monitoring on the SmartPlug? I use this topic to calibrate https://www.elektroda.com/rtvforum/topic4030107.html and I use a non-flashed plug.
AI: Did you notice any error messages or logs from OpenBeken during or after the calibration process? No errors
If you have only invalid power reading, then it is relatively likely that CF pin is either disconnected (you didn't solder back module correctly) or incorrectly selected (your device is using different GPIO as CF):
How did you flash your device?
CB2S don't have much pins, you should be able to narrow down to few which you have left to test.
Btw, I think we need a separate pin role PulseCounter that just counts pulses to given channel so we can check if anything happens on his CF pin currently. I don't think so. I think his CF receives no pulses at all.
I can confirm that power monitoring does not work with this model. I measured voltage and current according to the manual and calculated power. I entered the values correctly, clicked apply and restarted the plug. I see that the live monitoring gives wrong values and go back to webtool and see that the old values are back.
Perhaps relevant information: I also flashed the model LSC 3202088, assuming it was the Beken BK7231T, but that flashing failed (CRC mismatch). When I then flashed the plug with Beken BK7231N, everything worked.
Hope someone can help. I bought six that I would like to flash, but if energy monitoring fails, then I have no use for it
# Step Six
Configure the power plug by inserting the JSON obtained in Step Four. Go to **launch web app** and into **import**, paste the JSON, and click **clear OBK and apply new script**.
It is definitely a software problem. I just yesterday flashed a model of the old version the LSC 3202087 with BK7231N and it works perfectly. Should it fail, with flashing I will return the others.
edit: It worked! I flashed the plug with the json from the LSC 3202087 and the energy monitoring is perfect.
I think that you are rather getting errors because of 0 power that is read when you do calibration.
When BL0942 (or BL0937) reports 0 pulses (uncalibrated), you get dividing by zero here:
You can't get it fixed because calibration will never work with 0 value reported by the BL0942 or anything you have. So if you don't have BL0942 connected, or your BL0942 is broken and reports 0 (uncalibrated), then you get divide by 0 on each PowerSet call, so you can't "undo" it.
The problem is not software, the problem is that you have wrong BL0937 (or BL0942 if possible? Maybe BL0942SPI is used instead of BL0942 on UART?) pins, and you get power value 0, and then you break calibration futher so you get NaN instead of 0.
And I don't think it's integer or not issue, it's just by accident, if you did those operations in the reverse order, then integer would break... @divadiow
✨ The discussion revolves around the installation of OpenBeken firmware on the Action SmartPlug model 3202088, which features power monitoring capabilities. The main issue reported is that the power monitoring consistently shows 0W after calibration, despite following the calibration steps outlined in a referenced forum post. Users suggest potential causes, including incorrect pin assignments, issues with the CF pin, and the need for a correct template for the device. Several users report similar problems, indicating that the issue may be software-related. A solution is eventually found with the installation of a new firmware version, which resolves the power monitoring issue. Users also discuss the importance of using the correct JSON configuration for the device. Generated by the language model.
TL;DR: If your Action SmartPlug 3202088 shows 0 W or nanW after calibration, the fix is usually firmware or template related, not bad math. One expert summary was: "it works now" after updating to OpenBK7231N 1.18.15. This FAQ is for CB2S/BK7231N owners who need working power monitoring after flashing OpenBeken. [#21383107]
Why it matters: Correct power monitoring is the whole point of flashing this 3202088 plug; if active power stays at 0 W, voltage and current data are not enough for real energy tracking.
Alternative
Result on 3202088 in the thread
Practical takeaway
Original/incorrect 3202088 setup
Relay works, power stays at 0 W
Basic control works, metering does not
Calibrating after 0 W reading
Can turn 0 W into nanW
Calibration cannot rescue a dead power input
JSON from older LSC 3202087
Energy monitoring worked perfectly
Template mismatch can be the root cause
OpenBK7231N 1.18.15
Power monitoring started working
Firmware update resolved the issue for at least one confirmed case
Key insight: On this plug, calibration is not the first fix. First make sure the device uses the correct CB2S/BK7231N firmware and a working pin/template setup, because PowerSet on a raw 0 W input can produce NaN instead of a valid correction.
Quick Facts
The affected plug model is Action/LSC 3202088, and at least two owners reproduced the same symptom: relay control worked, but active power stayed at 0 W or became nanW after calibration. [#21381532]
One extracted Tuya JSON for the CB2S version reported module: CB2S, ele_pin: 26, vi_pin: 24, sel_pin_pin: 11, rl1_pin: 8, led1_pin: 6, bt1_pin: 7, and netled1_pin: 10. [#21371613]
A reproduced failure appeared when a user changed power calibration from 60 to 60.8 W; changing it back to 60 did not immediately clear the issue. [#21380980]
The thread includes a direct firmware fix: after installing OpenBK7231N_1.18.15 on 2025-01-08, one owner confirmed that power monitoring started working. [#21383107]
Another owner said the newer 3202088 worked only after importing the JSON from the older LSC 3202087; with that template, energy monitoring became "perfect."[#21376997]
Why does OpenBeken on the Action SmartPlug 3202088 show 0 W all the time even after power calibration?
Because the plug is usually not receiving a valid power pulse signal before calibration starts. In this thread, the device could switch loads normally, but active power stayed at 0 W until the user updated to OpenBK7231N 1.18.15. Another expert explanation was that calibration on a raw 0 W input can divide by zero, so it cannot create a valid reading from missing metering data. [#21382918]
How do I properly calibrate power monitoring on an Action SmartPlug 3202088 with a CB2S/BK7231N module in OpenBeken?
Calibrate only after the plug already reports a non-zero live power value. 1. Flash the BK7231N build for the CB2S module and import the extracted Tuya JSON. 2. Confirm voltage, current, and especially power react to a real load before touching calibration. 3. Then apply VoltageSet, CurrentSet, and PowerSet using measured values such as 230 V, 0.26 A, and 60 W. If live power is 0 W first, calibration can fail. [#21382918]
What causes OpenBeken to display nanW after running PowerSet calibration on a smart plug?
nanW appears when PowerSet is applied while the raw power reading is still 0 W. The thread explains that this leads to a divide-by-zero condition inside calibration, so the plug moves from a visible 0 W fault to an invalid NaN result. Users reproduced this after calibration attempts on the 3202088, especially when the metering path was not working first. [#21382918]
Which GPIO pins should be assigned for BL0937 or BL0942 power monitoring on the LSC/Action 3202088 smart plug?
For the CB2S example in this thread, the extracted Tuya configuration mapped ele_pin 26, vi_pin 24, and sel_pin_pin 11 for metering-related functions. That JSON also used rl1_pin 8, led1_pin 6, bt1_pin 7, and netled1_pin 10. The thread also warns that the exact template may still differ on 3202088 variants, so those values are the starting point, not a universal guarantee. [#21371613]
What is the CF pin in a BL0937 or BL0942 energy metering circuit, and why does it matter when power always reads 0 W?
"CF pin" is a metering signal output that sends pulses representing active power, letting the firmware convert pulse activity into watt readings. If that signal is disconnected, wrongly mapped, or never reaches the MCU, the plug can still show voltage or current while active power remains stuck at 0 W. In the thread, the expert specifically pointed to a disconnected or wrongly selected CF pin as a likely cause. [#21371554]
What is a Tuya config extraction JSON in the OpenBeken web app, and how is it used when flashing a CB2S smart plug?
"Tuya config extraction JSON" is a device configuration file that lists the module type and pin assignments, letting OpenBeken recreate the original hardware mapping after flashing. On this CB2S plug, the extracted JSON included pins for relay, LED, button, network LED, and metering signals. The flashing guide step quoted in the thread says to paste that JSON into the web app Import section and use “clear OBK and apply new script.” [#21376868]
How can I tell whether my Action SmartPlug 3202088 uses BK7231T, BK7231N, WB2S, or CB2S before flashing OpenBeken?
Check the actual module marking and confirm it with config extraction or the flasher result before choosing firmware. In this thread, the user first saw that the 3202088 device list mentioned WB2S/BK7231T, but their real hardware was CB2S and the flasher tool said to use BK7231N. Another owner also reported BK7231T flashing failed with a CRC mismatch, while BK7231N worked. [#21376611]
BK7231T vs BK7231N for the LSC/Action 3202088 plug — which firmware and template should be used for reliable power monitoring?
Use the firmware that matches the actual module on your board, and do not trust the model number alone. In this thread, CB2S-based 3202088 plugs needed the BK7231N build, while a BK7231T attempt failed with CRC mismatch. Reliable power monitoring also depended on the right template: one owner fixed metering only after using the older LSC 3202087 JSON on the newer 3202088 hardware. [#21376997]
Why would calibration values in the OpenBeken web tool revert to the old numbers after apply and restart on this plug?
They can appear to revert because the metering path is still invalid, so the new calibration never produces a stable working state. One owner said the live readings stayed wrong, and after reopening the web tool the old values were back. In the same thread, another confirmed the deeper issue was not simple calibration entry, but that the plug first needed the right firmware/template combination for valid power data. [#21376611]
What happens if I enter a non-integer power calibration value like 60.8 in OpenBeken, and why can that lead to NaN readings?
A non-integer like 60.8 is not inherently the problem. One developer reproduced the failure after changing power from 60 to 60.8 W, but another expert later showed calibration self-tests also worked with non-integers such as 60.5. The real failure happens when you apply PowerSet while raw measured power is 0 W, because that broken input can turn the result into NaN regardless of integer or decimal format. [#21382918]
How do I import the correct JSON template into the OpenBeken web app for the Action SmartPlug 3202088 after flashing?
Use the JSON extracted from the plug, then import it directly in the OpenBeken web app. 1. Run config extraction during or after flashing. 2. Open the web app Import section. 3. Paste the JSON and click “clear OBK and apply new script.” One owner who followed that process on 3202088 still had bad metering, which later pointed to template or firmware mismatch rather than an import mistake. [#21376868]
What should I check first if voltage and current appear but active power stays at 0 W on an OpenBeken smart plug?
Check the metering pin mapping first, especially the CF-related power pulse path. In this thread, the expert said that if only power is invalid while other readings appear, the CF pin is relatively likely to be disconnected, wrongly selected, or assigned to the wrong GPIO. That makes power stay at 0 W even though the rest of the plug still works and calibration commands seem available. [#21371554]
How can soldering to the UART pads damage or affect the metering chip or pin signals on a Tuya CB2S smart plug?
Bad UART soldering can short nearby pins and disturb metering signals, even if the module still flashes and the relay still works. The thread explicitly warns that incorrect readings can happen if pins are shorted while soldering UART. That matters on compact CB2S boards because only a few pins remain free, so a small bridge or damaged trace can break the energy-monitoring path without killing the whole plug. [#21376621]
Why did using the JSON from the older LSC 3202087 make energy monitoring work on the newer 3202088 plug?
Because the 3202088 unit in the thread likely shared a working pin layout with the older 3202087 template, while the original 3202088 mapping did not match the actual hardware. The owner said the 3202088 had failed energy monitoring before, then “It worked!” after flashing with the 3202087 JSON. That is strong evidence of a template mismatch, not a dead metering chip. [#21376997]
Which OpenBeken firmware version fixed the 0 W or NaN power monitoring problem on the Action SmartPlug 3202088?
OpenBK7231N 1.18.15 was the version that fixed it in the thread’s confirmed success report. On 2025-01-08, the owner installed OpenBK7231N_1.18.15 and immediately reported that power monitoring worked again on the Action SmartPlug 3202088. That is the clearest version-specific fix mentioned in the discussion. [#21383107]