![]() |
|
N60 Loss of kWh on reset - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=87) +--- Forum: N60 (https://www.kincony.com/forum/forumdisplay.php?fid=88) +--- Thread: N60 Loss of kWh on reset (/showthread.php?tid=9772) Pages:
1
2
|
RE: N60 Loss of kWh on reset - chuyskywalker - 09-03-2026 That version fixed the (obvious) bug of not showing kWh as floats. (Should really updated or delete the post I pulled 3.18 from so other people don't download old versions). The "clear all" button did not correctly clear all the values. Individual clear buttons did function as expected (Going to "Protocol" > "Energy" > "Energy N" and then clicking the button "Clear Energy N" did clear the kWh values for that specific bank. I tested only on bank 5 & 6. I can't see the sourcecode to KCS to compare it to the ESPHome version of the clear buttons. Are you able to inform me what the right way to get ESPHome to have a "clear" button would be? RE: N60 Loss of kWh on reset - admin - 09-04-2026 you can use N60 PC software, there is CLEAR button. it will send command by RS485. then you add USB-RS485 adapter, when you click button, will see what command have sent, just copy this command for your ESPHome clear button's command. pc software download: https://www.kincony.com/forum/attachment.php?aid=9282 RE: N60 Loss of kWh on reset - chuyskywalker - 09-04-2026 Thank you, I think I have an idea of what's been making this hard to figure out. I sniffed the traffic from the App to see this for resetting chip 1's data: Code: 01 05 02 08 ff 00 0c 40Which decodes to running a 0x05 operation on 520 with a value of 1. I am able to replicate this exact operation with this esphome switch: Code: switch:And it does what you'd expect: Code: [02:18:32.380][V][switch:021]: 'Clear Energy, Chip 1' Turning ON.(Note the same sent code of "01:05:02:08:FF:00:0C:40".) This DOES reset the kWh values. Here's the catch, which is what has been throwing me: reset only works ONCE per power cycle. If you gain more kWh data after the reset, you can not issue the command again to re-clear the data. You must power-cycle the device before issuing the command will work. I suspect something in the ARM firmware treats this coil like a one-time invocation and then never looks for the register to change again until the whole thing re-initialized. It'd be great if it worked multiple times in a row. --- With that mystery solved, what would cause watts to be reported negative? (NONE of the ct's are on devices which generate power. All of the CT's are installed in the exact same orientation (which side faces the breaker/source). It's possible that I've flipped some red/black wires on the pos/neg inputs on the CT pins, but..for this many? Well, I guess this works: Code: Additional configuration register:Turned that off... which "fixes" the problem, technically, but I feel like if I have it all wired up correctly I shouldn't be seeing negative watts. Still want to fix it the "right" way. |