Skip to content

Modbus reading some values wrong from the same device #147016

Open
@thedude911

Description

@thedude911

The problem

While reading some vaues correct, on the same device I have serious issues with one register. Holding Register 0012 and 0013 (uint32) contain the value 10700:

Image

for no obvious reason, the number HA is receiving is 3 digits too large and also wrong:

Image

What version of Home Assistant Core has the issue?

2025.6.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Modbus

Link to integration documentation on our website

https://www.home-assistant.io/integrations/modbus/

Diagnostics information

home-assistant_modbus_2025-06-17T09-52-12.879Z.log

Example YAML snippet

modbus:                                                                                                   
  - name: wallbox                                                                                         
    type: tcp                                                                                             
    host: 192.168.0.22                                                                                    
    port: 502                                                                                             
    timeout: 60                                                                                           
    sensors:                                                                                              
      - name: wallbox.status                                                                              
        address: 0000                                                                                     
        data_type: uint16                                                                                 
        unique_id: wallbox_charging_station_state                                                         
      - name: wallbox.status.ladekabel                                                                    
        address: 0002                                                                                     
        data_type: uint16                                                                                 
        unique_id: wallbox_cable_state                                                                    
      - name: wallbox.fehlercode                                                                          
        address: 0004                                                                                     
        data_type: uint16                                                                                 
        unique_id: wallbox_fault_code                                                                     
      - name: wallbox.geladene.energie                                                                    
        unit_of_measurement: kWh                                                                          
        address: 0072                                                                                     
        data_type: uint16                                                                                 
        unique_id: wallbox_charged_energy                                                                 
        device_class: energy                                                                              
        state_class: total                                                                                
      - name: wallbox.ladedauer                                                                           
        unit_of_measurement: s                                                                            
        address: 0078                                                                                     
        data_type: uint32                                                                                 
        unique_id: wallbox_charging_time                                                                  
        device_class: duration                                                                            
        state_class: measurement                                                                          
      - name: wallbox.modus                                                                               
        address: 0093                                                                                     
        data_type: uint16                                                                                 
        unique_id: wallbox_charge_control                         
      - name: wallbox.ladeleistung.L1                                                                     
        unit_of_measurement: W                                                                            
        address: 0016                                                                                     
        data_type: uint32                                                                                 
        unique_id: wallbox_l1_charging_power                                                              
        device_class: power                                                                               
        state_class: measurement                                                                          
      - name: wallbox.ladeleistung.L2                                                                     
        unit_of_measurement: W                                                                            
        address: 0020                                                                                     
        data_type: uint32                                                                                 
        unique_id: wallbox_l2_active_power                                                                
        device_class: power                                                                               
        state_class: measurement                                                                          
      - name: wallbox.ladeleistung.L3                                                                     
        unit_of_measurement: W                                                                            
        address: 0024                                                                                     
        data_type: uint32                                                                                 
        unique_id: wallbox_l3_active_power                                                                
        device_class: power                                                                               
        state_class: measurement                                                                          
      - name: wallbox.ladeleistung                                                                        
        unit_of_measurement: W                                                                            
        address: 0012                                                                                     
        data_type: uint32                                                                                 
        unique_id: wallbox_active_power                                                                   
        device_class: power                                                                               
        state_class: measurement

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions