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

Receive no values #12

Open
ruschmitz opened this issue Oct 19, 2023 · 6 comments
Open

Receive no values #12

ruschmitz opened this issue Oct 19, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@ruschmitz
Copy link

Hello Imatula,
I have installed the DTSU666 integration in Home Assistant, I see 1 device and 37 entities, but I do not receive any values. I get "unknown" as sensor value.
The log file shows this error:

File "/config/custom_components/chint_pm/sensor.py", line 872, in _handle_coordinator_update
value = self.coordinator.device.data[self.entity_description.key]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'rev'

Line 872 in sensor.py is:

value = self.coordinator.device.data[self.entity_description.key]

Unfortunately, I am not a programmer and dont know where I have to look for the error. Can you please help me?
The following is a part of my configuration.yaml:

  # Chint DTSU666 an Modbus

modbus:

  • name: "DxSU-666"
    type: serial

port: /dev/ttyUSB1 # USB-RS485 Adapter Adresse

port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0@11       # USB-RS485 Adapter Adresse 
baudrate: 9600    # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
bytesize: 8
method: rtu
parity: N
stopbits: 1 

delay: 10

timeout: 10

@ruschmitz
Copy link
Author

Sorry, this is the configuration.yaml:

modbus:

  • name: "DxSU-666"
    type: serial
    port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0@11 # USB-RS485 Adapter Adresse
    baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
    bytesize: 8
    method: rtu
    parity: N
    stopbits: 1

Logfile:
home-assistant_chint_pm_2023-10-19T16-52-38.058Z.log

@lmatula
Copy link
Owner

lmatula commented Oct 20, 2023

i'm found in your log "No such file or directory: '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0@11'"
This mean device is busy, or don't connected.

I'm think did you configure individual modbus integration also, this isn't required.

@ruschmitz
Copy link
Author

Thank you for your answer.
I have removed the Modbus entry from configuration.yaml, and also removed the DTSU666 integration from Home Assistant and wanted to reinstall it. To do this, I use the ADD INTEGRATION-Function from Home Assistant,, followed by the dialogue with the UI.

UI01
My power meter is from Chint, but I tried both.

UI02
Serial is correct

UI03
The top entry is right for my configuration.

Term01

I have a Modbus-USB adapter on ttyUSB1 to which the DTSU666 is connected. I have access to the DTSU666 via EVCC, which I have running as an Add-on on Home Assistant. The Modbus address 11 is correct, but I don't know what the designation "s/n: n/a - 6790:29987" means.
The Modbus-Adapter ttyUSB0 is connected to a Solax Solar-Inverter.

UI04
After entering, the message "unknown" appears and I can't get any further.

UI05

Trying to use Enter Manually not work either.

UI06
I tried many different entries without success

UI07
Do you have any ideas?

@acaradic
Copy link

Hi all,
I'm experiencing exactly same issue. Just stopped working about month ago. Tried same as above but no luck. It won't let me pass unknown error as above.

@lmatula
Copy link
Owner

lmatula commented Dec 8, 2023

Hi all, I'm experiencing exactly same issue. Just stopped working about month ago. Tried same as above but no luck. It won't let me pass unknown error as above.

changed the pymodbus api, updated in 0.0.4, please retry

@dzlabing
Copy link

The above error might be related to missing permissions on the /dev/ttyUSB0 device.
Fix: Add the homeassistant user to the dialout group.

@lmatula lmatula added the help wanted Extra attention is needed label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants