Replies: 1 comment
-
|
Turned this into a PR: #45 — covers the LoggingUndefined guard. The domain-docs URL (point 2) is already handled by PR #25 ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Two additions that came up in practice today, both verified on HA 2026.3.3. Happy to turn either into a PR if useful.
1. LoggingUndefined behavior in event-trigger conditions
HA uses
LoggingUndefined(not strict Jinja2 Undefined) for missing dict attributes. This has a non-obvious implication for automation conditions:trigger.eventwhen no event trigger firedLoggingUndefined— no errorLoggingUndefined is definedFalse— valid guard'x' in LoggingUndefined.data.entity_idUndefinedError.split()on LoggingUndefinedUndefinedErrorThe error doesn't occur at attribute access — it occurs when operators like
inor methods like.split()are called on the resultingLoggingUndefinedobject.is definedis therefore a safe guard, andtrigger.platform == 'event'is the idiomatic HA-documented alternative (short-circuits beforetrigger.eventis evaluated).This would fit naturally in
references/automation-patterns.mdas a note under event-trigger conditions.2. On-demand integration docs URL
Returns full HA integration documentation as plain text (HTTP 200, no auth required). Useful when an agent needs service call signatures or entity attributes for an unfamiliar integration — no caching or pre-loading needed, just substitute
{domain}. Already referenced in the newdomain-docs.mdfrom PR #25, but might be worth a line in the main SKILL.md trigger table as a general-purpose lookup pattern.Both are small additions — flagging here in case they're useful before investing in a PR.
Beta Was this translation helpful? Give feedback.
All reactions