Commit Graph
16 Commits
Author SHA1 Message Date
DigiLive adb796d959 Reformat code style 2025-05-27 21:08:22 +02:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Ferry Cools
2fd1be9fc3 Bump the dependencies group with 6 updates (#218)
Bumps the dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.31.0` | `8.32.1` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.31.0` | `8.32.1` |
| [eslint](https://github.com/eslint/eslint) | `9.25.1` | `9.27.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | `10.1.2` | `10.1.5` |
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | `5.2.6` | `5.4.0` |
| [webpack](https://github.com/webpack/webpack) | `5.99.7` | `5.99.8` |


Updates `@typescript-eslint/eslint-plugin` from 8.31.0 to 8.32.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.32.1/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.31.0 to 8.32.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.32.1/packages/parser)

Updates `eslint` from 9.25.1 to 9.27.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.25.1...v9.27.0)

Updates `eslint-config-prettier` from 10.1.2 to 10.1.5
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.1.2...v10.1.5)

Updates `eslint-plugin-prettier` from 5.2.6 to 5.4.0
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.6...v5.4.0)

Updates `webpack` from 5.99.7 to 5.99.8
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.99.7...v5.99.8)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.32.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.32.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: eslint
  dependency-version: 9.27.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: eslint-config-prettier
  dependency-version: 10.1.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: webpack
  dependency-version: 5.99.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ferry Cools <fcools@digilive.nl>
