incub77 / solis2mqtt

Modbus RTU / RS485 to MQTT bridge for Solis Mini solar inverter.
GNU General Public License v3.0
53 stars 12 forks source link

solis_modbus.yaml #6

Open NickSutton opened 1 year ago

NickSutton commented 1 year ago

Line 154, my Pi didn't like the commented text after the register array, I simply moved it to a new line and that solved the issue.

- name: system_datetime description: System DateTime unit: active: true modbus: register: [3072, 3073, 3074, 3075, 3076, 3077] # [year, month, day, hour, minute, seconds]

Needs to be

- name: system_datetime description: System DateTime unit: active: true modbus: register: [3072, 3073, 3074, 3075, 3076, 3077] # [year, month, day, hour, minute, seconds]

If anyone has a full 5G registers config they'd like to share I'd be most grateful, I appear to have some unit/precision errors in mine but will work through them this next weekend.

matthijskooijman commented 1 year ago

I'm not seeing this issue running on an orange pi and a recent Ubuntu version. Maybe this is related to the yaml library version or so? What OS are you on?

chriskearns commented 1 year ago

@NickSutton I used this document to select the values I wanted to monitor, and the correct register value. Note: the register values should be 5 digits and not 4 as you show above.

Here is my solis_modbus.yaml file, so far so good.

solis_modbus.yaml