2024-02-12 21:51:06.195 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Energy Gateway for powerwall
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 133, in async_setup_entry
base_info = await _login_and_fetch_base_info(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 219, in _login_and_fetch_base_info
return await _call_base_info(power_wall, host)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 241, in _call_base_info
raise e.exceptions[0] from None
File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/powerwall.py", line 127, in get_batteries
return [BatteryResponse.from_dict(battery) for battery in batteries]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/responses.py", line 305, in from_dict
grid_state=GridState(src["pinv_grid_state"]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 744, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 1158, in __new__
raise ve_exc
ValueError: '' is not a valid GridState
2024-02-12 22:07:03.881 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Energy Gateway for powerwall
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 133, in async_setup_entry
base_info = await _login_and_fetch_base_info(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 219, in _login_and_fetch_base_info
return await _call_base_info(power_wall, host)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/__init__.py", line 241, in _call_base_info
raise e.exceptions[0] from None
File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/powerwall.py", line 127, in get_batteries
return [BatteryResponse.from_dict(battery) for battery in batteries]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/responses.py", line 305, in from_dict
grid_state=GridState(src["pinv_grid_state"]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 744, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 1158, in __new__
raise ve_exc
ValueError: '' is not a valid GridState
This likely indicates that one or more of your Powerwall batteries is offline or disabled. You may have some luck using the Netzero for Tesla mobile app to further diagnose your local setup.
There are two open issues on GitHub related to this: