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

Correct values in HA for pulse-energy-meter-be6-30397, but wrong ones with nibe/modbus tcp #214

Open
danielcb opened this issue Feb 5, 2025 · 1 comment
Labels
question Further information is requested

Comments

@danielcb
Copy link

danielcb commented Feb 5, 2025

Hi,
I'm trying to get values for my pulse energy meter (BE 6) (Nibe SMO S40). I've set it up in Homeassistant and everything works correctly (shows around 9.600 kWh).

If I try it manually (either via a modbus cli client or via this project) I get the value "3132358670".

I also (correctly) get an out of range error, since the allowed max value is lower that the value I get:

  "30397": {
    "title": "Pulse energy meter (BE6)",
    "factor": 100,
    "unit": "kWh",
    "size": "u32",
    "min": 0.0,
    "max": 2147483647.0,
    "default": 0.0,
    "name": "pulse-energy-meter-be6-30397"
  },

The code I used is basically the default example with:

heatpump = HeatPump(Model.SMOS40)
coil = heatpump.get_coil_by_name("pulse-energy-meter-be6-30397")

The error I get is

AssertionError: Raw value 3138912270 is out of range for coil pulse-energy-meter-be6-30397
@yozik04
Copy link
Owner

yozik04 commented Feb 22, 2025

Do you use any other 32bit parameters? I think you need to toggle word_swap for your setup.

@yozik04 yozik04 added the question Further information is requested label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants