CharlesGillanders / homeassistant-alphaESS

Monitor your energy generation, storage, and usage data using the official API from Alpha ESS.
MIT License
101 stars 22 forks source link

AlphaESS contains no entities #139

Open darkpainy opened 3 weeks ago

darkpainy commented 3 weeks ago

Hi,

I have an issue where I re-added my AlphaESS integration, setup is successfull but there are no entities found. In the log I see this error: (unexpected keyword arugment "model_id"

2024-10-18 11:57:21.755 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform alphaess Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 616, in _async_add_entity device = dev_reg.async_get(self.hass).async_get_or_create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'model_id' 2024-10-18 11:57:21.759 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up alphaess platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 616, in _async_add_entity device = dev_reg.async_get(self.hass).async_get_or_create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'model_id'

image
Poshy163 commented 3 weeks ago

This might be due to the flakyness with the API, are you able to use postman (the data collection is here: https://github.com/CharlesGillanders/alphaess-openAPI/blob/main/AlphaESS%20Open%20API.postman_collection.json)

and get me some of the results? typically that happens due to not being able to call getEssList

dukevyner commented 6 days ago

I'm having the exact same issue, please excuse the ignorance, how exactly do we "use poastman"?