core: Setting to Home Failed - SystemV3 Object
The problem
Setting the Alarm to Home from an IOS Callback triggered from an Automation failed. I have had this happen a few times now. It fails with ‘SystemV3’ object has no attribute ‘name’. See below for more details.
Environment
- Home Assistant Core release with the issue: 0.107.7
- Last working Home Assistant Core release (if known): Unknown
- Operating environment (Home Assistant/Supervised/Docker/venv): Docker on RPI4
- Integration causing this issue: Simplisafe
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/simplisafe/
Problem-relevant configuration.yaml
---
#
# https://www.home-assistant.io/integrations/simplisafe/
#
simplisafe:
accounts:
- username: !secret simplisafe_username
password: !secret simplisafe_password
Traceback/Error logs
Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.2943988048
Source: components/simplisafe/alarm_control_panel.py:172
Integration: websocket_api (documentation, issues)
First occurred: 8:31:19 PM (1 occurrences)
Last logged: 8:31:19 PM
'SystemV3' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/simplipy/api.py", line 177, in _request
resp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 409, message='Conflict', url='https://api.simplisafe.com/v1/ss3/subscriptions/XXXXX/state/home
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/simplisafe/alarm_control_panel.py", line 170, in async_alarm_arm_home
await self._system.set_home()
File "/usr/local/lib/python3.7/site-packages/simplipy/system/__init__.py", line 404, in set_home
await self._set_state(SystemStates.home)
File "/usr/local/lib/python3.7/site-packages/simplipy/system/v3.py", line 279, in _set_state
"post", f"ss3/subscriptions/{self.system_id}/state/{value.name}"
File "/usr/local/lib/python3.7/site-packages/simplipy/api.py", line 206, in _request
raise RequestError(f"Error requesting data from {endpoint}: {err}")
simplipy.errors.RequestError: Error requesting data from ss3/subscriptions/XXXXX/state/home: 409, message='Conflict', url='https://api.simplisafe.com/v1/ss3/subscriptions/XXXXX/state/home
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1234, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1257, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 198, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 402, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 599, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 433, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/simplisafe/alarm_control_panel.py", line 172, in async_alarm_arm_home
_LOGGER.error('Error while arming "%s" (home): %s', self._system.name, err)
AttributeError: 'SystemV3' object has no attribute 'name'
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
I am going to close this as I have not seen any other issues pertaining to this. I suspect it was an issue with HomeBridge and Smartthings using Simplisafe integrations at the same time.
@bachya, I disabled SmartThings, and ran the automation again, and it failed on the first time. I then got to thinking, I am running HomeBridge on the same PI as Home-Assistant. I wonder if they are getting messed up as they are the same source IP. So, I have removed the Simplisafe Plugin from HomeBridge, restarted the PI, and have tried several more times with no issues. I will continue to monitor.