-
Notifications
You must be signed in to change notification settings - Fork 76
Description
I have been an Aarlo integration user for a long time but I keep getting the error message that I describe below. It does not seem to break or cause any other issues but I like to keep a clean error log file.
- The Home Assistant install type: Docker version 29.0.1, build eedd969
- The Home Assistant version. 2025.11.2
- The Aarlo version: 8.1.19
I have migrated to the new Arlo interface long ago and have changed all the needed mode and location changes. Again, everything works but would like to clear up these errors. Several different error messages are thrown but their timestamps are all the same.
First error message:
Logger: pyaarlo
Source: /usr/local/lib/python3.13/site-packages/pyaarlo/init.py:744
First occurred: November 21, 2025 at 7:09:16 PM (3 occurrences)
Last logged: 9:19:16 AM
job-error=AttributeError Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/pyaarlo/background.py", line 35, in _run_next job"callback" ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/init.py", line 417, in _refresh_bases base.update_modes(initial) ~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/base.py", line 441, in update_modes curr_location.update_mode() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/location.py", line 158, in update_mode mode_id = data.get("properties", {}).get('mode') ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'
job-error=AttributeError Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/pyaarlo/background.py", line 35, in _run_next job"callback" ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/base.py", line 175, in _event_handler self.update_modes() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/base.py", line 441, in update_modes curr_location.update_mode() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/pyaarlo/location.py", line 158, in update_mode mode_id = data.get("properties", {}).get('mode') ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'
Second error message:
Logger: homeassistant.components.script.camera_automation
Source: helpers/script.py:524
integration: Script (documentation, issues)
First occurred: 12:01:15 AM (3 occurrences)
Last logged: 1:01:15 AM
Camera Automation: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1009, in _async_step_call_service
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2816, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2859, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aarlo/alarm_control_panel.py", line 140, in async_service_callback
await hass.async_add_executor_job(service_callback, call)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/aarlo/alarm_control_panel.py", line 136, in service_callback
alarm_mode_service(hass, call)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/config/custom_components/aarlo/alarm_control_panel.py", line 522, in alarm_mode_service
get_entity_from_domain(hass, ALARM_DOMAIN, entity_id).set_mode_in_ha(mode)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/config/custom_components/aarlo/alarm_control_panel.py", line 461, in set_mode_in_ha
self._location.mode = mode
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/location.py", line 143, in mode
mode_revision = data.get("revision")
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
Camera Automation Script:
camera_automation:
alias: Camera Automation
description: 'Changes mode to auto camera and will follow schedule'
sequence:
- service: aarlo.alarm_set_mode
data_template:
entity_id: alarm_control_panel.aarlo_location_home
mode: >
{% if states('sensor.home_occupied') == 'Home' %}
{% if states('sensor.known_guest_status') == 'Home' %}
{% if states.sun.sun.attributes.elevation < -3 %}
armHome
{% else %}
standby
{% endif %}
{% else %}
{% if states.sun.sun.attributes.elevation < -3 and states('sensor.sleep_awake') == 'awake' %}
armHome
{% elif states('sensor.sleep_awake') == 'awake' %}
standby
{% else %}
armAway
{% endif %}
{% endif %}
{% else %}
armAway
{% endif %}