Logger: homeassistant.components.tradfri
Source: components/tradfri/__init__.py:129
Integration: IKEA TRÅDFRI (documentation, issues)
First occurred: 12:49:18 (4 occurrences)
Last logged: 12:51:49
Keep-alive failed
is happening, and the automation is:
- alias: Reload Tradfri integration
id: reload_tradfri_integration
mode: restart
trigger:
- platform: event
event_type: system_log_event
event_data:
level: WARNING
id: observation
- platform: event
event_type: system_log_event
event_data:
level: ERROR
id: failed
condition:
# or:
# - >
# {{trigger.event.data.name == 'tradfri.base_class' and 'Observation failed for'
# in trigger.event.data.message[0]}}
- >
{{trigger.event.data.name == 'tradfri' and 'Keep-alive failed'
in trigger.event.data.message[0]}}
# - >
# {{trigger.event.data.name == 'coap' and
# 'Error received in UDP connection under DTLS' in trigger.event.data.message[0]}}
action:
- service: system_log.write
data:
message: >
Ikea Tradfri '{{trigger.id}}' on {{trigger.event.data.name}} issue logged, reloading integration
level: warning
logger: homeassistant.components.tradfri
- service: script.reload_tradfri_integration
- service: system_log.write
data:
message: >
Ikea Tradfri integration was reloaded because of {{trigger.id}}
level: warning
logger: homeassistant.components.tradfri
- service: persistent_notification.create
data:
title: >
{{trigger.event.data.level}}: Tradfri reloaded
message: >
{{now().timestamp()|timestamp_custom('%X')}}: Ikea Tradfri integration was
reloaded because of {{trigger.id}}:
Message: {{trigger.event.data.message[0]}},
Logger: {{trigger.event.data.name}},
Source: {{trigger.event.data.source}},
Level: {{trigger.event.data.level}}
Full data: {{trigger.event}}
this did work before, so unless system internals have changed, something I can not get my finger behind this.
new post now, because the linked post above is rather old…
I commented the other triggers, because I want to rule out this issue first.
it must be something in the condition, as that wont pass: