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
#####