wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
312 stars 96 forks source link

Error setting up entrysolax for solax_modbus #69

Closed motclem closed 2 years ago

motclem commented 2 years ago

Having deleted the integration I don't upgrading the components in HACS when I try to re-add the integration I get the following error message: This error originated from a custom integration.

Logger: homeassistant.config_entries Source: custom_components/solax_modbus/init.py:254 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 20:03:43 (1 occurrences) Last logged: 20:03:43

Error setting up entry SolaX for solax_modbus Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/solax_modbus/init.py", line 89, in async_setup_entry inverter_data = hub.read_holding_registers(unit=hub._modbus_addr, address=0x0, count=7) File "/config/custom_components/solax_modbus/init.py", line 254, in read_holding_registers return self._client.read_holding_registers(address, count, **kwargs) File "/usr/local/lib/python3.9/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers return self.execute(request) File "/usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 108, in execute raise ConnectionException("Failed to connect[%s]" % (self.str())) pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.151:502)]

Read my mind

infradom commented 2 years ago

You had a typo on the IP address: 192.168.151 It should have 4 parts

motclem commented 2 years ago

Thank you sorry for wasting your time I'm an idiot!

On 26 Apr 2022, at 20:17, Jan C @.***> wrote:

You had a typo on the IP address: 192.168.151 It should have 4 ports

— Reply to this email directly, view it on GitHub https://github.com/wills106/homsassistant-solax-modbus/issues/69#issuecomment-1110159976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAX7TIEZC2KX72ZOO57VZ3VHA6NVANCNFSM5UMZ7FZA. You are receiving this because you authored the thread.

infradom commented 2 years ago

Dont worry, it happens to me also ..

motclem commented 2 years ago

Thank you:-) on my overview dashboard i angle used to have drop downs to select the run mode sliders for other parameters why would they have disappeared?

On 26 Apr 2022, at 20:22, Jan C @.***> wrote:

Dont worry, it happens to me also ..

— Reply to this email directly, view it on GitHub https://github.com/wills106/homsassistant-solax-modbus/issues/69#issuecomment-1110164394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAX7TNBNKI46H7QWDKUFJDVHA7AZANCNFSM5UMZ7FZA. You are receiving this because you authored the thread.

wills106 commented 2 years ago

Number and select entities need to be manually added to a Dashboard.

For example on my Gen3 X1 I manually add a card in like:

entities:
  - entity: sensor.solax_battery_capacity
  - entity: sensor.solax_battery_temperature
  - entity: sensor.solax_battery_power_charge
  - entity: sensor.solax_battery_voltage_charge
  - entity: sensor.solax_battery_current_charge
  - entity: select.solax_charger_use_mode
  - entity: select.solax_allow_grid_charge
  - entity: number.solax_battery_charge_max_current
  - entity: number.solax_battery_discharge_max_current
  - entity: number.solax_battery_minimum_capacity
  - entity: number.solax_forcetime_period_1_max_capacity
  - entity: number.solax_forcetime_period_2_max_capacity
  - entity: select.solax_charger_start_time_1
  - entity: select.solax_charger_end_time_1
  - entity: select.solax_charger_start_time_2
  - entity: select.solax_charger_end_time_2
  - entity: button.solax_battery_awaken
  - entity: button.solax_unlock_inverter
  - entity: button.solax_unlock_inverter_advanced
show_header_toggle: false
title: SolaX Battery
type: entities
infradom commented 2 years ago

Maybe your inverter is not recognized (we use the first digits of the serial number to determine which inverter you have). Is there an error message about unrecognized inverter in the logs? See Discussion #26

motclem commented 2 years ago

Ok Great thanksin the previous version I just seem to appear.

On 26 Apr 2022, at 20:36, wills106 @.***> wrote:

Number and select entities need to be manually added to a Dashboard.

For example on my Gen3 X1 I manually add a card in like:

entities:

  • entity: sensor.solax_battery_capacity
  • entity: sensor.solax_battery_temperature
  • entity: sensor.solax_battery_power_charge
  • entity: sensor.solax_battery_voltage_charge
  • entity: sensor.solax_battery_current_charge
  • entity: select.solax_charger_use_mode
  • entity: select.solax_allow_grid_charge
  • entity: number.solax_battery_charge_max_current
  • entity: number.solax_battery_discharge_max_current
  • entity: number.solax_battery_minimum_capacity
  • entity: number.solax_forcetime_period_1_max_capacity
  • entity: number.solax_forcetime_period_2_max_capacity
  • entity: select.solax_charger_start_time_1
  • entity: select.solax_charger_end_time_1
  • entity: select.solax_charger_start_time_2
  • entity: select.solax_charger_end_time_2
  • entity: button.solax_battery_awaken
  • entity: button.solax_unlock_inverter
  • entity: button.solax_unlock_inverter_advanced show_header_toggle: false title: SolaX Battery type: entities — Reply to this email directly, view it on GitHub https://github.com/wills106/homsassistant-solax-modbus/issues/69#issuecomment-1110176317, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAX7TLUVUO4VOU2YH2N4K3VHBATTANCNFSM5UMZ7FZA. You are receiving this because you authored the thread.
wills106 commented 2 years ago

@motclem did you manage to get the Integration installed ok?

If you did, is it ok I close this Issue down?

wills106 commented 2 years ago

Closing issue as no further related issues reported.