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
Copy file name to clipboardExpand all lines: README.md
+50-29
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ Custom Home Assistant card displaying a responsive overview of multiple days wit
28
28
### HACS (Recommended)
29
29
30
30
1. Make sure [HACS](https://hacs.xyz) is installed and working.
31
-
2. Add this repository (https://github.com/FamousWolf/week-planner-card) via [HACS Custom repositories](https://hacs.xyz/docs/faq/custom_repositories)
32
-
3. Download and install using HACS
31
+
2. Add this repository (https://github.com/FamousWolf/week-planner-card) via [HACS Custom repositories](https://hacs.xyz/docs/faq/custom_repositories). Type should be `Dashboard`.
32
+
3. Download and install using HACS.
33
33
34
34
### Manual
35
35
@@ -39,14 +39,16 @@ Custom Home Assistant card displaying a responsive overview of multiple days wit
39
39
Add:
40
40
```yaml
41
41
resources:
42
-
- url: /local/week-planner-card.js?version=1.10.1
42
+
- url: /local/week-planner-card.js?version=1.11.0
43
43
type: module
44
44
```
45
45
- **Using the graphical editor**
46
46
1. Make sure advanced mode is enabled in your user profile
47
-
2. Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon
48
-
3. Enter URL `/local/week-planner-card.js` and select type "JavaScript Module".
49
-
4. Restart Home Assistant.
47
+
2. Navigate to "Settings" -> "Dashboards".
48
+
3. Click on the 3 vertical dots in the top right corner and select "Resources".
49
+
4. Click on the "Add resource" button in the bottom right corner.
50
+
5. Enter URL `/local/week-planner-card.js` and select type "JavaScript Module".
51
+
6. Restart Home Assistant.
50
52
51
53
52
54
## Configuration
@@ -58,6 +60,8 @@ Custom Home Assistant card displaying a responsive overview of multiple days wit
58
60
| `type` | string | **Required** | `custom:week-planner-card` | Type of the card | 1.0.0 |
59
61
| `title` | string | optional | Any string | Card title | 1.6.0 |
60
62
| `days` | number \| string | 7 | Any positive integer number \| `month` | The number of days to show | 1.0.0 |
63
+
| `maxEvents` | number | 0 | Any positive integer number | The maximum number of events to show (0 is no maximum) | 1.11.0 |
64
+
| `maxDayEvents` | number | 0 | Any positive integer number | The maximum number of events to show per day (0 is no maximum) | 1.11.0 |
| `extraLarge` | number | optional | Any positive number | Number of columns when the card width is >= 1920 pixels | 1.11.0 |
144
+
| `large` | number | optional | Any positive number | Number of columns when the card width is >= 1280 pixels | 1.11.0 |
145
+
| `medium` | number | optional | Any positive number | Number of columns when the card width is >= 1024 pixels | 1.11.0 |
146
+
| `small` | number | optional | Any positive number | Number of columns when the card width is >= 640 pixels | 1.11.0 |
147
+
| `extraSmall` | number | optional | Any positive number | Number of columns when the card width is < 640 pixels | 1.11.0 |
148
+
128
149
## Custom styling using cardmod
129
150
130
151
Like with most cards, you can add custom styling to this card using [card_mod](https://github.com/thomasloven/lovelace-card-mod). To make it easier to add custom styles to days and/or events, there are several classes that days and events can have. Additionally, there are data attributes you can use in CSS selectors.
0 commit comments