@Freakandel
I just reviewed the code and it seems that you don’t need the solax_local_settings part, it doesnt have a reference anywhere, so you could remove it.
I also compared the data from solax_local and Solaxcloud.com and the following mapping differs between us:
Your code:
solax_local_pv_output > 'Data')[11]
solax_local_voltage_ac > 'Data')[5]
solax_local_voltage_dc > 'Data')[2]
solax_local_current_dc > 'Data')[0]
I think that these should change to:
Data 11 > solax_local_pv1_power
Data 5 > solax_local_network_voltage
Data 2 > solax_local_pv1_voltage
Data 0 > solax_local_pv1_current
Beside total yield and daily yield should contain state class total_increasing, so you can use this data in the energy dashboard and for long term statics.
One last thing: You’re missing the operation mode of the inverter so you know the status:
- name: "Solax Local Inverter Operation Mode"
unique_id: solax_local_inverter_operation_mode
icon: mdi:solar-power-variant
state: >
{% if state_attr('sensor.solax_local', 'Data')[68] == 0 %}Wait
{% elif state_attr('sensor.solax_local', 'Data')[68] == 1 %}Check
{% elif state_attr('sensor.solax_local', 'Data')[68] == 2 %}Normal
{% elif state_attr('sensor.solax_local', 'Data')[68] == 3 %}Fault
{% elif state_attr('sensor.solax_local', 'Data')[68] == 4 %}Permanent Fault
{% elif state_attr('sensor.solax_local', 'Data')[68] == 5 %}Update
{% elif state_attr('sensor.solax_local', 'Data')[68] == 6 %}EPS Check
{% elif state_attr('sensor.solax_local', 'Data')[68] == 7 %}EPS
{% elif state_attr('sensor.solax_local', 'Data')[68] == 8 %}Self-test
{% elif state_attr('sensor.solax_local', 'Data')[68] == 9 %}Idle
{% elif state_attr('sensor.solax_local', 'Data')[68] == 10 %}Standby
{% elif state_attr('sensor.solax_local', 'Data')[68] == 11 %}Pv Wake Up Bat
{% elif state_attr('sensor.solax_local', 'Data')[68] == 12 %}Gen Check
{% elif state_attr('sensor.solax_local', 'Data')[68] == 13 %}Gen Run
{% else %}Unknown{% endif %}
Do whatever you want with this information