Commit Graph
22 Commits
Author SHA1 Message Date
DigiLive 629dfa610d Fix 2 Title cards in pre-built views
Closes #56
2023-09-19 18:36:43 +02:00
Aalian Khan 41c24a62d3 Update branch for merging 2023-09-19 11:04:31 -04:00
Aalian Khan 3bbbdad035 Merge branch 'main' of https://github.com/AalianKhan/mushroom-strategy into hide-devices 2023-09-19 11:03:45 -04:00
Aalian Khan 3063776a5f Refactor grouped cards 2023-09-19 10:47:35 -04:00
Aalian Khan 7ab85afb85 Refactor to look at card_options instead 2023-09-14 15:58:59 -04:00
Aalian Khan 01c6205c02 Add option to hide all entities of a device.
#48
2023-09-14 15:40:37 -04:00
Aalian Khan 14f514fffe Fix area title position
put the area title card inside the vertical stack so everything matches up in the desktop view.
2023-09-13 19:20:41 -04:00
Aalian Khan 0d3b0a9089 Refactor bug fix 2023-09-11 11:33:46 -04:00
Aalian Khan 178a2fe003 Fix hiding default domain
this solution works, but it uses another variable. If you have a better idea, please feel free to share
2023-09-09 19:05:59 -04:00
Aalian Khan 1025201e2b Fix lock icon by adding lock domain
Fixes #41
2023-09-05 18:57:19 -04:00
Ferry Cools a6b2499a7b Merge branch 'main' into camera-fix 2023-08-15 15:28:27 +02:00
Aalian Khan e2889add02 Fix camera cards to use picture entity 2023-08-14 14:56:03 -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
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
Aalian Khan 018caa10e6 Update mushroom-strategy.js 2023-04-04 03:05:46 -04:00
Aalian Khan 3abee80090 add condition 2023-04-04 02:33:17 -04:00
Aalian Khan 841180e5ef Added fix for weather entity error 2023-04-04 02:07:31 -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 ae259021cc Fixed bug for template not working with entities that start with numbers 2023-03-31 11:54:44 -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 c27fa8fcf9 Add files via upload 2023-03-26 16:07:27 -04:00