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

unknown error #14

Closed
valentusys opened this issue Dec 1, 2023 · 3 comments
Closed

unknown error #14

valentusys opened this issue Dec 1, 2023 · 3 comments

Comments

@valentusys
Copy link

Hello
Thank you for your work!
I'm trying to connect a PD666-2S3 electricity meter.
I get the message 'unknown' when I try to add a counter to HA.
image

In the logs the message is:

Traceback (most recent call last):
  File "/config/custom_components/chint_pm/config_flow.py", line 345, in async_step_setup_network
    info = await validate_network_setup(user_input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/chint_pm/config_flow.py", line 127, in validate_network_setup
    decoder = BinaryPayloadDecoder.fromRegisters(rr.registers, byteorder=Endian.Big)
                                                                         ^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__
    raise AttributeError(name) from None
AttributeError: Big

I tried to receive data manually via modbus - they work correctly.

The addresses seem to match your documentation

@valentusys
Copy link
Author

Previously helped:
Replacement in config_flow.py file
lines:
Endian.Big
on the:
Endian.BIG

Unfortunately, I don't know how to make a pull request yet :)

@valentusys
Copy link
Author

After changing Big to BIG, the device was detected, but still does not work:
2023-12-01 20:50:39.540 WARNING (MainThread) [homeassistant.config_entries] Config entry 'dtsu666' for chint_pm integration not ready yet: Could not update values: 'meter_type'; Retrying in background

@lmatula
Copy link
Owner

lmatula commented Dec 8, 2023

Fixd in 0.0.4

@lmatula lmatula closed this as completed Dec 8, 2023
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

No branches or pull requests

2 participants