I get something very similar - must be something to do with the multitasking as it initially complained about the port not being open - now i get this
2022-11-06 17:10:35.102 Error: SDM120M-ID7: Call to function 'onHeartbeat' failed, exception details:
2022-11-06 17:10:35.103 Error: SDM120M-ID7: Traceback (most recent call last):
2022-11-06 17:10:35.103 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/plugin.py", line 134, in onHeartbeat
2022-11-06 17:10:35.103 Error: SDM120M-ID7: _plugin.onHeartbeat()
2022-11-06 17:10:35.104 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/plugin.py", line 85, in onHeartbeat
2022-11-06 17:10:35.104 Error: SDM120M-ID7: Total_System_Power = self.rs485.read_float(12, functioncode=4, numberOfRegisters=2)
2022-11-06 17:10:35.104 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/minimalmodbus.py", line 392, in read_float
2022-11-06 17:10:35.104 Error: SDM120M-ID7: return self._genericCommand(functioncode, registeraddress, numberOfRegisters=numberOfRegisters, payloadformat='float')
2022-11-06 17:10:35.104 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/minimalmodbus.py", line 697, in _genericCommand
2022-11-06 17:10:35.104 Error: SDM120M-ID7: payloadFromSlave = self._performCommand(functioncode, payloadToSlave)
2022-11-06 17:10:35.104 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/minimalmodbus.py", line 795, in _performCommand
2022-11-06 17:10:35.104 Error: SDM120M-ID7: response = self._communicate(request, number_of_bytes_to_read)
2022-11-06 17:10:35.104 Error: SDM120M-ID7: File "/home/pi/domoticz/plugins/SDM120Modbus/minimalmodbus.py", line 930, in _communicate
2022-11-06 17:10:35.104 Error: SDM120M-ID7: raise IOError('No communication with the instrument (no answer)')
2022-11-06 17:10:35.104 Error: SDM120M-ID7: OSError: No communication with the instrument (no answer)
My temp fix at the moment is to disable the device in the hardware tab and re enabled it, this works until a reboot.
I editted "CLOSE_PORT_AFTER_EACH_CALL = True" in domoticz/plugins/SDM120Modbus/minimalmodbus.py - from the following plugin
https://github.com/remcovanvugt/SDM120M ... icz-plugin to get rid of the open port issue.
This plugin has been running fine for over a year.