Wired as Type 1 but will set up only as Type 2

Got it, I wanted to zero so tried the clear all a couple of times but it still reverts to 335.4. will Waite till Sunday to see how the graphs develop.

after%202nd%20delete%20solar%20kwh

Ok, these “trim” and “clear” features were written by @emrys, perhaps he might have a better idea of why that might be, hopefully he might see this thread by then and offer some wise words.

Hi Paul
I am posting the history graphs which show the correct figures for use & solar, but direct & export are incorrect & grid appears to be tracking solar, but if you click through any bar it takes you to the correct figures in the graph. When I restarted them 6 days ago I set up new _kwh feeds as _kwh2 linked the app to them and started the three new feeds all within a few minutes of each other & the power view figures are all correct.


I am still running the origional _kwh Feeds in another Solar app and that shows a consistent export tracking solar, and grid tracking use. but the problem only appears in history. As the bars gradually build up and compress it probably won’t matter, I just wonder if it is a symptom of something I am doing wrong.

I’m sorry I’m not sure I’m getting a clear picture of the issue, so in general terms. If you have duplicated the feeds to another app, then these should be identical for the last couple of days or so because the energy calculations are based on the feed delta’s (_kwh feeds) so historic data should have no impact once that day is over.

You could show us your input processing if you want us to take a look. If I were to take a stab at guessing what the issue might be, assuming no accidents like wrong feeds selected in the app, I might think that you are either missing the import(_kwh) or providing “export” as import. But that’s just a guess based on the 0%,100%,100% in that last pic.

Hi Paul
here are the process list for the _kwh2 feeds which are the first three pics. The last pic was for the original _kwh feed

The first thing that sticks out in these pics is line 8 of the first pic, it shows you are logging import energy to “import_kw2” whilst the app appears to be using “import_kwh2”.

What edits would you advise I make to that process list.

Either the app or the processlist needs to be changed to use the correct feed, which is the correct feed “import_kw2” or “import_kwh2”? The name is unimportant at this point, which has the most correct data in? Whichever you chose, rename the other one something obviously different eg “TRASH_import_kwh2” (you can delete it later) and if needed/wanted rename the feed you are using to the name it should be. Once you have separated the correct and wrong feeds, check both the processlist and the app are using the right feed. You only need to change the feed selection in the processlist or app if they are not using the same correct feed.

Are you sure?

That image shows you have generated 15.5kWh of solar energy today and exported 100% of that, ie you didn’t use a single kWh of electricity the whole time the sun was up, but you did use 20.5kWh of energy entirely during the dark hours.

This is the clickthrough from that reading as you can see the click throughs seem to be correct only the history is wrong & everything else seems to be working OK

that kw kwh is my typo error when setting up the feeds I hadn’t noticed it.
Changing the app appears easiest, what do I set the feeds in the app to., there isn’t a import_kwh2

My guess would be “import_kw2”. Or you could just rename the “import_kw2” feed to “import_kwh2” on the feeds page.

Iv’e done that, nothing has changed at the moment does it need a full day of new data to change

app%20after%20name%20change

You do have over a days worth of data if the feed was created days ago and has been logged to ever since.

Have you tried refreshing the app (maybe ctrl-f5 too?). You could try reselecting the (same) feed in the app and re save the config to nudge things.

Is the feed updating in the feeds page ok? Has the input processing changed to reflect the new feed name?

I did a refresh and the history has changed to this if you compare with above you can see what the end bar has reset to, and the previous 4 bars have all reset in the same manor. Strangely this is exactly what happens in the emoncms.org site and that was set up by Glyn for me.
I just went back through my screenshots and the feeds use & import allways seem to have the same value even on the org site is the allow positive not working or am I understanding it wrong

Hi Paul I am still having trouble with the history bars do you think this is related to the fact that the imprt_kwh2 and use kwh2 have the same values, and is that because the allow positive is not working

That is indeed the reason.

No the allow positive is working fine, when you think about it, your consumption (use_kwh) will always be positive so the “allow positive” has no effect as everything passes it.

You really need to concentrate on the current values not the history, that’s why this hasn’t come to light sooner. If your import and use are always the same, that means generation is having no impact, this should stand out when you look at the current values because when you are producing more than you are consuming you are exporting, you should be showing zero import power and import_kwh should not be increasing.

This explains why the mysolar values at the foot of the page are consistently wrong (0%,100%,100%).

I have looked back through the threads and found the inputprocessing is in fact still incorrect. The correction made by Glyn to emoncms.org is not right and we are wrong to copy that.

There is a “quick fix” to add a minus input “solar” just above the “allow positive” but I would be tempted to just redo the input processing “correctly” by following the guide for type2

image

Although I have to say that guide could be clearer, that’s a whole lot of bold text given the statement in the blue box.

If you follow that guide your input process lists should end up as

power1 power2
1 allow positive log2feed “solar”
2 log2feed “import” power2kwh “solar_kwh”
3 power2kwh “import_kwh” +input “power1”
4 log2feed “use”
5 power2kwh “use_kwh”

However, IMO that arrangement is vulnerable to minor errors creeping in because the input1 could change and/or not be the value that is persisted if using feedwriter. Plus I like to record the raw input data for debugging etc. So I would use

power1 power2
1 log2feed “grid” log2feed “solar”
2 allow positive power2kwh “solar_kwh”
3 log2feed “import” +feed “grid”
4 power2kwh “import_kwh” log2feed “use”
5 power2kwh “use_kwh”

[although on emoncms.org, this will cost you slightly more because of the additional feed.]

Sorry i originally missed the error as we assumed emoncms.org to be correct, but in my defence I did refer to the current values being wrong at the bottom of the “correct” mysolar app. I hope this finally gets you sorted.

Hi Paul
I have applied your suggested fix & it all seems to be working now I will post a screenshot when the History’s have had a few days to update. Thank you both for your help it is very much appreciated.

Sounds good!

Which “fix” did you go for? Just added a subtract solar line, redo as per the guide or redo as per the guide plus (using +feed not +input)?

Wow are you sure? That’s pretty good, Glyns away at Fully Charged Live (Fully Charged Live 7th, 8th and 9th June 2019 (Silverstone, UK)) I’m surprised he found time to even check the forum let alone correct your input processing.

yes my mistake I loaded another page as local instead of org but I applied your Quick fix to the org site which has corrected the figures. I started all new _kw feeds on the local site to clear out the origional corrupt starting figures.

1 Like

I did your full recommended process list+feed to the local site and cleared out all old feeds, and the minus input solar on the org site

1 Like