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.
@@ -6,7 +6,7 @@ jobs:
6
6
  name: Test build
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v3
10
10
  - name: Build
11
11
  run: |
12
12
  npm install
@@ -8,7 +8,7 @@ jobs:
8
8
  name: Prepare release
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v2
11
+ - uses: actions/checkout@v3
12
12
 
13
13
  - name: Build
14
14
  run: |
package/README.md CHANGED
@@ -73,8 +73,8 @@ stats:
73
73
  - attribute: motor_speed
74
74
  unit: RPM
75
75
  subtitle: Motor Speed
76
- - value_template: >-
77
- {{ (states('sensor.purifier_filter_life') | float(0) / 3600) | round(1) }}
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: 50
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