esphome-smg-ii icon indicating copy to clipboard operation
esphome-smg-ii copied to clipboard

SRNE ASF Support

Open Fidcom opened this issue 1 year ago • 7 comments

Hi, this may be off topic, but out of all your inverter integrations, this one is the most similar for the srne inverter, and some settings works better compared to the pdf protocol doc. I was able to get all necessary entities to work, but the ones related to DC voltage such as the float, bulk settings, etc., I can only read them, but not write.

number:
  - platform: modbus_controller
    modbus_controller_id: snre
    name: Bulk Charge Voltage
    id: bulk_voltage
    address: 0xE008
    value_type: U_WORD
    register_type: holding
    unit_of_measurement: "V"
    min_value: 48
    max_value: 58.4
    step: 0.4
    lambda: "return  x * 0.4; "      
    write_lambda: "return  x * 2.5; "   
    use_write_multiple: true

  - platform: modbus_controller
    modbus_controller_id: snre
    name: Float Charge Voltage 
    id: float_voltage
    address: 0xE009
    value_type: U_WORD
    register_type: holding
    unit_of_measurement: "V"
    min_value: 48
    max_value: 58.4
    step: 0.4
    lambda: "return  x * 0.4; "      
    write_lambda: "return  x * 2.5; "

When I try to adjust the slider, the error I receive is the following, and the next one if I dont use the "use_write_multiple" function.

Modbus error function code: 0x90 exception: 11 
[21:46:53][E][modbus_controller:068]: Modbus error function code: 0x10 exception: 11 
[21:46:53][E][modbus_controller:077]: Modbus error - last command: function code=0x10 register address = 0xE008 registers count=1 payload size=2

[21:55:48][D][modbus:119]: Modbus error function code: 0x86 exception: 11
[21:55:48][E][modbus_controller:068]: Modbus error function code: 0x6 exception: 11 
[21:55:48][E][modbus_controller:077]: Modbus error - last command: function code=0x6  register address = 0xE009  registers count=1 payload size=2

I don't have this problem with other settings to adjust charge current, etc. Therefore, do you have any idea what the problem might be based on the modbus error? Thank you!

Fidcom avatar May 09 '23 03:05 Fidcom