purifier-card 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/README.md +12 -10
- package/dist/purifier-card.js +2 -2
- package/package.json +1 -1
- package/rollup.config.js +1 -3
- package/src/localize.js +2 -0
- package/src/purifier-card.js +1 -0
- package/src/styles.css +0 -2
- package/src/translations/cs.json +40 -0
package/README.md
CHANGED
|
@@ -73,8 +73,8 @@ stats:
|
|
|
73
73
|
- attribute: motor_speed
|
|
74
74
|
unit: RPM
|
|
75
75
|
subtitle: Motor Speed
|
|
76
|
-
-
|
|
77
|
-
|
|
76
|
+
- entity_id: sensor.purifier_filter_life
|
|
77
|
+
value_template: '{{ (value | float(0) / 3600) | round(1) }}'
|
|
78
78
|
unit: hours
|
|
79
79
|
subtitle: Filter Life
|
|
80
80
|
shortcuts:
|
|
@@ -89,7 +89,7 @@ shortcuts:
|
|
|
89
89
|
percentage: 50
|
|
90
90
|
- name: 75%
|
|
91
91
|
icon: 'mdi:circle-slice-6'
|
|
92
|
-
percentage:
|
|
92
|
+
percentage: 75
|
|
93
93
|
- name: 100%
|
|
94
94
|
icon: 'mdi:circle-slice-8'
|
|
95
95
|
percentage: 100
|
|
@@ -130,13 +130,13 @@ Here is what every option means:
|
|
|
130
130
|
|
|
131
131
|
You can use any attribute of purifier or even any entity by `entity_id` to display by stats section:
|
|
132
132
|
|
|
133
|
-
| Name | Type | Default | Description
|
|
134
|
-
| ---------------- | :------: | -------- |
|
|
135
|
-
| `entity_id` | `string` | Optional | An entity_id with state, i.e. `sensor.purifier_aqi`.
|
|
136
|
-
| `attribute` | `string` | Optional | Attribute name of the stat, i.e. `filter_left`.
|
|
137
|
-
| `value_template` | `string` | Optional | Jinja2 template returning a value.
|
|
138
|
-
| `unit` | `string` | Optional | Unit of measure, i.e. `hours`.
|
|
139
|
-
| `subtitle` | `string` | Optional | Friendly name of the stat, i.e. `Filter`.
|
|
133
|
+
| Name | Type | Default | Description |
|
|
134
|
+
| ---------------- | :------: | -------- | ---------------------------------------------------------------------------------------------------- |
|
|
135
|
+
| `entity_id` | `string` | Optional | An entity_id with state, i.e. `sensor.purifier_aqi`. |
|
|
136
|
+
| `attribute` | `string` | Optional | Attribute name of the stat, i.e. `filter_left`. |
|
|
137
|
+
| `value_template` | `string` | Optional | Jinja2 template returning a value. `value` variable represents the `entity_id` or `attribute` state. |
|
|
138
|
+
| `unit` | `string` | Optional | Unit of measure, i.e. `hours`. |
|
|
139
|
+
| `subtitle` | `string` | Optional | Friendly name of the stat, i.e. `Filter`. |
|
|
140
140
|
|
|
141
141
|
### `shortcuts` object
|
|
142
142
|
|
|
@@ -235,6 +235,7 @@ This card supports translations. Please, help to add more translations and impro
|
|
|
235
235
|
- Русский (Russian)
|
|
236
236
|
- Italiano (Italian)
|
|
237
237
|
- 繁體中文 (Traditional Chinese)
|
|
238
|
+
- Čeština (Czech)
|
|
238
239
|
- [_Your language?_][add-translation]
|
|
239
240
|
|
|
240
241
|
## Supported models
|
|
@@ -251,6 +252,7 @@ If this card works with your air purifier, please open a PR and your model to th
|
|
|
251
252
|
- Winix AM90 Wi-Fi Air Purifier
|
|
252
253
|
- Philips AirPurifier AC3858/50 (partially)
|
|
253
254
|
- SmartMI Air Purifier
|
|
255
|
+
- Ikea Starkvind
|
|
254
256
|
- [_Your purifier?_][edit-readme]
|
|
255
257
|
|
|
256
258
|
## Development
|