Skip to content

Semi-false positive: sensor unavailable in action (feature request: ignoring a flagged problem) #29

Description

@erikgeurts

Using v1.1.2 on HA 2026.7.4, I have one automation that is being flagged as problematic because of an unavailable entity. The automation contains an action that reads like this:

alias: Generic Slack Notification with level support
action: script.generic_slack_notification_with_level_support
data:
  notification_title: Wasmachine programma bijna klaar
  notification_message: >-
    Wasmachine programma bijna klaar{% if
    has_value('sensor.washing_machine_remaining_program_time') %}, verwachte
    eindtijd {{ as_timestamp(
    states('sensor.washing_machine_remaining_program_time') ) |
    timestamp_custom('%H:%M', true) }}u{% endif %}
  notification_target: "#notifications"
  force_notification: false
  notification_level: Info

and the issue refers to sensor.washing_machine_remaining_program_time which contains a value only when there is actually a program running.

Even though my jinja code already checks if the sensor has a value, the inspector still flags it. I've also tried adding a default to the states() snippet, but that didn't inform the inspector.

While it is technically correct that this dependency exists and is problematic when the washing machine is in standby, the automation can only ever run when the washing machine is actually operational.

Perhaps an option could be added to tell the inspector to ignore this so that it doesn't get flagged every time I look at the screen? And to only ever evaluate it again when the automation's yaml code gets changed in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions