Problem with Modbus Siemens Logo after upgrade to 6.4

After upgrade to Home Assistant 6.4, the Modbus connection with my Siemens Logo did stop working. I did get allot errors. After some time puzzle, I figure out that I needed to rewrite the Modbus Part.

The old configuration was build like:

# Modbus configuration
modbus:
  name: hub1
  type: tcp
  host: 192.168.9.10
  port: 502
#
switch:
  platform: modbus
  scan_interval: 1
  coils:
   - name: Logo_Watchdog
     hub: hub1
     slave: 1
     coil: 80
   - name: Logo_Watchdog_return
     hub: hub1
     slave: 1
     coil: 81
   - name: Logo_Manual
     hub: hub1
     slave: 1
     coil: 84
   - name: Logo_Manual_return
     hub: hub1
     slave: 1
     coil: 85
   - name: Logo_Lights_House_Front
     hub: hub1
     slave: 1
     coil: 96
#
#
sensor:
  platform: modbus
  scan_interval: 30
  registers:
    - name: Logo_Cabinet_temperature
      hub: hub1
      unit_of_measurement: °C
      slave: 1
      register: 528
      register_type: holding
      #
    - name: Logo-Outside_temperature
      hub: hub1
      unit_of_measurement: °C
      slave: 1
      register: 529
      register_type: holding
      #
......
And so on.......

Some how there is in the Home Assistant 6.4 version some new Modbus structure.

I did now created the following, witch if not final, but for the moment I can see all values/states and can turn lights on and off. Maybe it helps some one who has also problems with the Siemens Logo / Home Assistant connection.

#################################
# Modbus Siemens Logo Configuration #
#################################
modbus:
  name: hub1
  close_comm_on_error: true
  delay: 5
  timeout: 5
  type: tcp
  host: 192.168.9.10
  port: 502
  switches:
   - name: "Logo_Watchdog"
     scan_interval: 1
     slave: 1
     address: 80
     write_type: coil
     verify: 
        input_type: coil
        address: 81
     #
   - name: "Logo_Manual"
     scan_interval: 1
     slave: 1
     address: 84
     write_type: coil
     verify: 
        input_type: coil
        address: 85   
     #
#
  sensors:
    - name: Logo_Cabinet_temperature
      scan_interval: 15
      unit_of_measurement: °C
      slave: 1
      address: 528
      input_type: holding
      precision: 1
      #
    - name: Logo-Outside_temperature
      scan_interval: 15
      unit_of_measurement: °C
      slave: 1
      address: 529
      input_type: holding
      precision: 1
      #
#
  binary_sensors:
    - name: Logo_I1_Daylight_sensor
      scan_interval: 10
      slave: 1
      address: 0
      input_type: discrete_input
      #
    - name: Logo_I2_Grid_on
      scan_interval: 1
      slave: 1
      address: 1
      device_class: power
      input_type: discrete_input
      #
    - name: Logo_I3_Generator_on
      scan_interval: 1
      slave: 1
      address: 2
      device_class: power
      input_type: discrete_input
      #
    - name: Logo_I4_Motion_detection
      scan_interval: 1
      slave: 1
      address: 3
      device_class: motion
      input_type: discrete_input
      #
    - name: Logo_I5_Motion_detection
      scan_interval: 1
      slave: 1
      address: 4
      device_class: motion
      input_type: discrete_input
      #
    - name: Logo_Q1_Ventilator
      scan_interval: 1
      slave: 1
      address: 8193
      device_class: power
      #
    - name: Logo_Q8_Power_Central_Heating
      scan_interval: 1
      slave: 1
      address: 8199
      device_class: power
      #    
#
  lights:
    - name: "Logo_Lights_House_Front"
      scan_interval: 10
      slave: 1
      address: 96
      write_type: coil
      verify: 
         input_type: coil
         address: 97
     #
    - name: "Logo_Lights_House_Side"
      scan_interval: 10
      slave: 1
      address: 104
      write_type: coil
      verify: 
         input_type: coil
         address: 105    
    #
    - name: "Logo_Lights_House_Back"
      scan_interval: 10
      slave: 1
      address: 112
      write_type: coil
      verify: 
         input_type: coil
         address: 113    
    #
    - name: "Logo_Lights_House_Spare"
      scan_interval: 10
      slave: 1
      address: 120
      write_type: coil
      verify: 
         input_type: coil
         address: 121    
    #
    - name: "Logo_Lights_Garden_Down"
      scan_interval: 10
      slave: 1
      address: 128
      write_type: coil
      verify: 
         input_type: coil
         address: 129    
    #
    - name: "Logo_Lights_Roof_Socket"
      scan_interval: 10
      slave: 1
      address: 136
      write_type: coil
      verify: 
         input_type: coil
         address: 137    
    #
#####
# End Modbus
#####
1 Like

Huh??
The latest Core is 2021.6.4 Did you mean that?
HaOS ( formerly HassOS) 6 was recently released too.

I did mean 2021.6.4. In the older version I could as with “coil” for the state of a adres of the Siemens Logo. Now you need to do it with register and register type.

Some times it’s annoying when things stop to work after a update.

Hi @Martijn45,

Before updating your HA instance, it’s recommended to go through the release notes. It can save you a lot of time. The team does a very good job in documenting all breaking changes linked to a release.

In the release 2021.6, a breaking change in the Modbus integration was announced.
Link: 2021.6: A little bit of everything - Home Assistant

The configuration style has changed, to secure against illegal configurations.

1 Like

This presents a very good example of why it is difficult when only upgrading periodically. You should read all the interim Release Notes for breaking changes.

I did not try to install the latest update (core 2023.9.1) that is available from last wekend. So I don’t know about changes in that one. Currently im running with the previous version 2023.9.0.

The problem that I had was that HA did change in 2021a breaking change in the Modbus integration. It ended up for me to rewrite the Modbus configuration I had.

At the moment I don’t have any problems with the Modbus integration. I read out and write digital and analog registers on the Siemens Logo and I also read some registers of a few ORNO kW/h meters.
The Home Assistant system also communicate with my Victron Energy system true Modbus but I use a different integration for that one.

If you need some help with the communication of Home Assistant and the Siemens Logo, let me know, maybe I can help you on the way.

Kind regards
Martin
(European time zone)