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

Added cooling energy (E3) support #121

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

noahlvb
Copy link
Contributor

@noahlvb noahlvb commented Jun 24, 2024

My house has floor heating and also floor cooling and thus my meter which is a Kamstrup 403 has two meters, the usual E1 meter and also E3 for cooling energy. I have found the command for E3 and added it. I have been tested this code on my own meter and the readings are correct (the same as on the display).

I have disabled the sensor by default to preserve battery and because not all users will have the E3 meter.

I found it hard to find the codes/commands, so in case it might be useful to someone:
documentation
Github Gist
The document is for a different meter but the Kamstrup protocol is mostly the same across devices and most codes lie up.

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.87%. Comparing base (4765177) to head (a49f171).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   77.87%   77.87%           
=======================================
  Files           8        8           
  Lines         357      357           
=======================================
  Hits          278      278           
  Misses         79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

SensorEntityDescription(
key="63", # 0x003F
name="Cooling Energy (E3)",
icon="mdi:weather-windy",
Copy link
Owner

Choose a reason for hiding this comment

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

Do you think this is the best icon to use here?
https://pictogrammers.com/library/mdi/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have searched the provided url before but this was the most fitting icon I could find, but I'm open to suggestions offcourse.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

All 3 of them are not perfectly describing this energy sensor, since this is your PR, I let you pick one and then we go for it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to go with snowflake because I think that it most closely resembles the goal of the cooling energy that is metered, just like the radiator icon for the heating meter.

@noahlvb noahlvb force-pushed the cooling-energy-support branch from 8cec108 to c0b709b Compare June 25, 2024 07:02
@golles
Copy link
Owner

golles commented Jun 25, 2024

We can ignore failing ci check, since only SonarCloud Scan is failing.
I need to find a workaround to run it properly on forked PR's or disable it in that case

@noahlvb noahlvb force-pushed the cooling-energy-support branch from c0b709b to a49f171 Compare June 25, 2024 12:09
@golles golles merged commit 6d253c0 into golles:main Jun 25, 2024
6 of 7 checks passed
@golles
Copy link
Owner

golles commented Jun 25, 2024

Thanks @noahlvb !

@noahlvb noahlvb deleted the cooling-energy-support branch June 25, 2024 12:29
@golles
Copy link
Owner

golles commented Jun 25, 2024

Released: https://github.com/golles/ha-kamstrup_403/releases/tag/2.6.2

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