Commit Graph
58 Commits
Author SHA1 Message Date
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
Aalian Khan e038bc64fd Merge pull request #29 from AalianKhan/Add-pre-releases
Add pre-releases to release badge
2023-06-25 21:33:14 -04: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.
1.0.0-alpha.1
2023-06-14 07:29:18 +02:00
Aalian Khan de70fddddd Merge pull request #22 from nwithan8/patch-1
Fix invalid example
2023-05-28 15:13:30 -04:00
Nate Harris 6d8a02b2a9 Fix invalid example 2023-05-20 04:19:39 -06:00
Aalian Khan 54b2fd4789 Add labels to issue templates 2023-04-10 16:21:50 -04:00
Aalian Khan d53e546d68 Add issue templates 2023-04-10 16:18:45 -04: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 c46be67559 Add files via upload 2023-04-04 12:39:52 -04:00
Aalian Khan 5d94853fa9 Add files via upload 2023-04-04 12:37:59 -04:00
Aalian Khan 44ae5f369b typo 2023-04-04 12:24:37 -04:00
Aalian Khan 87fea11754 Update README.md 0.15 2023-04-04 03:10:10 -04:00
Aalian Khan 018caa10e6 Update mushroom-strategy.js 2023-04-04 03:05:46 -04:00
Aalian Khan c0b6c62af1 Merge pull request #6 from AalianKhan/AalianKhan-patch-1
Added fix for weather entity error
0.14
2023-04-04 02:34:17 -04:00
Aalian Khan 3abee80090 add condition 2023-04-04 02:33:17 -04:00
Aalian Khan 870165951c update docs for weather config 2023-04-04 02:26:33 -04:00
Aalian Khan 841180e5ef Added fix for weather entity error 2023-04-04 02:07:31 -04:00
Aalian Khan 51e0c7ea25 Merge pull request #4 from AalianKhan/AalianKhan-patch-3
Fix bugs
0.13
2023-03-31 15:41:43 -04:00
Aalian Khan 046bc60d99 Fix bugs
Fix sensor duplication and made cover count more accurate
2023-03-31 15:41:29 -04:00
Aalian Khan d0c96ba386 Merge pull request #3 from AalianKhan/AalianKhan-patch-2
Fixed bug for template not working with entities that start with numbers
0.12
2023-03-31 11:55:58 -04:00
Aalian Khan ae259021cc Fixed bug for template not working with entities that start with numbers 2023-03-31 11:54:44 -04:00
Aalian Khan 5f9b9286cb Merge pull request #1 from AalianKhan/AalianKhan-patch-1
Fix bug where multiple entries in entity_config creates duplicates
0.11
2023-03-28 15:11:50 -04:00
Aalian Khan e8b065ea4e Fix bug where multiple entries in entity_config creates duplicates 2023-03-28 15:10:05 -04:00
Aalian Khan 3a5b2a1e5d Update README.md 0.1 2023-03-28 13:09:59 -04:00
Aalian Khan d5d7719bd0 Update README.md 2023-03-28 12:55:49 -04:00
Aalian Khan 0927e7d16d Add files via upload 2023-03-28 12:55:19 -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 bc37d17468 Add files via upload 2023-03-28 01:46:21 -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 d0d1a9717b Update validate.yml 2023-03-27 18:34:59 -04:00
Aalian Khan 8cd6d3a506 Update validate.yml 2023-03-27 18:29:07 -04:00
Aalian Khan 47d9bcbdd2 Update validate.yml 2023-03-27 18:24:56 -04:00
Aalian Khan 137cf0f854 Update README.md 2023-03-27 18:20:42 -04:00
Aalian Khan 75ce8765a8 Add files via upload 2023-03-27 18:19:34 -04:00
Aalian Khan 1216b56e1c Delete views.png 2023-03-27 18:19:19 -04:00
Aalian Khan 2ca6af8a7f Delete auto.png 2023-03-27 18:19:11 -04:00
Aalian Khan 4a96b82c4a Delete Customizable.png 2023-03-27 18:19:03 -04:00
Aalian Khan ee35275c99 Create base for Readme 2023-03-26 19:00:59 -04:00
Aalian Khan b7c00697f2 Add files via upload 2023-03-26 18:59:05 -04:00
Aalian Khan 2f5ff71b03 Delete Built-in views.png 2023-03-26 18:58:30 -04:00
Aalian Khan 601e85486c Delete Auto create.png 2023-03-26 18:58:23 -04:00