New speech engine message type for weather alerts #89

This commit is contained in:
2023-07-06 02:25:15 -04:00
parent 3bff90891b
commit fd21e00650
3 changed files with 39 additions and 26 deletions

View File

@ -131,6 +131,18 @@ template:
device_class: safety
attributes:
current_strikes: "{{ states('sensor.blitzortung_lightning_counter') | int }}"
- name: "Audible Weather Alerts Allowed"
unique_id: 03851823-32d5-44c1-af42-256fcd922069
state: >
{% if is_state('input_boolean.audible_notifications','on') %}
true
{% elif states('sensor.people_sleeping_total') | int == 3 %}
false
{% elif is_state('input_boolean.kallen_overnight','on') and (states('sensor.people_sleeping_total') | int == 2) %}
false
{% else %}
true
{% endif %}
sensor:
- platform: weatheralerts