Repository navigation
Send a report on specific events when the owner turns it on, first a charger that could not identify its car - #2999
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…charger that could not identify its car Beside the daily report, Settings → Advanced → Diagnostics reports gets a second switch, "Send a report on specific events" (`event_diagnostics_reports`, off by default). When it is on, PELS sends the developer a report about the device an event concerns. The first such event is `ev_car_link_unmatched`: a charger whose window closed with no car identified, reported about the charger as of its plug-in. - `lib/diagnostics/eventReportSchedule.ts` checks every 5 minutes from 17 minutes after start (two minutes off the daily report's hourly check), over the device events kept in the last 30 minutes, so a report also carries what followed its event. Which events send a report, and what each says, is `REPORTED_EVENTS`; a new event is one entry there. - One report per event and device a day, at most 6 attempts a day in all. What was sent is written to the userdata database before sending, so a restart or a charger that keeps failing never sends one twice. A busy, refused or unprepared report is tried again on a later check; an uncertain one never is. The switch is read again once the report is prepared. - `SupportReportService.sendOnEvent` shares the daily report's unattended path, and a report on an event trims its oldest activity to fit, like the daily one. `trigger` is `event`. - The settings UI drives both switches from one list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018xVzijrbDYE7H1nTowpvbh
olemarkus
force-pushed
the
feat/event-diagnostics-reports
branch
from
October 25, 2026 13:54
193de6f to
7fff9d1
Compare
olemarkus
added this pull request to stack #3005
October 25, 2026 14:05
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.
Lands after the Dutch stack (#2969, #2970, #2971, #2980, #2981): don't merge before it.
Why
A car link that fails is recorded in the device journal, but the developer only hears of it from the next daily report or when the owner presses Send. The owner wants a report as soon as PELS sees something go wrong, starting with a charger that could not identify the connected car, and more events to follow.
What changes
event_diagnostics_reports, off by default), below the daily report. Homey files every report as submitted by the user, so as with the daily report, only this switch sends one.ev_car_link_unmatched. A charger whose window closed with no car identified gets a report about the charger, from an hour before its plug-in.lib/diagnostics/eventReportSchedule.ts:REPORTED_EVENTSmaps an event to the report it asks for. A new event is one entry there.SupportReportService.sendOnEventshares the daily report's unattended path and carriestrigger: 'event'. Like the daily report, it trims its oldest activity to fit.diagnosticsReportSwitches.ts, which replacesdailyReportSwitch.ts).Notes:
notes/support-reports.md,notes/settings-key-ownership.md,notes/ev-car-link/README.md.Validation
arch:check,setup:boundaries,params:no-bundles,logging:no-legacyandlint:htmlare clean. The commit and pre-push hooks passed.🤖 Generated with Claude Code
https://claude.ai/code/session_018xVzijrbDYE7H1nTowpvbh