Post: MQTT wait_for_trigger value_template doesn't filter — three layers of HA template semantics#18
Open
clarkbw wants to merge 2 commits into
Open
Post: MQTT wait_for_trigger value_template doesn't filter — three layers of HA template semantics#18clarkbw wants to merge 2 commits into
clarkbw wants to merge 2 commits into
Conversation
…ers of HA template semantics Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deep-dive on signalk-dsc — the $--DSC/$--DSE and PGN 129808 gaps stock SignalK parsers drop, how the plugin captures/stores/alarms on received DSC traffic, and the 47 CFR 80.409 radio-log standard it mirrors. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New post from today's Poseidon-cutover lesson (agent-lessons.md, 2026-06-11): the HA ask-roundtrip wait that "matched the reply's trace_id" for two days and had never filtered anything.
The arc, all trace-verified live today:
value_templateis a payload transformer, not a filter — without apayload:key nothing is compared and the trigger fires on every message. The trace_id check never filtered; one-producer topic made it invisible until interim says showed up and the puck spoke "Let me check the pilot book." as the answer.payload: "True"matched nothing — templates render native types, booleanTrue≠ string"True".value_templaterender. Fun wrinkle: the script docs say variables are passed to the trigger, and that's true only at setup (topic/payload templates). I cite the actual mqtt/trigger.py lines showing the per-message render gets payload only.repeat/untilloop — conditions DO see script variables. Includes thewait.trigger is nonetimeout escape and a note that the timeout becomes per-message.Gotchas section carries the three lessons (negative-case verification, shared-topic traffic as a breaking change, per-context template semantics incl. a summary table) plus one short paragraph on the
assist_satellite.announcemid-session kill +interim: trueskip — flagged as a candidate for its own post later.Privacy check: no hosts/IPs/paths; topic names are the ones already public in naturali-agents; daemon referenced generically with an org link.
Worth a verify pass on: the trace_id generation snippet in the Problem section is illustrative, not our literal line; and the docs-vs-source framing in Attempt 2 — I quote dev-branch code, line shapes could drift.
🤖 Generated with Claude Code