{"id":15699587,"url":"https://github.com/alexxit/hassdiagnostics","last_synced_at":"2025-05-09T02:37:39.141Z","repository":{"id":232613206,"uuid":"784734491","full_name":"AlexxIT/HassDiagnostics","owner":"AlexxIT","description":"Diagnostics entities for Home Assistant","archived":false,"fork":false,"pushed_at":"2024-04-19T11:57:15.000Z","size":147,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-04T19:44:16.954Z","etag":null,"topics":["hacs","home-assistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexxIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-10T12:59:47.000Z","updated_at":"2024-10-02T01:23:44.000Z","dependencies_parsed_at":"2024-04-18T17:51:16.389Z","dependency_job_id":"e15c7edb-5847-45e0-83aa-8c1da7838217","html_url":"https://github.com/AlexxIT/HassDiagnostics","commit_stats":null,"previous_names":["alexxit/hassdiagnostics"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FHassDiagnostics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FHassDiagnostics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FHassDiagnostics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FHassDiagnostics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexxIT","download_url":"https://codeload.github.com/AlexxIT/HassDiagnostics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253178691,"owners_count":21866587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacs","home-assistant"],"created_at":"2024-10-03T19:41:02.497Z","updated_at":"2025-05-09T02:37:39.117Z","avatar_url":"https://github.com/AlexxIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hass Diagnostics\n\nDiagnostics entities for [Home Assistant](https://www.home-assistant.io/).\n\n## Installation\n\n[HACS](https://hacs.xyz/) custom repository: `AlexxIT/HassDiagnostics`.\n\n[![](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=AlexxIT\u0026repository=HassDiagnostics\u0026category=Integration)\n\nOr manually copy `hass_diagnostics` folder from [latest release](https://github.com/AlexxIT/HassDiagnostics/releases/latest) to `/config/custom_components` folder.\n\n## Configuration\n\nAdd integration via Home Assistant UI.\n\n[![](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=hass_diagnostics)\n\n## Smart Log\n\nCreates a sensor whose data can be displayed with a [Markdown card](https://www.home-assistant.io/dashboards/markdown/).\n\n- combining issues by integration, category, and device IP address\n- displaying short text of problem\n- displaying where possible:\n  - integration name\n  - python library name\n  - issue category\n  - IP address of the device\n  - link to github sources\n\n\u003cimg src=\"https://raw.githubusercontent.com/AlexxIT/HassDiagnostics/101177ca7e4fcdc56242ab772e4a88224c9e162d/smart_log.png\" width=\"480\"\u003e\n\n**Markdown card - version 1**\n\n```markdown\n[diagnostics](/config/integrations/integration/hass_diagnostics) | [log](/config/logs) | total: {{ states('sensor.smart_log') }} items\n\n{% for i in state_attr('sensor.smart_log', 'records') or '' -%}\n---\n\u003cdetails\u003e\n\u003csummary\u003e\n  \u003cb\u003e{{i.get('domain') or i.get('package') or i.name}}\u003c/b\u003e ({{i.count}}) {{i.get('category','')}} {{i.get('host','')}}\n  \u003cbr\u003e\u0026nbsp; \u0026nbsp;\u003ci\u003e{{i.short}}\u003c/i\u003e\n\u003c/summary\u003e\n\u003cdiv\u003e\u003cb\u003e{{i.name}}\u003c/b\u003e\u003c/div\u003e\n\u003cdiv\u003e{{i.message|replace('\\n',' ')|regex_replace('(http[^\\s]+)', '\u003ca href=\"\\\\1\"\u003e\\\\1\u003c/a\u003e')}}\u003c/div\u003e\n\u003cdiv\u003e{{i.source|join(', ')}}{{', \u003ca href=\"%s\"\u003egithub\u003c/a\u003e'%i.github if 'github' in i}}\u003c/div\u003e\n{{'\u003cpre\u003e'+i.exception+'\u003c/pre\u003e' if 'exception' in i}}\n\u003c/details\u003e\n\n{% endfor %}\n```\n\n**Markdown card - version 2**\n\n```markdown\n[diagnostics](/config/integrations/integration/hass_diagnostics) | [log](/config/logs) | total: {{ states('sensor.smart_log') }} items\n{% for i in state_attr('sensor.smart_log', 'records') -%}\n- **{{i.get('domain') or i.get('package') or i.name}}** ({{i.count}}) {{i.get('category','')}} {{i.get('host','')}}\n  *{{i.short}}*\n{% endfor %}\n```\n\n## Start Time\n\nCreates a sensor, with Home Assistant start time from the logs.\n\n```\n2020-02-24 17:13:11 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 25.5s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxit%2Fhassdiagnostics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexxit%2Fhassdiagnostics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxit%2Fhassdiagnostics/lists"}