home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.16k stars 31.13k forks source link

Alert integration will not send notifications. #123824

Open tofof opened 3 months ago

tofof commented 3 months ago

The problem

I cannot get any type of notification to fire from the Alert I have created.

I have an automation that sends a notification correctly. I would prefer to use the Alert integration so that I can make use of the features it provides - resending the notification every x minutes, etc.

What version of Home Assistant Core has the issue?

core-2024.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Alert

Link to integration documentation on our website

https://www.home-assistant.io/integrations/alert/

Diagnostics information

Alert doesn't seem to offer this.

Example YAML snippet

# Note: example_tofof_exa and example@tofof.exa are sterilized versions of the actual email address in use. The automation successfully sends mail using the unsterilized version, so the problem does not lie there.

# Manually triggering a notification directly, using the dev tools, works as expected. I can produce a persistent notification in the ui, I receive email when firing to example_tofof_exa, and I receive email when firing to furnace_email.
notify:
  - platform: group
    name: furnace_email
    services:
      - service: example_tofof_exa
        data:
          target: example@tofof.exa
          title: Change Furnace Filter

# This alert configuration never sends any of the notifications.
alert:
  change_filter_alert:
    name: "Furnace Filter Expired"
    entity_id: binary_sensor.furnace_pressure_drop_is_high
    state: "on"
    repeat: 1
    skip_first: false
    can_acknowledge: false
    message: "Pressure drop across the furnace filter is {{ states('sensor.furnace_pressure') }}."
    notifiers:
      - furnace_email
      - example_tofof_exa
      - persistent_notification

# This automation (in automations.yaml) works as expected.
alias: send email alert
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.furnace_pressure_drop_is_high
    to: "on"
condition: []
action:
  - service: notify.example_tofof_exa
    metadata: {}
    data:
      message: >-
        Pressure drop across the furnace filter is {{ states('sensor.furnace_pressure')
        }}.
      title: Change Furnace Filter
      target: example@tofof.exa
mode: single

Anything in the logs that might be useful for us?

No hits for 'alert' anywhere in home-assistant.log.

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @home-assistant/core, @frenck, mind taking a look at this issue as it has been labeled with an integration (alert) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `alert` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign alert` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


alert documentation alert source (message by IssueLinks)

issue-triage-workflows[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tofof commented 3 weeks ago

No, that doesn't resolve the problem, the alert integration is still completely nonfunctional.