Open DmitriyKompaniets opened 2 months ago
Регистратор: homeassistant.helpers.script Источник: helpers/script.py:926 Первое сообщение: 9 мая 2024 г. в 23:53:54 (2 сообщений) Последнее сообщение: 04:02:43
While condition [{'alias': 'At least one of alert sensors is active', 'condition': 'template', 'value_template': Template<template=({% set ns = namespace(alert=false) %} {% for alert_sensor in alert_sensors %} {% set ns.alert = ns.alert or is_state(alert_sensor, 'on') %} {% endfor %} {{ ns.alert }}) renders=30354>}] in script AWTRIX Ukraine Alarm
looped 5000 times
While condition [{'alias': 'At least one of alert sensors is active', 'condition': 'template', 'value_template': Template<template=({% set ns = namespace(alert=false) %} {% for alert_sensor in alert_sensors %} {% set ns.alert = ns.alert or is_state(alert_sensor, 'on') %} {% endfor %} {{ ns.alert }}) renders=47204>}] in script AWTRIX Ukraine Alarm
looped 5000 times
Регистратор: homeassistant.helpers.script Источник: helpers/script.py:934 Первое сообщение: 05:26:59 (1 сообщений) Последнее сообщение: 05:26:59
While condition [{'alias': 'At least one of alert sensors is active', 'condition': 'template', 'value_template': Template<template=({% set ns = namespace(alert=false) %} {% for alert_sensor in alert_sensors %} {% set ns.alert = ns.alert or is_state(alert_sensor, 'on') %} {% endfor %} {{ ns.alert }}) renders=57204>}] in script AWTRIX Ukraine Alarm
terminated because it looped 10000 times
I think I understand why. HA recently implemented breaking change witch limits number of loops up to 10000. So that is basically 2(hours) 60(minutes) 60(seconds) + 46(minutes) * 60(seconds) + 40(seconds) = 2:46:40 = 10000.
Can we expect a solution to this problem?
Honestly, I wasn't able to find easy-fix solution. It's complicated as with blueprint you are limited with only 1 automation, so everything should be isolated and incapsulated in one place witch makes it difficult to read and debug it. I'll see if I'll find some workaround.
You can check? If the alarm lasts more than 2:48, the clock counter stops....