Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DTC count and code details sensor #55

Merged
merged 7 commits into from
Dec 13, 2024

Conversation

themoosman
Copy link
Contributor

Creates a new sensor called _car_dtc_count, where the state is the current number of DTC codes. The list of codes and descriptions will appear as extra attributes.

If the DTC count is 0 or the API returns an empty qualifiedDtcList, then the DTC details are returned as "Not available."

I've seen some cases where qualifiedDtcList is an empty list or not returned at all. The DTC count is always set to 0 in those cases. That makes it easier to create an automation that detects an increase in the count.

image

resolves #10

@themoosman
Copy link
Contributor Author

It's weird all the tests pass locally; let me see what's up.

@mandarons mandarons merged commit 578d828 into mandarons:main Dec 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] MIL Event code support
2 participants