-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate measuremente for negative power values #1156
Comments
I've been working on this for a few weeks now. See the thread: |
Hello @2Fblob, that`s exactly what I am looking for. Do you need any help with the development? I can help you with the merging and pull request. |
Hi @brunohoff , I'm debugging some WiFi hangs - The device will freeze ocasionally and will either recover itself and send the measurements on the next reporting period or it will restart. When it restarts it doesn't always connect to the router, but restaring the wifi on the router solves it. I have asked in the foruns and got no feedback if OB has any issues with the WiFi. So it would be good to have someone else testing :-) I'm setting up another device on a different location to also run some tests. |
Hi @2Fblob, My only device is connected to my house main circuit breaker. I need a more stable version to flash into it. I purchased a second unit to test in a separate environment. Did you tried without those hardcoded http request?
You may use rules to power on or off other device. I usually use Nodered for those kinds of complex rules. |
Hello @2Fblob I created a separate code based on your on the repository: https://github.com/brunohoff/OpenBK7231T_App/ I also created the PR #1184 so more people can help with the code. |
Hi, Thanks. What features do you need? Netmetering? Or just two counters for Export / Import? We can remove anything not used. Meanwhile, home assistant get's a bit confused when counters go down (including not reporting, if certain thresholds are not met) I have added ram variables, which load the main counters in periodic intervals. This should also help a bit with flash usage. On the standard code, flash is updated every few watts which results in a significant wear if we are measuing whole house consumption values. I sugest giving it another 2 weeks, while I do some bug checking and adjustments. Currently have two real systems running and I'm doing some changes based on the results. |
Hello @2Fblob, I want to use the circuit break as the main measurement device for Home Assistant. Right now I make it with multiple sources that are not very accurate. I'm running the version that I shared before on my device and its not working as I expected, however, it is running without any instabilities. I believe the major issue is understanding the amount of energy generated. From what I see on your solution you tried to understand the flow of the energy without success and used the power to invert the energy accordingly. I explain better the issue on the PR asking for guides: #1184 (comment) |
Hello,
There is the Flag 25 that enables negative values on power measurement and it works perfectly reporting current and power with positive and negative values. In my case I use a circuit break with power meter on the house and have solar panels generating energy. When the system is generating more power than the house usage, the power measurement is negative and reduces the total energy over time as expected and the opposite happens when is positive.
The Energy Total I believe there is room for improvement because it is a more precise value than multiple snapshots from power usage over time to calculate KWh usage with integral or other methods. The suggestion is to create a separate measurement for the total amount of negative values for the day.
For example, the house consumed 10 KWh on the day and generated 9 KWh with solar panels. The OpenBK will correctly inform the energy for the day at 1KWh. For Home Assistant there is the option to inform the amount of energy generated with solar, the energy consumed by the house from the grid and the energy sent to the grid.
In this case it could be something like:
Energy Today: 1KWh
Negative Energy Today: 9KWh
Therefore it will be possible to calculate the energy of all the system.
Thank you in advance.
The text was updated successfully, but these errors were encountered: