Commit Graph
45 Commits
Author SHA1 Message Date
DigiLive 09d486359e Add wiki documents 2025-05-26 15:03:23 +02: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 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
DigiLive 1bfda2ca22 Refactor repository references 2025-04-26 09:04:33 +02:00
Aalian Khan d037c31001 bump to 2.2.0 2024-11-18 21:01:43 -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
Ferry Cools 6e03f0d211 Add Wiki to README.md (#102)
Adds a link to the Wiki for the help section.
2024-01-17 15:57:52 -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
Kevin Gottsman c8a9cd5618 Add "home" as an available view (#94) 2023-11-17 06:37:27 +01:00
Johan Frick f76a596572 Add Mushroom Number Card (#79)
A Mushroom Number Card for number and input_number entities.
2023-10-31 14:41:37 +01:00
Johan Frick ccf10f716c Fix Home View Options documentation (#80)
The code for hiding sections in the home view is case sensitive, so none of the options in the README worked.
Also, the option for the areas title was missing an 's'.
2023-10-29 23:45:03 +01:00
Ferry CoolsandJohan Frick d8274b1272 Add possibility to hide home elements
Elements of the home view can be hidden by listing them at the strategy
options:

```YAML
strategy:
  type: custom:mushroom-strategy
  options:
    homeView:
      hidden:
        - Greeting
        - AreaTitle
views: []
```
---------

Co-authored-by: Johan Frick <johan.frick@gmail.com>
2023-10-23 11:51:02 +02:00
Adrien BraultandDigiLive c7b2040b52 Reformat README.md (#69)
Also fixes a spelling error.

---------

Co-authored-by: DigiLive <github@digilive.nl>
2023-10-15 18:35:28 +02:00
Johan FrickandDigiLive 98ef9fed05 Add options for all areas (#52)
Area identifier `_` sets the options for all areas.
Options for a specific area can still be overridden like before.

Also the HA area-card is added to use as a strategy area-card.

---------

Co-authored-by: DigiLive <info@digilive.nl>
2023-10-13 08:12:11 +02:00
Aalian Khan 69261540f2 Update documentation 2023-09-19 11:48:11 -04:00
DigiLive cdb4a086f2 Reformat README.md 2023-09-19 16:23:15 +02:00
Aalian Khan 3f76219715 Document how to hide device 2023-09-14 16:10:11 -04:00
Aalian Khan 3c28cadcbf Update README.md 2023-09-05 19:29:19 -04:00
Aalian Khan 0f4f7045ed Update README.md 2023-08-15 10:21:30 -04:00
Ferry Cools 140aec854b Add options to configure entity-cards (#31)
* Add options to configure entity-cards

Closes #10.
- Option to set the type of entity card.
- Option to hide an entity card from the dashboard.

* Add hiding title cards

When all entity cards are hidden for an area or domain, the
corresponding title cards will be hidden also.

* Fix Climate Chip navigation

Closes #33

* Build production distribution
2023-07-19 15:07:55 +02:00
Ferry Cools 2d104428e4 Add pre-releases to release badge 2023-06-24 10:19:43 +02: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
Nate Harris 6d8a02b2a9 Fix invalid example 2023-05-20 04:19:39 -06:00
Aalian Khan 7ee82546f5 Document examples to be more readable. 2023-04-10 16:06:36 -04:00
Aalian Khan 8cb96c2c98 Update README.md 2023-04-04 12:46:59 -04:00
Aalian Khan 44ae5f369b typo 2023-04-04 12:24:37 -04:00
Aalian Khan 87fea11754 Update README.md 2023-04-04 03:10:10 -04:00
Aalian Khan 870165951c update docs for weather config 2023-04-04 02:26:33 -04:00
Aalian Khan 3a5b2a1e5d Update README.md 2023-03-28 13:09:59 -04:00
Aalian Khan d5d7719bd0 Update README.md 2023-03-28 12:55:49 -04:00
Aalian Khan 2b3c8895e4 Update README.md 2023-03-28 11:48:02 -04:00
Aalian Khan 3dd827ea72 Update README.md 2023-03-28 11:42:06 -04:00
Aalian Khan 819c66f265 Update README.md 2023-03-28 01:56:30 -04:00
Aalian Khan 6523ef3bc0 Update README.md 2023-03-28 01:49:40 -04:00
Aalian Khan b0eb25f66a Update README.md 2023-03-28 01:48:41 -04:00
Aalian Khan 287b6b4198 Update README.md 2023-03-28 01:45:17 -04:00
Aalian Khan 100c8098f1 Update README.md 2023-03-28 01:40:59 -04:00
Aalian Khan 8816191c25 Finish wiki 2023-03-28 01:23:26 -04:00
Aalian Khan a85ef9f9fc add area object 2023-03-28 00:21:34 -04:00
Aalian Khan 137cf0f854 Update README.md 2023-03-27 18:20:42 -04:00
Aalian Khan ee35275c99 Create base for Readme 2023-03-26 19:00:59 -04:00
Aalian Khan 1bc2d05206 Initial commit 2023-03-26 15:45:36 -04:00