Hi all,
I have an automation action that usually fails (works on some rare occasion and if ran manually). It is a simple automation that sends a message on Telegram when my Home Assistant Green starts.
Versions:
- Installation method: Home Assistant OS
- Core: 2026.3.1
- Supervisor: 2026.02.3
- Operating System: 17.1
- Frontend: 20260304.0
The automation YAML in question:
alias: "Notify: HA start"
description: ""
triggers:
- event: start
trigger: homeassistant
conditions: []
actions:
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.startup_triggered
data: {}
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- action: telegram_bot.send_message
metadata: {}
data:
message: "{{ now().strftime('%Y-%m-%d %H:%M.%S') }} | Home Assistant Green started"
entity_id:
- notify.telegram_bot_6111111111_1111111111111
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.startup_triggered
data: {}
mode: single
Under Automation Traces, I get this:
Telegram bot âSend messageâ
Executed: March 10, 2026 at 08:38:38
Error: âConfigEntryâ object has no attribute âruntime_dataâ
Result:
params:
domain: telegram_bot
service: send_message
service_data:
message: 2026-03-10 08:38.38 | Home Assistant Green started
entity_id:
- notify.telegram_bot_6111111111_1111111111111
target: {}
running_script: falseStep config
action: telegram_bot.send_message
metadata: {}
data:
message: â{{ now().strftime(ââ%Y-%m-%d %H:%M.%Sââ) }} | Home Assistant Green startedâ
entity_id:
- notify.telegram_bot_6111111111_1111111111111
Under System Log I have this:
Logger: homeassistant.components.automation.ha_notify_start
Source: helpers/script.py:531
integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: 08:38:38 (1 occurrence)
Last logged: 08:38:38
Notify: HA start: Error executing script. Unexpected error for call_service at pos 3: 'ConfigEntry' object has no attribute 'runtime_data'
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 531, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1018, in _async_step_call_service response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<9 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 631, in _async_run_long_action return await long_task ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2817, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2860, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/telegram_bot/__init__.py", line 477, in _async_send_telegram_message service, target_config_entry.runtime_data, target_chat_id ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntry' object has no attribute 'runtime_data'
I donât quite understand whatâs wrong and why this only fails during startup. I tried adding delay thinking it needs time to âstartupâ but the delay doesnât solve the issue.
If anyone can help, it is appreciated. Thanks.