-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Problems with Modbus after update to core 2023.10.0 #101437
Comments
Hey there @janiversen, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) modbus documentation |
Exactly same error and messages with modbus values from SMA power inverter after HA core update from 2023.9.3 to 2023.10.0. |
count is not allowed for numeric values anymore, only for cutom or string. |
Hi! I got the same error for reading my Kamstrup energy meter via a smart-me interface. I simply removed the "count" as this is now autmatically calculated. And it works again. |
this is announced breaking change! please read the log This is not a bug. |
Thanks for the fast response. Will delete the “count” tonight. |
To all having problems with the configuration, please read the documentation, especially: The latter shows clearly which parameters combinations are allowed. |
Jan, After reading that, am I correct that I need to change count: 2 To |
Thanks. I also got this error in my 'Dantherm' modbus config, but have used the same approach with removing all count-lines. Tomorrow I will see if everything works as usual. |
Many thanks for the quick hints!!! |
Thank You very much, its working ;-) |
I assume you want 2 sensors and not 1 as you had earlier. Slave_count have quite a different functionality than count, just read the documentation. |
Yes. You are right. My fault. I only changed count to slave_count without inspecting the result in HA. |
Many thanks. Thats it. count >>> slave_count :-) |
The problem
Hello Together,
I am experiencing problems with the Modbus to the KOSTAL KSEM, after updating from 2023.9.3 to 2023.10.0.
Sorry, but a download of the diagnostic data is not available because I already restored the 2023.9.3 backup.
Here the messages I got:
Setup failed for modbus: Invalid config.
04:48:13 – (FEHLER) setup.py
Invalid config for [modbus]: netzbezug_energie_ksem:
count: 4
cannot be combined withdata_type: uint64
@ data['modbus'][0]['sensors'][2]. Got {'name': 'netzbezug_energie_ksem', 'slave': 1, 'scale': 0.0001, 'precision': 3, 'address': 512, 'scan_interval': 60, 'count': 4, 'input_type': 'holding', 'data_type': 'uint64', 'device_class': 'energy', 'state_class': 'total_increasing', 'unit_of_measurement': 'kWh'} netzbezug_leistung_ksem:count: 2
cannot be combined withdata_type: uint32
@ data['modbus'][0]['sensors'][0]. Got {'name': 'netzbezug_leistung_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 0, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} netzeinspeisung_energie_ksem:count: 4
cannot be combined withdata_type: uint64
@ data['modbus'][0]['sensors'][3]. Got {'name': 'netzeinspeisung_energie_ksem', 'slave': 1, 'scale': 0.0001, 'precision': 3, 'address': 516, 'scan_interval': 60, 'count': 4, 'input_type': 'holding', 'data_type': 'uint64', 'device_class': 'energy', 'state_class': 'total_increasing', 'unit_of_measurement': 'kWh'} netzeinspeisung_leistung_ksem:count: 2
cannot be combined withdata_type: uint32
@ data['modbus'][0]['sensors'][1]. Got {'name': 'netzeinspeisung_leistung_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 2, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'}. (See /config/configuration.yaml, line 40). Please check the docs at https://www.home-assistant.io/integrations/modbus04:48:13 – (FEHLER) config.
Thanks in advance for any help to fix the issue.
Regards
What version of Home Assistant Core has the issue?
2023.10.0
What was the last working version of Home Assistant Core?
2023.9.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
KOSTAL KSEM
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: