Skip to content

Send periodic Energy consumption #408

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

Open
darkstar0x714 opened this issue Apr 8, 2025 · 0 comments
Open

Send periodic Energy consumption #408

darkstar0x714 opened this issue Apr 8, 2025 · 0 comments

Comments

@darkstar0x714
Copy link

darkstar0x714 commented Apr 8, 2025

Hello

First of all thanks for your efforts to make such great lib

I am testing my charger on custom backend it worked fine in on/off but it only send energy just on start and end of each transaction i need to make send it periodically every 30 sec. For example

I changed both lines in lib. And i got nothing

meterValueSampleIntervalInt = declareConfiguration<int>("MeterValueSampleInterval", 30); // changed from 60

And also

meterValuesInTxOnlyBool = declareConfiguration<bool>(MO_CONFIG_EXT_PREFIX "MeterValuesInTxOnly", false); // changed from true

I am using this function in my setup code

addMeterValueInput([]()
                           {
                Serial.println("[main] Energy meter input requested");

                return currentEnergyWh ; }, "Energy.Active.Import.Register", "Wh", nullptr, nullptr, 2);

Also used it in loop each 30 second and got nothing too

Any help with that situation?!

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

No branches or pull requests

1 participant