2025-05-17 14:23:59 +02:00
DigiLive 207c4c13c0 Bump Strategy version 2025-05-14 07:00:57 +02:00
DigiLive a4239ca99f Bump Strategy version 2025-05-13 22:34:10 +02:00
Ferry Cools a5ec18823d Release v2.3.0 (#195)
Adds:

- Strategy:
  - SceneCard: Support for Stateful scenes. Closes #190.
  - ValveCard: A card to control an entity of the valve domain. Closes #192.
  - LockView: A view for entities of the lock domain. Closes #171.
- Modules:
  - RegistryFilter: Advanced filtering and sorting of Home Assistant registries.
  - Auxiliaries: Generic utility functions.
  - Debug: Centralized logging and debug level management.
- Tooling:
  - ESLint configuration for linting.
  - Prettier configuration for code formatting.


Removes:

- Redundant types and interface annotations.
- Redundant legacy and unused modules.
- Localization constant from the `Helper` module in favor of a new `localize` utility.

Refactors:

- References regarding change of repository owner.
- Auxiliary functions are moved from the `Helper` module to `Auxiliaries` module.
- `Helper` module is renamed to `Registry` for centralized state and registry management.
- `ControllerCard` is renamed to `HeaderCard`.
- Doc-blocks and comments are updated for clarity and consistency.
- The file tree is restructured for improved clarity, modularity, and scalability.
- Third party type definitions are updated and cleaned up.
- Issue and Pull Request templates.

Optimizations:

- Parallelization of dynamic imports for views and cards.
- Improved error handling and logging throughout the codebase.
- Sanitization of HASS registries after import.
- Enforced stricter and simplified types and interfaces.
- Localization now available at global scope.

Fixes:

- Wrong type in configuration of `HeaderCard`.
- Translation files: Resolved key inconsistencies.
- Removed unnecessary namespaces from types.
- Typos and Grammar.
- Explicit use of `any` types.
- Turn off all entities of a domain with a chip tap action.
- Rendering too small HASS area cards.
- Count of active vacuums.


Bumps:

- Mushroom Strategy
- home-assistant-js-websocket
- superstruct
- ts-loader
- ts-node
- typescript
- webpack
- webpack-cli
2025-05-13 07:01:26 +02:00
Ferry Cools 3bde47d8d7 Bump dependencies (#161)
* Bump webpack version

Versions <5.94.0 are vulnerable to Cross-site Scripting (XSS) via DOM
clobbering in the AutoPublicPathRuntimeModule class.

https://security.snyk.io/package/npm/webpack/5.93.0

* Bump ts-loader version

Versions <9.5.0 have vulnerabilities in their dependencies.

braces: https://github.com/advisories/GHSA-grv7-fg5c-xmjg
cross-spawn: https://github.com/advisories/GHSA-3xgq-45jj-v275
2024-11-20 17:06:18 -08:00
Aalian Khan d037c31001 bump to 2.2.0 2024-11-18 21:01:43 -05:00
Aalian Khan 09f319a336 Revert "Bump to 2.2.0"
This reverts commit ad8d56374c.
2024-11-18 20:42:56 -05:00
Aalian Khan ad8d56374c Bump to 2.2.0 2024-11-17 21:40:24 -05:00
Subhash ChandraandDigiLive fba9364106 Add option to hide config-entities (#103).
* Introduces a `hide_config_entities` strategy-option to define if a 
  config-entity should be hidden or not.

* Bumps version number to 2.1.0

---------

Co-authored-by: DigiLive <github@digilive.nl>
2024-02-01 06:57:39 +01:00
Ferry Cools ae744bf177 Fix package version (#124)
The version number has been updated from 2.0.0/2.0.2 to 2.0.3 across
multiple files.
2024-01-28 17:11:26 -08:00
Aalian Khan 89be48273f Update package.json 2024-01-26 12:08:01 -08:00
Aalian Khan 1c21040c30 Bump package.json 2024-01-26 12:05:21 -08:00
Ferry Cools 82a91c3bd4 Refactor JavaScript to TypeScript (#81)
Other changes include:

* Add Vacuum Card and View.

* Add hiding a view if no device is configured for it. Closes #24.

* Add icon to HomeView configuration.

* Add version output to console.

* Add version bumper.

* Add .editorconfig settings.

* Refactor README, because the information moved to the repository's
   Wiki. Closes #87.
2023-11-22 21:02:56 +01:00
Aalian Khan 5bded12e70 Add option to hide person cards
Now you should be able to hide person entities from the home page.
2023-06-25 23:19:20 -04:00
Ferry Cools d5066303f3 Code Cleanup (#7)
Refactor the code base from Procedural to Object-Oriented Programming.

The new code base requires webpack (https://webpack.js.org/) to bundle the code into a single javascript file.
Webpack can be installed with npm, using file `package-lock.json` or `package.json`.

File `package.json` contains two script entries:

* `build` for a *release* build (uses file`webpack.config.js`).
* `build-dev` for a *debug* build (uses file `webpack.dev.config.js`).

Both of the scripts will bundle the separate package files into a single javascript file in the `dist` directory.

Includes fixes and changes:

* The release badge in readme now displays the latest release version.
* Optimize function `getStateEntities()`.
* Implement #11.
* Merge Home Assistant and User-defined areas.
* Add contributors to readme.
* Fix getCountTemplate method.  
  The method only counted states which aren't equal to value `off`.
  States are now counted by specifying a comparison operator and value.
* Document default HACS installation.
* Fix overriding sensor card configuration.  
  Having an `entity_config` property in the strategy options resulted in overriding each sensor card.
  Only the cards listed under this property should be overridden.
* Cut redundant properties and constants  
  Method `generateDashboard()` passes redundant values to generateView().
  Writing those values into properties and reading them into constants is removed.
* Fix undefined sensorState.  
  Not all entities (like a RESTful sensor) are bound to a device.
  SensorStates did contain states which meet all following conditions:
    1. The linked entity is linked to the given area or isn't linked to any area.
    2. The linked device is linked to the given area.

  SensorStates now contains states which meet any* of the following conditions:

    1. The linked entity is linked to the given area or isn't linked to any area.
    2. The entity is linked to a device, and the linked device is linked to the given area.
       *) Whichever comes first.
* Add undisclosed area.
* Add ordering of area-cards.  
  Area cards are now ordered by a custom set position first and then by the area name.
* Add global sorting of entities by original_name.
* Add global sorting of areas by order and name.
* Add global sorting of domains by order and title.
* Make production build.

Known Issue: Title cards or chips won't switch entities assigned to the undisclosed area.
2023-06-14 07:29:18 +02:00