Commit Graph
190 Commits
Author SHA1 Message Date
DigiLive d168de024b Fix unwanted split in the Home view
HASS "masonry" view split the cards into multiple columns if sections
get "too large". This change will force the default sections into a
single vertical stack, while the extra_cards section is allowed to be
moved by HASS.
2025-05-23 08:58:05 +02:00
DigiLive 93bebd4f47 Add a log message for domain views
Adds logging a message in the console if no entities are available for a
domain view.
2025-05-23 08:52:27 +02:00
DigiLive d405ca8425 Build Distribution 2025-05-18 10:56:22 +02:00
DigiLive e56d5577a0 Merge branch 'main' into add-cards-per-row
# Conflicts:
#	dist/mushroom-strategy.js
2025-05-18 10:51:57 +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 b80d3c70b0 Bump Node version for the build workflow 2025-05-17 14:19:17 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 48a253ac7f Bump the actions group with 2 updates (#217)
Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Updates `actions/setup-node` from 3 to 4
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-node
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 14:16:39 +02:00
Ferry Cools c534505e6e Add Pull Request grouping 2025-05-17 13:50:43 +02:00
Ferry Cools 6e214079a6 Refactor HACS Action version 2025-05-17 13:42:37 +02:00
Ferry Cools 01c8f162a2 Add dependabot.yml 2025-05-17 13:36:04 +02:00
DigiLive f6a7e80004 Merge remote-tracking branch 'origin/main' 2025-05-17 12:51:44 +02:00
DigiLive bac30b5855 Refactor commit message for build
Adds a skip tag for codacy.
2025-05-17 12:50:26 +02:00
Continuous Integration 00508cf03a Continuous Integration - Build Distribution 2025-05-17 10:35:35 +00:00
DigiLive 02caa4dbed Refactor Codacy items
Adds a code quality badge to the readme and refactors some minor issues
to satisfy Codacy.
2025-05-17 12:35:02 +02:00
DigiLive 9aa2c442f0 Refactor ESSLint configuration file
Codacy expects it to have a `.json` extension.
2025-05-17 11:41:46 +02:00
DigiLive 4057725378 Bump Strategy version v2.3.3-alpha.1 2025-05-17 10:44:19 +02:00
DigiLive d895854f27 Merge branch 'main' into add-cards-per-row 2025-05-17 10:39:15 +02:00
Continuous Integration ebc71daf6a Continuous Integration - Build Distribution 2025-05-17 08:34:59 +00:00
DigiLive 28296a8a63 Fix localization for regioned languages 2025-05-17 10:34:29 +02:00
P1LH4 90da717c81 Add Brazilian-Portugese language 2025-05-17 09:51:29 +02:00
DigiLive 2ff0782685 Add a config option for column count
If cards are horizontally stacked, the number of columns can now be
configured in the Strategy options.

Stack counts under domains, affect the domain views as well as the Area
views.

```yaml
home_view:
  stack_count:
    _: 2
    persons: 3
    areas: [2,1] # [Strategy Card, HASS card]
domains:
  _:
    stack_count: 2
    light: 3
```

Closes #203
2025-05-16 14:55:44 +02:00
Continuous Integration b2e34e83a4 Continuous Integration - Build Distribution 2025-05-16 06:14:34 +00:00
DigiLive 6f81e7da65 Fix showing entities twice
Entities with an explicit area id where shown twice.
Once because of the explicit area and once because of its device's area.

Closes #207.
2025-05-16 08:13:44 +02:00
Continuous Integration 7bbfe6c0c9 Continuous Integration - Build Distribution 2025-05-14 08:59:18 +00:00
DigiLive 993ef5258a Add a showControls option to all domains
Adds the `showControls` option to the all-domains configuration to allow
hiding the control buttons at a domain view or for the domains at an
area view.

Closes #126.
2025-05-14 10:58:45 +02:00
Continuous Integration d37c903d37 Continuous Integration - Build Distribution 2025-05-14 06:39:51 +00:00
DigiLive 7a17a330fe Merge remote-tracking branch 'origin/main' 2025-05-14 08:37:19 +02:00
DigiLive 4cbb1274f6 Fix "Area not found" error
If the card type for the undisclosed area is set to `HaAreaCard`, a card
is shown with the message "Area not found".
This is because it's not a real area and the type must be enforced to
`default`.

Closes #206
2025-05-14 08:36:37 +02:00
DigiLive 2fc0df9db0 Fix Vacuum Control buttons
The default configuration of the control buttons was missing.
2025-05-14 07:37:48 +02:00
Continuous Integration 9975a89f4c Continuous Integration - Build Distribution v2.3.2 2025-05-14 05:01:34 +00:00
DigiLive 207c4c13c0 Bump Strategy version 2025-05-14 07:00:57 +02:00
Continuous Integration 5860178818 Continuous Integration - Build Distribution 2025-05-14 04:42:21 +00:00
DigiLive b58ece65cf Fix hiding areas
Closes #205.
2025-05-14 06:41:51 +02:00
Continuous Integration 9f818f6294 Continuous Integration - Build Distribution v2.3.1 2025-05-13 20:34:59 +00:00
DigiLive a4239ca99f Bump Strategy version 2025-05-13 22:34:10 +02:00
Continuous Integration e9ae919a77 Continuous Integration - Build Distribution 2025-05-13 20:29:32 +00:00
DigiLive 101538067e Fix applying custom area configuration
Closes #200, #202.
2025-05-13 22:29:03 +02:00
Continuous Integration 8e80a6e71e Continuous Integration - Build Distribution 2025-05-13 20:16:32 +00:00
DigiLive c3505de66c Refactor job and step names 2025-05-13 22:16:07 +02:00
DigiLive c7b6526326 Fix hiding greeting section
Closes #201.
2025-05-13 21:07:30 +02:00
DigiLive d28ea4c52e Build Distribution v2.3.0 2025-05-13 07:59:18 +02:00
DigiLive 1aa2bb0d3a Cut dist directory from gitignore
Git evaluates this folder after the build process to detect if a
new commit to the repository is required.
2025-05-13 07:43:02 +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
DigiLive 1bfda2ca22 Refactor repository references 2025-04-26 09:04:33 +02:00
Continuous Integration 0a510648e0 Continuous Integration - Build Distribution 2025-03-23 06:33:22 +00:00
w531t4 711140d13f Add hiding diagnostic entities (#153)
Config and diagnostic entities are now hidden by default.

Their visibility can be defined in the configuration with entries
`hide_config_entities` and `hide_diagnostic_entities` for all or individual domains.
2025-03-23 07:33:00 +01:00
Aalian Khan 0c2649e08e Add additional card image 2025-03-08 08:59:01 -08:00
Aalian Khan e8e0b0c5f1 Add additional card image 2025-03-08 08:39:35 -08:00
Continuous Integration 03b56a5fea Continuous Integration - Build Distribution v2.2.0 2025-03-08 07:29:27 +00:00
Marcoske23andFerry Cools bee8f4b236 Add Spanish translation (#179)
Co-authored-by: Ferry Cools <fcools@digilive.nl>
2025-03-08 08:29:07 +01:00