You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entity "Home Energy Gateway Off-grid operation", which normally functions as a switch for the off-gird operation mode has failed multiple times in the last day with the message "Failed to perform the action switch/turn_on. Setting off-grid operation to IslandMode.OFFGRID failed: Access denied for resource https://ip-redacted/api/v2/islanding/mode: Unable to POST to resource: User does not have adequate access rights"
The issue was first noticed the morning of 12/23/24, though it could have begun anytime after 10:10PM EST 12/21/24 as the associated automation does not run over weekends and therefore I only noticed the issue ysterday morning.
What version of Home Assistant Core has the issue?
2024.12.5
What was the last working version of Home Assistant Core?
Note: This automation currently has a red "Automation is unavailable" banner across the top and cannot be enabled. This automation had been functional.if:
- condition: triggerid:
- fthen:
- type: turn_ondevice_id: 311aef66d1c1f060b5f5741b9b09cfd9entity_id: 93861d412551b6006951e1fe15d9a8fedomain: switch
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: December 23, 2024 at 5:37:52 PM (9 occurrences)
Last logged: 6:19:55 AM
[547041072400] Unexpected exception
[546967726560] Unexpected exception
[547037671008] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/powerwall/switch.py", line 59, in _async_set_island_mode
await self.power_wall.set_island_mode(island_mode)
File "/usr/local/lib/python3.13/site-packages/tesla_powerwall/powerwall.py", line 185, in set_island_mode
await self._api.post_islanding_mode({"island_mode": mode.value}),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tesla_powerwall/api.py", line 262, in post_islanding_mode
return await self.post("v2/islanding/mode", body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tesla_powerwall/api.py", line 134, in post
return await self._process_response(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tesla_powerwall/api.py", line 78, in _process_response
await self._handle_error(response)
File "/usr/local/lib/python3.13/site-packages/tesla_powerwall/api.py", line 53, in _handle_error
raise AccessDeniedError(
...<3 lines>...
)
tesla_powerwall.error.AccessDeniedError: Access denied for resource https://192.168.10.5/api/v2/islanding/mode: Unable to POST to resource: User does not have adequate access rights
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/powerwall/switch.py", line 50, in async_turn_on
await self._async_set_island_mode(IslandMode.OFFGRID)
File "/usr/src/homeassistant/homeassistant/components/powerwall/switch.py", line 61, in _async_set_island_mode
raise HomeAssistantError(
f"Setting off-grid operation to {island_mode} failed: {ex}"
) from ex
homeassistant.exceptions.HomeAssistantError: Setting off-grid operation to IslandMode.OFFGRID failed: Access denied for resource https://192.168.10.5/api/v2/islanding/mode: Unable to POST to resource: User does not have adequate access rights
Additional information
Thank you all for the hard work and amazing project!
The text was updated successfully, but these errors were encountered:
Hey there @bdraco, @jrester, @daniel-simpson, mind taking a look at this issue as it has been labeled with an integration (powerwall) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of powerwall can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign powerwall Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
The entity "Home Energy Gateway Off-grid operation", which normally functions as a switch for the off-gird operation mode has failed multiple times in the last day with the message "Failed to perform the action switch/turn_on. Setting off-grid operation to IslandMode.OFFGRID failed: Access denied for resource https://ip-redacted/api/v2/islanding/mode: Unable to POST to resource: User does not have adequate access rights"
The issue was first noticed the morning of 12/23/24, though it could have begun anytime after 10:10PM EST 12/21/24 as the associated automation does not run over weekends and therefore I only noticed the issue ysterday morning.
What version of Home Assistant Core has the issue?
2024.12.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tesla Powerwall
Link to integration documentation on our website
https://www.home-assistant.io/integrations/powerwall
Diagnostics information
home-assistant_powerwall_2024-12-24T11-28-26.725Z.zip
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Thank you all for the hard work and amazing project!
The text was updated successfully, but these errors were encountered: