wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some AlphaESS, Growatt, Sofar, Solinteg, Solis, SRNE, Swatten)
317 stars 101 forks source link

[BUG] #358

Closed mif11k closed 1 year ago

mif11k commented 1 year ago

Describe the bug I get no data for the invertor. I get only 4 entities: Battery awaken, Unlock inverter, Unlock inverter advanced and Inverter temperature. All entities have "unknown" state. I get no inverter controls.

As a temporary workaround I read the values vie REST API as described here (solaxg4.yaml): https://www.homeassistant-cz.cz/viewtopic.php?p=4397#p4397.

Mandatory details

  1. Integration Version: 2023.03.1
  2. HA Version: (2023.3.5)
  3. Inverter Brand: Solax X3-Hybrid G4
  4. Plugin Used: homeassistant-solax-modbus
  5. First 6 digits of Serial: H34T1
  6. Connection Method: TCP

Detailed Error Log 2023-03-18 19:41:13.648 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-18 19:41:29.528 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x0 failed; other address may succeed 2023-03-18 19:41:34.552 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x300 failed; other address may succeed 2023-03-18 19:41:34.555 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: cannot find serial number, even not for MIC 2023-03-18 19:41:34.559 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] unrecognized inverter type - serial number : unknown 2023-03-18 19:41:56.477 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[0] | int(default=2300) / 10}}") 2023-03-18 19:41:56.486 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[0] | int(default=2300) / 10}}")' for attribute '_attr_native_value' in entity 'sensor.solax_acu1' 2023-03-18 19:41:56.493 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[1] | int(default=2300) / 10}}") 2023-03-18 19:41:56.500 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 1') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[1] | int(default=2300) / 10}}")' for attribute '_attr_native_value' in entity 'sensor.solax_acu2' 2023-03-18 19:41:56.503 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[2] | int(default=2300) / 10 }}") 2023-03-18 19:41:56.508 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 2') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[2] | int(default=2300) / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_acu3' 2023-03-18 19:41:56.511 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[3] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[3] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[3] | int(default=0) / 10 }}{% endif %}") 2023-03-18 19:41:56.515 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 3') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[3] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[3] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[3] | int(default=0) / 10 }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_aci1' 2023-03-18 19:41:56.518 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[4] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[4] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[4] | int(default=0) / 10 }}{% endif %}") 2023-03-18 19:41:56.522 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 4') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[4] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[4] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[4] | int(default=0) / 10 }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_aci2' 2023-03-18 19:41:56.527 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[5] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[5] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[5] | int(default=0) / 10 }}{% endif %}") 2023-03-18 19:41:56.530 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 5') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[5] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[5] - 65536) | int(default=0) / 10 }} {% else %}{{ state_attr('sensor.solax', 'Data')[5] | int(default=0) / 10 }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_aci3' 2023-03-18 19:41:56.534 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[6] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[6] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[6] | int(default=0) }}{% endif %}") 2023-03-18 19:41:56.538 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 6') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[6] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[6] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[6] | int(default=0) }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_acp1' 2023-03-18 19:41:56.542 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[7] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[7] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[7] | int(default=0) }}{% endif %}") 2023-03-18 19:41:56.546 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 7') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[7] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[7] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[7] | int(default=0) }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_acp2' 2023-03-18 19:41:56.550 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[8] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[8] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[8] | int(default=0) }}{% endif %}") 2023-03-18 19:41:56.553 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 8') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[8] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[8] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[8] | int(default=0) }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_acp3' 2023-03-18 19:41:56.558 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[9] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[9] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[9] | int(default=0) }}{% endif %}") 2023-03-18 19:41:56.562 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 9') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[9] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[9] - 65536) | int(default=0) }} {% else %}{{ state_attr('sensor.solax', 'Data')[9] | int(default=0) }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_ac_power' 2023-03-18 19:41:56.565 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[16] | int(default=5000) / 100}}") 2023-03-18 19:41:56.569 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 16') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[16] | int(default=5000) / 100}}")' for attribute '_attr_native_value' in entity 'sensor.solax_acf1' 2023-03-18 19:41:56.573 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[17] | int(default=5000) / 100}}") 2023-03-18 19:41:56.577 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 17') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[17] | int(default=5000) / 100}}")' for attribute '_attr_native_value' in entity 'sensor.solax_acf2' 2023-03-18 19:41:56.582 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[18] | int(default=5000) / 100}}") 2023-03-18 19:41:56.586 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 18') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[18] | int(default=5000) / 100}}")' for attribute '_attr_native_value' in entity 'sensor.solax_acf3' 2023-03-18 19:41:56.589 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[10] | int(default=0) / 10}}") 2023-03-18 19:41:56.593 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 10') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[10] | int(default=0) / 10}}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv1u' 2023-03-18 19:41:56.597 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[11] | int(default=0) / 10}}") 2023-03-18 19:41:56.601 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 11') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[11] | int(default=0) / 10}}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv2u' 2023-03-18 19:41:56.605 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[12] | int(default=0) / 10 }}") 2023-03-18 19:41:56.609 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 12') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[12] | int(default=0) / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv1i' 2023-03-18 19:41:56.613 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[13] | int(default=0) / 10 }}") 2023-03-18 19:41:56.617 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 13') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[13] | int(default=0) / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv2i' 2023-03-18 19:41:56.620 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[14] | int(default=0) }}") 2023-03-18 19:41:56.624 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 14') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[14] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv1p' 2023-03-18 19:41:56.628 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[15] | int(default=0) }}") 2023-03-18 19:41:56.632 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 15') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[15] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv2p' 2023-03-18 19:41:56.636 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ (states('sensor.solax_pv1p')|int + states('sensor.solax_pv2p')|int) }}") ValueError: Template error: int got invalid input 'unavailable' when rendering template '{{ (states('sensor.solax_pv1p')|int + states('sensor.solax_pv2p')|int) }}' but no default was specified homeassistant.exceptions.TemplateError: ValueError: Template error: int got invalid input 'unavailable' when rendering template '{{ (states('sensor.solax_pv1p')|int + states('sensor.solax_pv2p')|int) }}' but no default was specified 2023-03-18 19:41:56.640 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unavailable' when rendering template '{{ (states('sensor.solax_pv1p')|int + states('sensor.solax_pv2p')|int) }}' but no default was specified') while processing template 'Template("{{ (states('sensor.solax_pv1p')|int + states('sensor.solax_pv2p')|int) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_pv_power' 2023-03-18 19:41:56.644 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[39] | float / 100}}") 2023-03-18 19:41:56.648 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 39') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[39] | float / 100}}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_voltage_2' 2023-03-18 19:41:56.652 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[40] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[40] - 65536) / 100 }} {% else %}{{ state_attr('sensor.solax', 'Data')[40] / 100 }}{% endif %}") 2023-03-18 19:41:56.656 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 40') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[40] > 32767 %}{{ (state_attr('sensor.solax', 'Data')[40] - 65536) / 100 }} {% else %}{{ state_attr('sensor.solax', 'Data')[40] / 100 }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_current_2' 2023-03-18 19:41:56.660 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[41] > 32767 %}{{ state_attr('sensor.solax', 'Data')[41] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[41] }}{% endif %}") 2023-03-18 19:41:56.664 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 41') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[41] > 32767 %}{{ state_attr('sensor.solax', 'Data')[41] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[41] }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_power_2' 2023-03-18 19:41:56.668 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[103] | int(default=0) }}") 2023-03-18 19:41:56.672 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 103') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[103] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_soc_2' 2023-03-18 19:41:56.675 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[106] | int(default=0) / 10 }}") 2023-03-18 19:41:56.680 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 106') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[106] | int(default=0) / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_remain' 2023-03-18 19:41:56.684 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[105] | int(default=0) }}") 2023-03-18 19:41:56.688 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 105') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[105] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_temperature_2' 2023-03-18 19:41:56.692 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[45] | int == 1 %}OK {% else %}Fail{% endif %}") 2023-03-18 19:41:56.696 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 45') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[45] | int == 1 %}OK {% else %}Fail{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_bms' 2023-03-18 19:41:56.700 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[34] > 32767 %}{{ state_attr('sensor.solax', 'Data')[34] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[34] }}{% endif %}") 2023-03-18 19:41:56.704 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 34') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[34] > 32767 %}{{ state_attr('sensor.solax', 'Data')[34] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[34] }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_grid_power' 2023-03-18 19:41:56.708 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% if state_attr('sensor.solax', 'Data')[47] > 32767 %}{{ state_attr('sensor.solax', 'Data')[47] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[47] }}{% endif %}") 2023-03-18 19:41:56.712 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 47') while processing template 'Template("{% if state_attr('sensor.solax', 'Data')[47] > 32767 %}{{ state_attr('sensor.solax', 'Data')[47] - 65536 }} {% else %}{{ state_attr('sensor.solax', 'Data')[47] }}{% endif %}")' for attribute '_attr_native_value' in entity 'sensor.solax_consumption_2' 2023-03-18 19:41:56.715 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[69] 65536) + state_attr('sensor.solax', 'Data')[68]) | float / 10 }}") 2023-03-18 19:41:56.719 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 69') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[69] 65536) + state_attr('sensor.solax', 'Data')[68]) | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_energy_total_2' 2023-03-18 19:41:56.732 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[90] | float / 100 }}") 2023-03-18 19:41:56.736 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 90') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[90] | float / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_grid_out_today_2' 2023-03-18 19:41:56.739 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[92] | float / 100 }}") 2023-03-18 19:41:56.743 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 92') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[92] | float / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_grid_in_today_2' 2023-03-18 19:41:56.747 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[78] | float / 10 }}") 2023-03-18 19:41:56.751 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 78') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[78] | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_out_today' 2023-03-18 19:41:56.756 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[79] | float / 10 }}") 2023-03-18 19:41:56.760 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 79') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[79] | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_in_today' 2023-03-18 19:41:56.763 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[82] | float / 10 }}") 2023-03-18 19:41:56.767 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 82') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[82] | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_energy_today_2' 2023-03-18 19:41:56.771 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[70] | float / 10 }}") 2023-03-18 19:41:56.776 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 70') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[70] | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_energy_bat_today' 2023-03-18 19:41:56.779 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[81] 65536) + state_attr('sensor.solax', 'Data')[80]) | float / 10 }}") 2023-03-18 19:41:56.784 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 81') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[81] 65536) + state_attr('sensor.solax', 'Data')[80]) | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_solar_total' 2023-03-18 19:41:56.787 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[87] 65536) + state_attr('sensor.solax', 'Data')[86]) | float / 100 }}") 2023-03-18 19:41:56.791 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 87') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[87] 65536) + state_attr('sensor.solax', 'Data')[86]) | float / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_grid_out_total_2' 2023-03-18 19:41:56.795 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[89] 65536) + state_attr('sensor.solax', 'Data')[88]) | float / 100 }}") 2023-03-18 19:41:56.799 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 89') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[89] 65536) + state_attr('sensor.solax', 'Data')[88]) | float / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_grid_in_total_2' 2023-03-18 19:41:56.803 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[88] | float / 100 }}") 2023-03-18 19:41:56.807 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 88') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[88] | float / 100 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_consumption_total_2' 2023-03-18 19:41:56.811 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[75] 65536) + state_attr('sensor.solax', 'Data')[74]) | float / 10 }}") 2023-03-18 19:41:56.815 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 75') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[75] 65536) + state_attr('sensor.solax', 'Data')[74]) | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_out_total' 2023-03-18 19:41:56.819 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ ((state_attr('sensor.solax', 'Data')[77] 65536) + state_attr('sensor.solax', 'Data')[76]) | float / 10 }}") 2023-03-18 19:41:56.822 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 77') while processing template 'Template("{{ ((state_attr('sensor.solax', 'Data')[77] 65536) + state_attr('sensor.solax', 'Data')[76]) | float / 10 }}")' for attribute '_attr_native_value' in entity 'sensor.solax_battery_in_total' 2023-03-18 19:41:56.834 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: None has no element 2 when rendering '{{ state_attr('sensor.solax', 'Information')[2] }}' 2023-03-18 19:41:56.836 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: None has no element 2 when rendering '{{ state_attr('sensor.solax', 'Information')[2] }}' 2023-03-18 19:41:56.840 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Information')[0] | float | round(1) }}") 2023-03-18 19:41:56.844 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 0') while processing template 'Template("{{ state_attr('sensor.solax', 'Information')[0] | float | round(1) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_nominal_power' 2023-03-18 19:41:56.848 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[46] | int(default=0) }}") 2023-03-18 19:41:56.852 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 46') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[46] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_inverter_temperature_inner_2' 2023-03-18 19:41:56.856 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ state_attr('sensor.solax', 'Data')[54] | int(default=0) }}") 2023-03-18 19:41:56.860 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: None has no element 54') while processing template 'Template("{{ state_attr('sensor.solax', 'Data')[54] | int(default=0) }}")' for attribute '_attr_native_value' in entity 'sensor.solax_inverter_temperature_3' 2023-03-18 19:41:56.908 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: None has no element 2 when rendering '{{ state_attr('sensor.solax', 'Information')[2] }}' 2023-03-18 19:41:58.946 WARNING (MainThread) [homeassistant.components.sensor] Sensor sensor.solax_battery_bms has device class None, state class None and unit % thus indicating it has a numeric value; however, it has the non-numeric value: OK (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22 2023-03-18 21:37:48.558 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-18 21:38:41.746 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x0 failed; other address may succeed 2023-03-18 21:38:46.775 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x300 failed; other address may succeed 2023-03-18 21:38:46.779 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: cannot find serial number, even not for MIC 2023-03-18 21:38:46.784 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] unrecognized inverter type - serial number : unknown

wills106 commented 1 year ago

According to https://kb.solaxpower.com/data/detail/ff8080818407e2a701840a22dec20032.html you can only use Pocket WiFi v3.0 with Modbus on Firmware V3.004.03 it looks like you are on 3.001.02?

mif11k commented 1 year ago

I am currently on 3.003.02 firmware version.

wills106 commented 1 year ago

You'll have to contact SolaX and get a FW update. It should then work?

mif11k commented 1 year ago

I asked SolaX to update the FW, I will report back. Thanks.

mif11k commented 1 year ago

After FW upgrade to 3.008.10, everything is set. Integration works even via the LAN IP.