You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sorting entities based on attribute values (#13)
* Large icons and attribute values / disabling compact view (#17)
* Allow to use simple strings as attributes in the config
Fixes:
* Allow resetting (to default) card-level settings on individual entities (#18)
* Margin fixes to align with standard entity rows
Home Assistant card displaying data from [Github integration](https://www.home-assistant.io/integrations/github/)
2
+
[![GitHub Release][releases-shield]][releases]
3
+
[![GitHub All Releases][downloads-total-shield]][releases]
4
+
<!--[![hacs_badge][hacs-shield]][hacs]
5
+
[![Community Forum][forum-shield]][forum]-->
6
+
7
+
Home Assistant card displaying data from [Github integration][ha-gh-integration]
3
8
4
9
## Overview
5
10
6
11
The aim of this card is to show all the data provided by github integration. You can specify what kind of data is shown and where. Entity rows are matching the size of other standard entity rows from other native cards (e.g. height of the row, icon/text margins, font sizes, etc).
Note: If you plan to use it only as entity row you can consider using the other simpler/smaller code written by benct: [github-entity-row][github-entity-row]
| title | String | | v0.1.0 | Card header/title text
20
-
| entities | [Entity](#entity)[]\| String | **(required)** | v0.1.0 | Collection of entities to display. You can provide simple list of entity_id strings.
24
+
| title | string | | v0.1.0 | Card header/title text
25
+
| entities | list([Entity](#entity)) \| string | **(required)** | v0.1.0 | Collection of entities to display. You can provide simple list of entity_id strings.
26
+
| sort | list([SortOptions](#sort-options)) | | v1.0.0 | Sort options collection (order matters). Every next sorting option is used fot the next level sorting (if the values of the previous one are same)
21
27
22
28
[+ Entity Properties](#Entity-Properties) - applied to all entities
23
29
24
30
### Entity
25
31
| Name | Type | Default | Since | Description |
26
32
|:-----|:-----|:-----|:-----|:-----|
27
-
| entity | String | **(required)** | v0.1.0 | Entity ID e.g. `sensor.my_github_project`
33
+
| entity | string | **(required)** | v0.1.0 | Entity ID e.g. `sensor.my_github_project`
28
34
29
35
[+ Entity Properties](#Entity-Properties)
30
36
31
37
### Entity Properties
32
38
| Name | Type | Default | Since | Description |
33
39
|:-----|:-----|:-----|:-----|:-----|
34
-
| name | [KString](#keywordstring) | | v0.1.0 | Name override
40
+
| name | [KString](#keywordstring) | `friendly_name` | v0.1.0 | Name override
35
41
| secondary_info | [KString](#keywordstring) | | v0.1.0 | String to display underneath the entity name
| compact_view | bool | `true` | v1.0.0 | When set to `false` big icons (and values) are displayed
40
47
41
48
### Attribute
42
49
| Name | Type | Default | Since | Description |
43
50
|:-----|:-----|:-----|:-----|:-----|
44
-
| name | String | **(required)** | v0.1.0 | Name of the attribute
45
-
| icon | String | | v0.1.0 | Icon override (there are default icons for most of the available attributes)
46
-
| url | [KString](#keywordstring)\|Boolean | | v0.2.0 | Url to open on click/tap. (there are default urls for most of the available attributes, so you can just use `true`)
51
+
| name | string | **(required)** | v0.1.0 | Name of the attribute
52
+
| icon | string | | v0.1.0 | Icon override (there are default icons for most of the available attributes)
53
+
| url | [KString](#keywordstring)\|bool | | v0.2.0 | Url to open on click/tap. (there are default urls for most of the available attributes, so you can just use `true`)
47
54
| label | [KString](#keywordstring) | | v0.5.0 | Label/text which will be shown instead of the icon
48
55
56
+
### Sort options
57
+
58
+
| Name | Type | Default | Since | Description |
59
+
|:-----|:-----|:-----|:-----|:-----|
60
+
| by | string | **(required)** | v1.0.0 | Name of the attribute
61
+
| ascending | bool | `false` | v1.0.0 | Whether to sort ascending or descending
62
+
63
+
49
64
### KeywordString
50
65
51
66
KeywordString is a string which can contain special keywords. Keywords are the attribute names surrounded by curly brackets. Keywords in the string will be replaced by attribute values.
Don't "buy me a coffee", just star it on github! It will be enough to let me know that you like it and definitely will give me motivation boost to continue working on it and other cards.
0 commit comments