Skip to content
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

Add DSMRreader EMS module #509

Merged
merged 3 commits into from
May 27, 2023
Merged

Add DSMRreader EMS module #509

merged 3 commits into from
May 27, 2023

Conversation

RichieB2B
Copy link

TWCManager already supports the DSMR P1 port protocol but this means the P1 port needs to be free. When the port is already used by the DSMR-reader TWCManager can still use the data by subscribing to the MQTT messages that DSMR-reader produces.

@RichieB2B RichieB2B force-pushed the dsmrreader branch 4 times, most recently from 92b4ab6 to 004089f Compare May 19, 2023 07:55
@RichieB2B RichieB2B changed the title Add DSMRreader EMS module Add DSMreader EMS module May 19, 2023
@RichieB2B RichieB2B changed the title Add DSMreader EMS module Add DSMRreader EMS module May 19, 2023
@RichieB2B
Copy link
Author

RichieB2B commented May 19, 2023

The P1 port of my smart meter only returns what it sees. The generation value is not the total PV generation but only the portion that is returned to the grid (surplus). When PV tracking is working 100% accurately the PV production will be reported as 0 but the correct value can be calculated using:

genwatts = genwatts + chgwatts - conwatts

When the tracking is a little off (gewatts > 0 or conwatts higher than ideal) the formula is still a good guess.

I introduced a new config setting treatGenerationAsGridDelivery to indicate to use this calculation. Without it my PV tracking is all over the place.

@RichieB2B RichieB2B force-pushed the dsmrreader branch 2 times, most recently from 3e987f1 to 167ac8b Compare May 20, 2023 12:00
@ngardiner ngardiner merged commit 85e8d38 into ngardiner:main May 27, 2023
@RichieB2B RichieB2B deleted the dsmrreader branch November 17, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants