Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 13, 2024
1 parent f7bf39a commit 101177c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

## Smart Log

**Version 1**
- combining issues by integration, category, and device IP address
- displaying short text of problem
- displaying where possible:
- integration name
- python library name
- issue category
- IP address of the device
- link to github sources

<img src="smart_log.png" width="480">

**Markdown card - version 1**

```markdown
[diagnostics](/config/integrations/integration/hass_diagnostics) | [log](/config/logs) | total: {{ states('sensor.smart_log') }} items
Expand All @@ -25,12 +36,12 @@
{% endfor %}
```

**Version 2**
**Markdown card - version 2**

```markdown
[diagnostics](/config/integrations/integration/hass_diagnostics) | [log](/config/logs) | total: {{ states('sensor.smart_log') }} items
{% for i in state_attr('sensor.smart_log', 'records') -%}
- **{{i.get('domain') or i.get('package') or i.name}}** [{{i.count}}] {{i.get('category','')}} {{i.get('host','')}} {{"[github]("+i.github+")" if 'github' in i}}
- **{{i.get('domain') or i.get('package') or i.name}}** ({{i.count}}) {{i.get('category','')}} {{i.get('host','')}}
*{{i.short}}*
{% endfor %}
```
Binary file added smart_log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 101177c

Please sign in to comment.