Skip to content

Add "kvar" unit to reactive power fields#25

Closed
goxlur wants to merge 2 commits intoesphome-libs:mainfrom
goxlur:Add-"kvar"-unit-to-reactive-power-fields

Hidden character warning

The head ref may contain hidden characters: "Add-"kvar"-unit-to-reactive-power-fields"
Closed

Add "kvar" unit to reactive power fields#25
goxlur wants to merge 2 commits intoesphome-libs:mainfrom
goxlur:Add-"kvar"-unit-to-reactive-power-fields

Conversation

@goxlur
Copy link
Copy Markdown

@goxlur goxlur commented Feb 6, 2025

This adds the unit "kvar" to reactive power measurements.

@paran1
Copy link
Copy Markdown

paran1 commented Aug 4, 2025

I am using this to get my power meter working with esphome.
Thanks!

However according to the documentation for the template I think the second unit should be "integer unit", so it should be var/varh not with kilo prefix. For example FixedField, units::kvar, units::kvar); should probably be FixedField, units::kvar, units::var);). This also would require adding var and varh as allowed units.

https://github.com/glmnet/arduino-dsmr/blob/master/src/dsmr/fields.h#L101-L109

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