Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 12, 2024
1 parent 8f03bf9 commit 61b2ead
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# Hass Diagnostics

## System Log
## Smart Log

**Version 1**

```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') -%}
<details>
<summary>
<b>{{i.get('domain') or i.get('package') or i.name}}</b> [{{i.count}}] {{i.get('category','')}} {{i.get('host','')}} {{"[github]("+i.github+")" if 'github' in i}}
<br>&nbsp; &nbsp;{{i.short}}
</summary>
{{i.message|replace('\n',' ')}}
</details>
{% endfor %}
```

**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}}
Expand Down

0 comments on commit 61b2ead

Please sign in to comment.