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 var and varh for austrian Smart meter of Energie Steiermark #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

killer0071234
Copy link

A readout of Austrian power meters from energy supplier Energie Steiermark is only possible with that change.
Type of smart meter:
Sagemcom T210-D

smart meter documentation

This change is tested with 3 different smart meters of that type.

BR Daniel

@geduxas
Copy link

geduxas commented Mar 20, 2024

It's wrong approach, it will broke other meeters which reports in var unit's in this obis..

Better fix would be accept both value of units and make conversation to one unique.

Comment on lines -305 to +307
DEFINE_FIELD(total_imported_energy, FixedValue, ObisId(1, 0, 3, 8, 0), FixedField, units::kvarh, units::kvarh);
DEFINE_FIELD(total_imported_energy, FixedValue, ObisId(1, 0, 3, 8, 0), FixedField, units::kvarh, units::varh);
Copy link
Author

@killer0071234 killer0071234 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's wrong approach, it will broke other meeters which reports in var unit's in this obis..

Better fix would be accept both value of units and make conversation to one unique.

I am no sure what you mean exactly..?

but shall not do that change the trick?

I had done it similar to other DEFINE_FIELD entrys.

BR

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh its templates, hard to read, also i think i was worng also by implementing these lines of code..
Cloud you add dump of your meeter for those obis values?

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.

2 participants