so Ive managed to catch it:
and in Log:
2022-01-14 14:37:20 ERROR (MainThread) [custom_components.tahoma] Authentication failed while fetching device events data: Bad credentials
2022-01-14 14:37:20 WARNING (MainThread) [custom_components.tahoma] Tahoma issue logged, reloading integration
2022-01-14 14:37:20 WARNING (MainThread) [custom_components.tahoma] Tahoma integration was reloaded because of Error
using the adapted condition:
condition:
- >
{{'Authentication failed while fetching device events data: Bad credentials'
in trigger.event.data.message[0]}}
reveals the error, and apparently the template chokes on the [custom_components.tahoma]
bit of the string. tbh, that feels like a bug, and Ill file an issue on that just to be sure to get the devs opinion on it
full data:
ERROR: Tahoma reloaded
14:37:20: Tahoma integration was
reloaded because of Error:
Message: Authentication failed while fetching device events data: Bad credentials,
Logger: custom_components.tahoma,
Source: ['helpers/update_coordinator.py', 227],
Level: ERROR
Full data: <Event system_log_event[L]: name=custom_components.tahoma, message=['Authentication failed while fetching device events data: Bad credentials'], level=ERROR, source=['helpers/update_coordinator.py', 227], timestamp=1642167440.2023897, exception=, count=1, first_occurred=1642167440.2023897>
in persistent notification created by:
action:
- service: system_log.write
data:
message: >
Tahoma issue logged, reloading integration
level: warning
logger: custom_components.tahoma
# - service: script.reload_tahoma_integration
- service: system_log.write
data:
message: >
Tahoma integration was reloaded because of {{trigger.id}}
level: warning
logger: custom_components.tahoma
- service: persistent_notification.create
data:
title: >
{{trigger.event.data.level}}: Tahoma reloaded
message: >
{{now().timestamp()|timestamp_custom('%X')}}: Tahoma 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 would probably catch both?:
condition:
- >
{{trigger.event.data.name == 'custom_components.tahoma' and
'Authentication failed while fetching device events data: Bad credentials'
in trigger.event.data.message[0]}}