Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solax X1 boost does not provide identity id sensor.solax_swxxxxxxxx_exported_power in Home assistant anymore #169

Open
japeral opened this issue Jul 2, 2024 · 6 comments

Comments

@japeral
Copy link

japeral commented Jul 2, 2024

I have automations in Home Assistant to engage loads when exported power is below 100W. My solax is in never injecting power to the grid.

I have modified the firmware of my Wifi dongle to expose the API in my home wifi. I can curl the IP of the wifi dongle and I get this:
image

Since few weeks ago, I have seen intermittent issues where my automations does not trigger. I have been updating HA and the Solax Integration when they were available ( I shouldn't ).

I just uninstalled the Solax Integration, and installed it again, but the identity id "sensor.solax_swgxxxxxxx_exported_power" is not available anymore.

image

  1. Is this a known issue?
  2. How can I revert to an older version of the Solax Integration ?

Thank you.

@japeral japeral changed the title Solax X1 boost does not provide identity id sensor.solax_swxxxxxxxx_exported_power anymore Solax X1 boost does not provide identity id sensor.solax_swxxxxxxxx_exported_power in Home assistant anymore Jul 2, 2024
@japeral
Copy link
Author

japeral commented Jul 2, 2024

image

@germanotero
Copy link

Same thing here.. it looks like it takes it ok the first time, but then after a reboot it decides we have a different inverter and defaults to another version...

@japeral
Copy link
Author

japeral commented Oct 8, 2024

I do not know how, but it healed automatically for a while, but I I am suffering this again, entity sensor.solax_swxxxxxxxx_exported_power is gone again, and my automations fails...

This is the log:

2024-10-08 11:48:41.498 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs 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
2024-10-08 11:48:41.502 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration solarman 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
2024-10-08 11:48:41.506 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sonoff 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
2024-10-08 11:48:41.510 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration localtuya 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
2024-10-08 11:48:41.514 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration pid_controller 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
2024-10-08 11:49:08.281 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for sensor.energy_production_today (<class 'homeassistant.components.forecast_solar.sensor.ForecastSolarSensorEntity'>) took 0.544 seconds. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+forecast_solar%22
2024-10-08 11:49:08.499 WARNING (SyncWorker_1) [homeassistant.components.rpi_power.binary_sensor] Under-voltage was detected. Consider getting a uninterruptible power supply for your Raspberry Pi.
2024-10-08 11:49:09.220 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Todos los Microinversores Off (Imported power > 50W 2min)' failed to setup triggers and has been disabled: Unknown entity '958fe7acb8af68b1eb5c088f44cb3fe4'
2024-10-08 11:49:09.222 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Todos los Microinversores On (Imported power < 0W 1min)' failed to setup triggers and has been disabled: Unknown entity '958fe7acb8af68b1eb5c088f44cb3fe4'
2024-10-08 11:49:10.415 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 3.436 seconds (success: True)
2024-10-08 11:49:10.444 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.solax_swxxxxxxxx_today_s_energy (<class 'homeassistant.components.solax.sensor.InverterSensorEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; 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+solax%22
2024-10-08 11:49:12.001 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero1 Off (imported below -300W 1m & Minero2-Off 1m)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.003 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero2 Off (imported below -300W 1m & Minero3-Off 1m)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.004 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero3 Off (imported below -300W 1min & Minero4-Off 30s)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.006 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero4 Off (imported below -300W 30s)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.007 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero1 On (imported above -200W 9m & cargabateria ON 9m)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.009 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero2 On (imported above -200W 9min & minero1-ON 5min)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.011 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero3 On (imported above -200W 9min & minero2-ON 9min)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.015 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Minero4 On (imported above -200W 9min & minero2-ON 9min)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.017 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Carga On & Inversor Bateria 2KWh Off (imported above -150W 5min) ' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:12.018 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'CargaBateria 2Khw Off (imported below -200W 1m & Minero1-Off 1m)' trigger: In 'numeric_state' condition: unknown entity sensor.solax_swxxxxxxxx_exported_power
2024-10-08 11:49:41.815 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.312 seconds (success: True)
2024-10-08 11:50:12.753 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.250 seconds (success: True)
2024-10-08 11:50:43.747 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.246 seconds (success: True)
2024-10-08 11:51:14.745 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.244 seconds (success: True)
2024-10-08 11:51:45.748 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.247 seconds (success: True)
2024-10-08 11:52:16.756 DEBUG (MainThread) [homeassistant.components.solax] Finished fetching solax SWxxxxxxxx data in 1.255 seconds (success: True)

@japeral
Copy link
Author

japeral commented Oct 8, 2024

I realized when the problem reproduces, the it only detects 16 entities on the device. And when all is OK, there is 20 entities (4 more).

@japeral
Copy link
Author

japeral commented Oct 8, 2024

I just investigated more into the problem and I made findings.

Problem:
Discovery is intermittently detecting wrong my inverter as 'x1_mini_v34', when in reality it is an 'X1-Boost with Pocket WiFi 2.034.06'

image

image

@japeral
Copy link
Author

japeral commented Oct 8, 2024

The discovery detection mechanism is clearly not working well. When I force X1_Boost, everything works fine.

image

Intermittent issues like this are difficult to debug and test across all variants.
I believe it would be a more robust solution to manually select the inverter type from HA using a dropdown menu.

@squishykid How could I permanently force X1_boost from HA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants