I gave this add-on a shot as it sounds really handy, but whenever I try to use it in an automation, I get this error:
And this pops up in the debug logs:
2026-01-16 23:03:41.577 INFO (MainThread) [custom_components.matter_time_sync] Starting sync for node 3 (ep 0)
2026-01-16 23:03:41.588 DEBUG (MainThread) [custom_components.matter_time_sync] Server Welcome: {'fabric_id': 2, 'compressed_fabric_id': 7760850010980266393, 'schema_version': 11, 'min_supported_schema_version': 9, 'sdk_version': '2025.7.0', 'wifi_credentials_set': False, 'thread_credentials_set': False, 'bluetooth_enabled': False}
2026-01-16 23:03:42.194 ERROR (MainThread) [custom_components.matter_time_sync] FAILED: Time sync error: Matter Server Error: {'message_id': '2', 'error_code': 0, 'details': 'InteractionModelError: ConstraintError (0x87)'}
2026-01-16 23:03:42.196 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Matter Server Error: {'message_id': '2', 'error_code': 0, 'details': 'InteractionModelError: ConstraintError (0x87)'}
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 1011, 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 2819, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2862, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/matter_time_sync/__init__.py", line 58, in handle_sync_time
await syncer.run_sync(node_id, endpoint)
File "/config/custom_components/matter_time_sync/__init__.py", line 102, in run_sync
await self.send_command(ws, node_id, endpoint, CLUSTER_ID_TIME_SYNC, CMD_ID_SET_DST_OFFSET, "SetDSTOffset", {"DSTOffset": [dst_obj]})
File "/config/custom_components/matter_time_sync/__init__.py", line 124, in send_command
if "error_code" in response: raise Exception(f"Matter Server Error: {response}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Matter Server Error: {'message_id': '2', 'error_code': 0, 'details': 'InteractionModelError: ConstraintError (0x87)'}
2026-01-16 23:03:42.207 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546786874432] Error handling message: Unknown error (unknown_error) decryption from 192.168.1.66 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 1050, in handle_execute_script
script_result = await script_obj.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
msg.get("variables"), context=context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1837, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 460, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 556, in _handle_exception
raise exception
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 1011, 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 2819, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2862, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/matter_time_sync/__init__.py", line 58, in handle_sync_time
await syncer.run_sync(node_id, endpoint)
File "/config/custom_components/matter_time_sync/__init__.py", line 102, in run_sync
await self.send_command(ws, node_id, endpoint, CLUSTER_ID_TIME_SYNC, CMD_ID_SET_DST_OFFSET, "SetDSTOffset", {"DSTOffset": [dst_obj]})
File "/config/custom_components/matter_time_sync/__init__.py", line 124, in send_command
if "error_code" in response: raise Exception(f"Matter Server Error: {response}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Matter Server Error: {'message_id': '2', 'error_code': 0, 'details': 'InteractionModelError: ConstraintError (0x87)'}
And this appears in the Matter server logs:
2026-01-16 23:07:44.515 (MainThread) ERROR [matter_server.server] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/matter_server/server/client_handler.py", line 213, in _run_handler
raise err
File "/usr/local/lib/python3.12/site-packages/matter_server/server/client_handler.py", line 196, in _run_handler
result = await result
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/matter_server/server/device_controller.py", line 717, in send_device_command
return await self._chip_device_controller.send_command(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/matter_server/server/sdk.py", line 308, in send_command
return await self._chip_controller.SendCommand(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/chip/ChipDeviceCtrl.py", line 1552, in SendCommand
return await future
^^^^^^^^^^^^
chip.interaction_model.InteractionModelError: InteractionModelError: ConstraintError (0x87)
Any clues on what’s up?