Skip to content

All "notify" entities flagged as unknown #1331

Closed

Description

@bpinson999

What version of Spook are you using?

5.0.0

What version of Home Assistant are you using?

2026.6.4

The problem

After updating to version 5, all references to any notify entities are flagging as unknown. Attached is an example of one, but I have the same errors across 40 automations/scripts.

It flags a notify entry weather it's automatically created from a mobile device, or created through config like:

notify:
  - name: all_phones
    platform: group
    services:
      - action: mobile_app_billys_iphone_16_pro_max
      - action: mobile_app_john_s_iphone_16_pro_max
  - name: billy
    platform: group
    services:
      - action: mobile_app_billys_iphone_16_pro_max
  - name: john
    platform: group
    services:
      - action: mobile_app_john_s_iphone_16_pro_max
Image

Anything in the logs? Paste it here!


Activity

  1. erkr commented on Jun 24, 2026

    @erkr

    I have the same repairs since the v5 update:

            - action: notify.my_phone
              metadata: {}
              data:
                  message: De deurbel
    

    gives these repairs:

    Spook has found a ghost in your automations 👻
    ...
    This automation references the following entities, which are unknown to Home Assistant:
    notify.my_phone
    To fix this error, ... Spook 👻 Your homie.
    

    In my case its a notify group as well (used to decouple the notifiers in my automations for the current phone I use):

    notify:
      - platform: group
        name: "my_phone"
        unique_id: notify_my_phone
        services:
          - service: mobile_app_redacted
    
  2. pjschaffer commented on Jun 25, 2026

    @pjschaffer

    It looks like you've got this on it's way to being repaired, but just in case, here's another data point.

    In this snippet from an automation, I run a script with a notify.mobile_app action passed as a variable to the script. Spook is calling this an unknown entity even though it isn't being used as an entity. This wasn't reported before ver 5.0.0

                sequence:
                  - action: script.welcome_home_notify
                    data:
                      notify_service: "notify.mobile_app_phil_s_s24"
                      title: "Welcome Home Phil!" # Personalized notification
                      tag: phils_home             # Unique tag so Phil’s notification doesn’t clash
    
    Image
  3. Stenthal commented on Jun 25, 2026

    @Stenthal

    For what it's worth, this also happens with any inner action under the retry integration. For example, I have this action in an automation:

         - action: retry.action
                data:
                  action: select.select_option
                  option: '{{ auto_state }}'
                  expected_state: '{{ auto_state }}'
                target:
                  entity_id: select.upstairs_bathroom_fan_direct_control
    

    This causes Spook to raise a repair saying that select.select_option is an unknown entity.

  4. frenck commented on Aug 20, 2026

    @frenck
    Owner

    I cannot reproduce this on main, so I need a bit more from you.

    Taking the config from this thread verbatim:

    - action: notify.my_phone
      metadata: {}
      data:
        message: De deurbel

    with notify.my_phone registered by a legacy notify group, and running the automation entity check end to end:

    entity:                  automation.doorbell
    HA referenced_entities:  set()
    issue created:           False
    

    No issue, and Home Assistant does not report the action name as a referenced entity either. The notify guard (#1283) was already in 5.0.0, so that is not the difference.

    The one shape that does still get flagged is a notify.* name sitting inside a data payload rather than being the action itself, like data: {entity_id: notify.my_phone}, or a third-party fan-out action taking a list of notify names under some arbitrary key. That is #1338, with #1339 open for it.

    So: could you paste the full automation that gets flagged, exactly as it appears in your YAML or in the automation editor's YAML view, including the data block? If it is one of the 40, any single one will do. That will tell me whether this is #1338 wearing a different hat or something else that needs its own fix.

    Worth adding: a good few reports lately have turned out to be already fixed since 5.0.0 but not yet released, so it is also worth retesting once the next release is out.

    ../Frenck

                           

    Blogging my personal ramblings at frenck.dev

  5. bpinson999 commented on Aug 20, 2026

    @bpinson999
    Author

    I have a notify.yaml file, it is included in configuration.yaml like:

    homeassistant:
      packages:
        notify: !include notify.yaml
    

    notify.yaml has:

    notify:
      - name: all_phones
        platform: group
        services:
          - action: billy
          - action: john
      - name: billy
        platform: group
        services:
          - action: mobile_app_billys_iphone_17_pro_max
      - name: john
        platform: group
        services:
          - action: mobile_app_john_s_iphone_16_pro_max
    

    I have 34 repairs from spook for unknown entities that use notify.

    I've attached a sample automation, which calls a script (attached), which calls another script (attached).

    Let me know if you need more from me.

    script.announce_and_notify.yaml
    script.send_mobile_notification.yaml

    automation.alert_water_leak_detected.yaml

  6. erkr commented on Aug 20, 2026

    @erkr

    My configuration is very similar to what @bpinson999 just shared

    I Think we both use the notify inside a data payload, as you mentioned:

    The one shape that does still get flagged is a notify.* name sitting inside a data payload rather than being the action itself, like data: {entity_id: notify.my_phone}

    So this in configuration.yaml:

    notify:
      - platform: group
        name: "my_phone"
        unique_id: notify_my_phone
        services:
          - service: mobile_app_redacted
    

    And this in the automation:

    
              - action: script.notify_ios
                metadata: {}
                data:
                  severity: warning
                  notifier: notify.eric
                  message: Aquarium thermostaat is weer aangezet!
                  data: >
                    {% from 'alert2.jinja' import generate_data %} {{
                    generate_data(snooze=false,view=false,close=false,
                          url="/lovelace-lichten/aquarium") }}
    
    

    Where the notification is handled via a script:

    
    sequence:
      - variables:
          data_input: '{{ data if data is defined and data!= ''{}'' else {} }}'
          level: |
            {% set mapper = {'info': 'passive',
                             'warning': 'active',
                             'error': 'time-sensitive',
                             'critical': 'critical'} %}
            {{ mapper[severity|default('info')] }}
          data_content: |
            {%- set content = {'push': {'sound': sound|default('default') ,
                                        'interruption-level': level,
                                        'volume': 1 }} -%}
            {{ dict(content, **(data_input)) }}
      - data:
          title: '{{ title | default('''') }}'
          message: '{{ message or ''no message'' }}'
          data: '{{ data_content }}'
        alias: Send notification to selected person
        action: '{{notifier}}'
    alias: Notify iOS
    description: Notify normally or as an alarm depending the severity to iOS devices
    fields:
      message:
        name: Message
        description: The message to notify
        selector:
          text: null
        required: true
        example: Your message
        default: no message passed
      title:
        name: Title
        description: The Title of the notification
        selector:
          text: null
        example: My announcement
      data:
        name: Optional data
        description: additional  notification data
        example: '{url: ''/dashboard-kiosk/witgoed''}'
        required: false
      notifier:
        description: The mobile of the person to notify
        selector:
          select:
            options:
              - label: me
                value: notify.my_phone
              - label: spouse
                value: notify.spouse
            multiple: false
        name: Notifier
        example: me
        required: true
      severity:
        description: The severity, only critical is send as an alarm
        selector:
          select:
            options:
              - critical
              - error
              - warning
              - info
            multiple: false
        name: Severity
        example: info
        default: info
      sound:
        description: The sound for critical alerts
        selector:
          select:
            options:
              - label: Default
                value: default
              - label: Deurbel
                value: Deurbel.wav
            multiple: false
        name: Sound
        example: default
        default: default
    mode: queued
    max: 10
    icon: mdi:bell-alert
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions