611 | {% if oref == 'on' %} 612 | # {{ state_attr('binary_sensor.red_alert', 'title') }} {{ state_attr('binary_sensor.red_alert', 'emoji') }} 613 | |
615 | {{ state_attr('binary_sensor.red_alert', 'alert_txt') }} 616 | {% else %} 617 | ## אין התרעות ✅ 618 | {% endif %} 619 | |
655 | {{ state_attr('sensor.red_alert_history_cities', 'cities_past_24h') | length }} :ערים | 656 |657 | {{ state_attr('sensor.red_alert_history_list', 'last_24h_alerts') | length }} :התרעות |
{{ alert_type }} | ||
{{ area }} | ||
{% if city_pair[0].time[:10] == (now() - timedelta(days=1)).strftime('%Y-%m-%d') %} 670 | {{ city_pair[0].city }} {# Use city_pair[0].city #} 671 | {% else %} 672 | {{ city_pair[0].city }} {# Use city_pair[0].city #} 673 | {% endif %} 674 | | 675 |- | 676 |{{ city_pair[0].time[:5] }} | {# Use city_pair[0].time #} 677 |