purifier-card 2.6.10 โ†’ 2.7.1

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.
@@ -0,0 +1,58 @@
1
+ name-template: v$RESOLVED_VERSION ๐Ÿงน
2
+ tag-template: v$RESOLVED_VERSION
3
+ exclude-contributors:
4
+ - github-actions[bot]
5
+ - github-actions
6
+ - dependabot[bot]
7
+ - dependabot
8
+ categories:
9
+ - title: โ—๏ธ Breaking Changes
10
+ labels:
11
+ - breaking
12
+ - title: ๐Ÿš€ Features
13
+ labels:
14
+ - feature
15
+ - enhancement
16
+ - title: ๐Ÿ› Bug Fixes
17
+ labels:
18
+ - fix
19
+ - bug
20
+ - title: ๐Ÿงฐ Maintenance
21
+ labels:
22
+ - chore
23
+ - dependencies
24
+ - documentation
25
+ change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
26
+ change-title-escapes: '\\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
27
+ version-resolver:
28
+ major:
29
+ labels:
30
+ - major
31
+ - breaking
32
+ minor:
33
+ labels:
34
+ - minor
35
+ - feature
36
+ - enhancement
37
+ patch:
38
+ labels:
39
+ - patch
40
+ - dependencies
41
+ default: patch
42
+ template: |
43
+ ## What's Changed
44
+
45
+ $CHANGES
46
+
47
+ ## โญ๏ธ Contributors
48
+
49
+ $CONTRIBUTORS
50
+
51
+ ## Sponsorship
52
+
53
+ If you like this project, please consider supporting me:
54
+
55
+ - ๐Ÿ’– [Sponsor on GitHub](https://github.com/sponsors/denysdovhan)
56
+ - โ˜•๏ธ [Buy Me A Coffee](https://buymeacoffee.com/denysdovhan)
57
+ - Bitcoin: `bc1q7lfx6de8jrqt8mcds974l6nrsguhd6u30c6sg8`
58
+ - Ethereum: `0x6aF39C917359897ae6969Ad682C14110afe1a0a1`
@@ -0,0 +1,26 @@
1
+ name: Dependencies
2
+ on:
3
+ pull_request:
4
+
5
+ permissions:
6
+ contents: write
7
+ pull-requests: write
8
+
9
+ jobs:
10
+ dependabot-auto-merge:
11
+ name: Dependabot Auto-merge
12
+ runs-on: ubuntu-latest
13
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
14
+ steps:
15
+ - name: ๐Ÿ’ฟ Fetch Dependabot metadata
16
+ id: metadata
17
+ uses: dependabot/fetch-metadata@v2
18
+ with:
19
+ github-token: ${{ secrets.GITHUB_TOKEN }}
20
+
21
+ - name: โ†”๏ธ Merge Dependabot PRs
22
+ if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
23
+ run: gh pr merge --auto --squash "$PR_URL"
24
+ env:
25
+ PR_URL: ${{ github.event.pull_request.html_url }}
26
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -4,7 +4,6 @@ on:
4
4
  pull_request:
5
5
 
6
6
  permissions:
7
- id-token: write # Required for OIDC
8
7
  contents: write
9
8
  pull-requests: write
10
9
 
@@ -23,7 +22,7 @@ jobs:
23
22
  - name: โฌข Setup Node.js
24
23
  uses: actions/setup-node@v6
25
24
  with:
26
- node-version: '*'
25
+ node-version: latest
27
26
  cache: npm
28
27
 
29
28
  - name: ๐Ÿ“ฆ Install Packages
@@ -31,48 +30,3 @@ jobs:
31
30
 
32
31
  - name: ๐Ÿงช Test
33
32
  run: npm test
34
-
35
- release:
36
- name: Release
37
- runs-on: ubuntu-latest
38
- needs: [validate]
39
- if: github.ref_name == 'main' && (github.event_name == 'push' || github.event.pull_request.merged)
40
- steps:
41
- - name: โฌ‡๏ธ Checkout Repo
42
- uses: actions/checkout@v6
43
-
44
- - name: โฌข Setup Node.js
45
- uses: actions/setup-node@v6
46
- with:
47
- node-version: '*'
48
- cache: npm
49
-
50
- - name: ๐Ÿ“ฆ Install Packages
51
- run: npm ci
52
-
53
- - name: ๐Ÿ— Build
54
- run: npm run build
55
-
56
- - name: ๐Ÿš€ Release
57
- run: npx semantic-release
58
- env:
59
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
-
61
- dependabot:
62
- name: Dependabot Auto-merge
63
- runs-on: ubuntu-latest
64
- needs: [validate]
65
- if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
66
- steps:
67
- - name: ๐Ÿ’ฟ Dependabot metadata
68
- id: metadata
69
- uses: dependabot/fetch-metadata@v2
70
- with:
71
- github-token: ${{ secrets.GITHUB_TOKEN }}
72
-
73
- - name: โ†”๏ธ Enable Auto-merge for minor and patch Dependabot PRs
74
- run: gh pr merge --auto --squash "$PR_URL"
75
- if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
76
- env:
77
- PR_URL: ${{ github.event.pull_request.html_url }}
78
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,20 @@
1
+ name: Release Drafter
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ update_release_draft:
14
+ name: Update Release Draft
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: ๐Ÿ“ Update draft
18
+ uses: release-drafter/release-drafter@v6
19
+ env:
20
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,44 @@
1
+ name: Release
2
+ on:
3
+ release:
4
+ types: [published]
5
+
6
+ permissions:
7
+ contents: write
8
+ id-token: write
9
+
10
+ jobs:
11
+ release:
12
+ name: Release
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: โฌ‡๏ธ Checkout Repo
16
+ uses: actions/checkout@v6
17
+
18
+ - name: โฌข Setup Node.js
19
+ uses: actions/setup-node@v6
20
+ with:
21
+ registry-url: https://registry.npmjs.org
22
+ node-version: latest
23
+ cache: npm
24
+
25
+ - name: ๐Ÿ“ฆ Install Packages
26
+ run: npm ci
27
+
28
+ - name: ๐Ÿงฎ Set version from tag
29
+ run: |
30
+ TAG="${{ github.event.release.tag_name }}"
31
+ npm version --no-git-tag-version "${TAG#v}"
32
+
33
+ - name: ๐Ÿ— Build
34
+ run: npm run build
35
+
36
+ - name: ๐Ÿš€ Publish to npm
37
+ run: npm publish --provenance --access public
38
+
39
+ - name: ๐Ÿ“ฆ Upload release asset
40
+ uses: softprops/action-gh-release@v2
41
+ with:
42
+ files: dist/vacuum-card.js
43
+ env:
44
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/README.md CHANGED
@@ -1,36 +1,53 @@
1
+ > [!IMPORTANT]
2
+ >
3
+ > I don't own an air purifier anymore.
4
+ >
5
+ > I still maintain this card. I will be fixing bugs, maitaining dependencies and styles. However, new features won't be actively developed anymore.
6
+ >
7
+ > If you have an air purifier and are willing to contribute, you are welcome.
8
+
1
9
  [![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua/)
2
10
 
3
11
  # Purifier Card
4
12
 
5
- [![npm version][npm-image]][npm-url]
13
+ [![GitHub Release][gh-release-image]][gh-release-url]
14
+ [![GitHub Downloads][gh-downloads-image]][gh-downloads-url]
6
15
  [![hacs][hacs-image]][hacs-url]
7
16
  [![GitHub Sponsors][gh-sponsors-image]][gh-sponsors-url]
8
- [![Patreon][patreon-image]][patreon-url]
9
17
  [![Buy Me A Coffee][buymeacoffee-image]][buymeacoffee-url]
10
18
  [![Twitter][twitter-image]][twitter-url]
11
19
 
20
+ > [!NOTE]
12
21
  > Air Purifier card for [Home Assistant][home-assistant] Lovelace UI
13
22
 
14
23
  By default, the Home Assistant does not provide any card for controlling air purifiers. This card displays the state and allows to control your air purifier.
15
24
 
16
25
  ![Preview of purifier-card][preview-image]
17
26
 
18
- ## Installing
27
+ ## Sponsorship
19
28
 
20
- **๐Ÿ’ก Tip:** If you like this project ~~and want to get some stickers and postcards~~, consider giving me a tip for the time I spent building this project:
29
+ Your generosity will help me maintain and develop more projects like this one.
21
30
 
22
- <a href="https://www.buymeacoffee.com/denysdovhan" target="_blank">
23
- <img src="https://cdn.buymeacoffee.com/buttons/default-black.png" alt="Buy Me A Coffee" width="150px">
24
- </a>
31
+ - ๐Ÿ’– [Sponsor on GitHub][gh-sponsors-url]
32
+ - โ˜•๏ธ [Buy Me A Coffee][buymeacoffee-url]
33
+ - Bitcoin: `bc1q7lfx6de8jrqt8mcds974l6nrsguhd6u30c6sg8`
34
+ - Ethereum: `0x6aF39C917359897ae6969Ad682C14110afe1a0a1`
35
+
36
+ ## Installing
25
37
 
26
38
  ### HACS
27
39
 
28
40
  This card is available in [HACS][hacs] (Home Assistant Community Store).
29
41
 
42
+ [![Add to HACS via My Home Assistant][hacs-install-image]][hacs-install-url]
43
+
30
44
  Just search for `Purifier Card` in the plugins tab.
31
45
 
32
46
  ### Manual
33
47
 
48
+ <details>
49
+ <summary>Click to show how to manually add to dashboard resources</summary>
50
+
34
51
  1. Download `purifier-card.js` file from the [latest-release].
35
52
  2. Put `purifier-card.js` file into your `config/www` folder.
36
53
  3. Add a reference to `purifier-card.js` in Lovelace. There's two way to do that:
@@ -45,6 +62,8 @@ Just search for `Purifier Card` in the plugins tab.
45
62
 
46
63
  4. Add `custom:purifier-card` to Lovelace UI as any other card (using either editor or YAML configuration).
47
64
 
65
+ </details>
66
+
48
67
  ## Using the card
49
68
 
50
69
  This card can be configured using Lovelace UI editor.
@@ -286,8 +305,10 @@ MIT ยฉ [Denys Dovhan][denysdovhan]
286
305
 
287
306
  <!-- Badges -->
288
307
 
289
- [npm-url]: https://npmjs.org/package/purifier-card
290
- [npm-image]: https://img.shields.io/npm/v/purifier-card.svg?style=flat-square
308
+ [gh-release-url]: https://github.com/denysdovhan/purifier-card/releases/latest
309
+ [gh-release-image]: https://img.shields.io/github/v/release/denysdovhan/purifier-card?style=flat-square
310
+ [gh-downloads-url]: https://github.com/denysdovhan/purifier-card/releases
311
+ [gh-downloads-image]: https://img.shields.io/github/downloads/denysdovhan/purifier-card/total?style=flat-square
291
312
  [hacs-url]: https://github.com/hacs/integration
292
313
  [hacs-image]: https://img.shields.io/badge/hacs-default-orange.svg?style=flat-square
293
314
  [gh-sponsors-url]: https://github.com/sponsors/denysdovhan
@@ -303,10 +324,11 @@ MIT ยฉ [Denys Dovhan][denysdovhan]
303
324
 
304
325
  [home-assistant]: https://www.home-assistant.io/
305
326
  [hacs]: https://hacs.xyz
327
+ [hacs-install-image]: https://my.home-assistant.io/badges/hacs_repository.svg
328
+ [hacs-install-url]: https://my.home-assistant.io/redirect/hacs_repository/?owner=denysdovhan&repository=purifier-card&category=plugin
306
329
  [preview-image]: https://user-images.githubusercontent.com/3459374/164275676-504d92aa-2c61-4451-ae9b-23dad113ce14.png
307
330
  [latest-release]: https://github.com/denysdovhan/purifier-card/releases/latest
308
331
  [ha-scripts]: https://www.home-assistant.io/docs/scripts/
309
- [xiaomi-miio-favorite-levels]: https://www.home-assistant.io/integrations/xiaomi_miio/#service-xiaomi_miiofan_set_favorite_level-air-purifiers-only
310
332
  [original-gif]: https://github.com/macbury/SmartHouse/blob/master/home-assistant/www/custom-lovelace/air-purifier/standby.gif
311
333
  [edit-readme]: https://github.com/denysdovhan/purifier-card/edit/master/README.md
312
334
  [add-translation]: https://github.com/denysdovhan/purifier-card/blob/master/CONTRIBUTING.md#how-to-add-translation