Skip to content

[S-Series] Add total energy registers and fix power consumption units#269

Merged
yozik04 merged 1 commit into
yozik04:masterfrom
martinkiska:fix-consumption-units
Dec 18, 2025
Merged

[S-Series] Add total energy registers and fix power consumption units#269
yozik04 merged 1 commit into
yozik04:masterfrom
martinkiska:fix-consumption-units

Conversation

@martinkiska
Copy link
Copy Markdown
Contributor

Pull Request Type

Please select the type of your PR:

  • Add/Update Registries
  • Feature
  • Bug Fix

Description

Heatpump model: S1256

Firmware version: 4.7.5

PR is fixing units of current power consumption and adding new total consumption registers for S1256 model. It was inspired by #181 and is fixing currently opened issue of one user #239. My expectation is that whole S series heat pump is using bad unit for this parameter. What is causing negative consumptions in energy tab. As a sideeffect if somebody was badly using those entities as source of data for energy dashboard, they will see warning with bad class, but it is just narrowing the data so they will be correct for the future.

Checklist

  • I have followed the instructions
  • I ensured that my changes are well tested
image

I am not sure why on single click on fixed entity I don't see correct graph data, but when opened for longer period it shows old data.

image

New Tot. consumption entities are ready to be used for energy dashboard
image

@martinkiska
Copy link
Copy Markdown
Contributor Author

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.78%. Comparing base (dbe376e) to head (53954fa).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #269   +/-   ##
=======================================
  Coverage   69.78%   69.78%           
=======================================
  Files          14       14           
  Lines        1347     1347           
=======================================
  Hits          940      940           
  Misses        407      407           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yozik04 yozik04 changed the title Fix units of energy logs + add new registers [S-Series] Add total energy registers and fix power consumption units Dec 18, 2025
@yozik04 yozik04 merged commit c55d571 into yozik04:master Dec 18, 2025
11 checks passed
@yozik04
Copy link
Copy Markdown
Owner

yozik04 commented Dec 18, 2025

Thank you @martinkiska !

@yozik04 yozik04 added this to the 2.20.0 milestone Dec 18, 2025
yozik04 added a commit that referenced this pull request Jan 11, 2026
… series (#276)

## Pull Request Type

Please select the type of your PR:

- [x] Add/Update Registries
- [ ] Feature
- [ ] Bug Fix

## Description

**Heatpump model**: S320 <!-- e.g. F1145-6, F1255-6, F2040-6, S1155-6,
S1255-6 -->

**Firmware version**: 3.7.5<!-- e.g. 5.3.11, 5.4.4 -->

<!-- Please describe your changes here. -->
Recently I have updated new registers for S1256 model
(#269). Colleague of mine is having
similar S-series model S320. We verified that he has same new registers
as I have for S1256 mode from the exportl. Thus my expectation is that
same registers are there for all S series model, so I am aligning it for
everyone.

Change was verified for S320 and HA is reading correctly the values:
<img width="597" height="531" alt="image (22)"
src="https://github.com/user-attachments/assets/86c62b17-ddf1-4016-8198-d7c5d5ac1a73"
/>


<!-- IF THIS PR CHANGES REGISTERS. FOLLOW THE INSTRUCTIONS BELOW.

## How to add/update registers in the library

To add/edit registers in the library first of all you need to find
documentation how these parameters are officially called. There will be
a backward compatibility break if a name will change.

The process contains of mainly next steps: 1. Update source CSV files.
2. Convert CSV files to JSON. 3. Edit extensions.json if needed. 4.
Submit PR.

### 1.A For F series pumps

Use
[ModbusManager](https://professional.nibe.eu/sv/proffshjalp/kommunikation/nibe-modbus).
Do CSV export for the unit you want to update. Find the correct file in
`nibe/data` folder. Merge data into that file (Do not change/update any
lines. All CSV files are source files they must not be changed).

### 1.B For S serires pumps

Change your pump language to English and do registers export. Merge that
data into the correct file in `nibe/data` folder (Do not change/update
any lines. All CSV files are source files they must not be changed).

### 2. Convert source CSV files to JSON

```bash
python3 -m nibe.console_scripts.convert_csv
```

### 3. Verify JSON files

Verify that conversion was successful and required lines correctly
appeared in the json files. If some modifications are required you need
to edit `extensions.json` to fix these.

### 4. Submit PR

Attach your source CSV file for reference so we could verify as well.
-->

[modbus_addresses_all_20251219-06919623073013-2.csv](https://github.com/user-attachments/files/24470464/modbus_addresses_all_20251219-06919623073013-2.csv)

## Checklist

- [x] I have followed the instructions
- [x] I ensured that my changes are well tested
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