Separate energy counters for IN/OUT#7
Open
magnayn wants to merge 1 commit intoopenenergymonitor:masterfrom
Open
Separate energy counters for IN/OUT#7magnayn wants to merge 1 commit intoopenenergymonitor:masterfrom
magnayn wants to merge 1 commit intoopenenergymonitor:masterfrom
Conversation
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There may be another way to do this..
In my emonTX setup, I have solar PV, but I don't have access to clamp the solar production, only at the grid.
Since there are times of day where the energy is flowing out - negative - this is currently reducing the energy count for
that channel. Unfortunately it doesn't mean my meter also flows backwards, so it's thus very hard to compare the values. I don't have an export meter, so one of the uses of having the emonTx there is to be able to work out what proportion is being used on-site and what is being exported.
I've modified it to split the wh out and in. It might be better to wrap the wh_ and residual_energy, and even the channel_in_use in a struct. I retained the old EmonLibCM_getWattHour API for compatibility.