Commit Graph
211 Commits
Author SHA1 Message Date
DigiLive ad084414f0 Add processing of extra_views
- Force `subView` to be false.
- Add sorting bij order first and then by title.
2025-05-13 12:08:59 +02:00
DigiLive 5113c8c3bd Refactor stackHorizontal method into a new module
- Cut the stackHorizontal method from the Registry class and added it to
  a new module for better organization and reusability.
2025-05-13 12:08:59 +02:00
DigiLive 957a299605 Refactor column counts for area cards and sensors
- Area cards:
  Stacking the card per two, results into too small card when using
  HASS area cards.
  Cards are now stacked at a maximum of 1 HASS card or 2 of every other.

- Binary sensor cards:
  Since the parametertype of stackHorizontal has been changed, there's
  no need to provide a column count anymore. It defaults to 2.
2025-05-13 12:08:59 +02:00
DigiLive abd92912b2 Refactor stackHorizontal for dynamic column counts
- Updated the stackHorizontal method to stack card configurations into
  horizontal stacks based on their type.
- Changed the parameter from a single columnCount to an object mapping
  card types to their respective column counts, allowing for greater
  flexibility.
2025-05-13 12:08:58 +02:00
DigiLive b564c0707e Cut unsued imports 2025-05-13 12:08:58 +02:00
DigiLive 8ba322b838 Refactor column count of person cards in Home view
Having many persons, the cards would take up a lot of space in the Home
view. Now, a horizontal stack allows up to 8 cards.
2025-05-13 12:08:58 +02:00
DigiLive 5ee0500f08 Fix area filtering logic in RegistryFilter
Method `whereAreaId()` filtered out entries without a device.
Those entries are now kept:
When areaId is `undisclosed`, the entry's area_id must match, and the
entry's device `area_id` must match, only if it is defined.
2025-05-13 12:08:58 +02:00
DigiLive eed47c6d55 Fix show chips with no entities available
Showing chips with no available entities has no value.
They are now excluded from the Home view.

Closes #187.
2025-05-13 12:08:58 +02:00
DigiLive e6c2a76b96 Fix target override of chip tap action
As an addition to the fix for issue #177.
Although the fix for #177 targets the entities, they were still
overridden by `setTapActionTarget()` after instantiation of the chip.

This statement is now removed.
Removing the statement, makes `setTapActionTarget()` and typeguards
obsolete, so they are removed also.
2025-05-13 12:08:57 +02:00
DigiLive 1558bf6843 Refactor Chip order
The order of chips at the Home view is defined by in what order they are
listed in the configuration defaults.
This order did not match the default order of the views.
2025-05-13 12:08:57 +02:00
DigiLive 997a3e9058 Fix Chip tap action
The action was turning off all entities of a domain. This includes
entities which are excluded from the strategy by hidden/disabled status.

The action now targets the strategy's entities explicitly.

Closes #177
2025-05-13 12:08:57 +02:00
DigiLive 26c3455e97 Add getValuesByProperty method to RegistryFilter
- Introduced getValuesByProperty method to retrieve an array of values
  for a specified property from filtered entries.
- This method enhances the functionality of the RegistryFilter class,
  allowing for more flexible data retrieval.
2025-05-13 12:08:57 +02:00
DigiLive aa73667809 Refactor for minor optimizations 2025-05-13 12:08:57 +02:00
DigiLive 11d41154de Fix release badge
The "Static" badge breaks on pre-releases.
It's now a "GitHub Tag" badge and shows `no matching tags found` until a
matching tag is found in the repository (which should only be used for
releases).
2025-05-13 12:08:55 +02:00
DigiLive 99fa2a36aa Fix domain of lock view
The lock view's domain was defined as `vacuum` causing the view to show
the wrong entities.
2025-05-13 12:08:52 +02:00
DigiLive 4c484ea6c3 Fix typos and grammar 2025-05-13 12:08:52 +02:00
DigiLive 395e5346df Fix Stateful scenes support
- Stateful scene cards now replace classic scene cards when a stateful
  equivalent exists.
- Stateful scene switches are hidden from the switch domain in all
  views, except for the Scene view.
- Stateful scene switches are excluded from the switch chip count.
2025-05-13 12:08:52 +02:00
DigiLive c536ee1302 Refactor default debug level to Fatal
With `Fatal` as a default, it will log all messages until redefined.
2025-05-13 12:08:52 +02:00
DigiLive 016d94ed69 Add typeguard isTargetableChip 2025-05-13 12:08:52 +02:00
DigiLive ba26cd127f Refactor type guard of service action configurations
Key `action` is extended with `perform-action` for future use.
Key `service` is deprecated and replaced by `perform_action`.
2025-05-13 12:08:51 +02:00
DigiLive 640a276afb Refactor property visibilities
Narrows down the visibility of abstract class properties.
2025-05-13 12:08:51 +02:00
DigiLive 2c9159c25e Fix localization of ConfigurationDefaults
The defaults where imported before localization was set up.
The import is now moved to after this required setup.
2025-05-13 12:08:51 +02:00
DigiLive 984f597ab8 Refactor repository references 2025-05-13 12:08:51 +02:00
DigiLive bfdd1e88da Bump the webpack version 2025-05-13 12:08:51 +02:00
DigiLive a66de0eefa Fix Header Card type 2025-05-13 12:08:50 +02:00
DigiLive f8dbbb1181 Refactor linting and formatting configurations
- Removes IDE-specific rules.
- Removes redundant rules.
- Aligns rules across the config files.
2025-05-13 12:08:50 +02:00
DigiLive bd0725f9a4 Fix links 2025-05-13 12:08:50 +02:00
DigiLive 149628350e Refactor GitHub templates 2025-05-13 12:08:48 +02:00
DigiLive 8643dfefaf Refactor YAML formatting 2025-05-13 12:08:46 +02:00
DigiLive 21bc9860df Add calling function/method to the logging output 2025-05-13 12:08:45 +02:00
DigiLive 97ac7ff4d2 Add support for Stateful scenes
Add changing the icon color of the Scene Card depending on the related
stateful scene entity, if available.
The default color will now be `disabled`.

Closes #190
2025-05-13 12:08:45 +02:00
DigiLive b0259de0c6 Refactor debug level
Raised the level for strategy configuration `single` from `lvlDebug` to
`lvlFatal`.
2025-05-13 12:08:45 +02:00
DigiLive dd7a3c8d5f Refactor debug level
Raised the level for method `single` from `lvlDebug` to `lvlWarn`.
2025-05-13 12:08:45 +02:00
DigiLive 9a7be8ba49 Fix unneeded domain check
Method createCardConfigurations checks for domain `Home` which will not
evaluatie to `true` because this domain overrides the method anyway.
2025-05-13 12:08:45 +02:00
DigiLive f8e9a666d5 Add Valve card
Closes #192.
2025-05-13 12:08:44 +02:00
DigiLive c1831cac11 Refactor code formatting settings 2025-05-13 12:08:44 +02:00
DigiLive 5dde2ada98 Fix card configuration
The type of the card configuration was set to EntityCardConfig, which is
too strict as a generic type of card.
The type is loosened to LoveLaceCardConfig.
2025-05-13 12:08:44 +02:00
DigiLive c131224753 Add Lock view
Closes #171
2025-05-13 12:08:42 +02:00
DigiLive b0dfc56449 Add funding 2025-05-13 12:08:40 +02:00
DigiLive 07ba337f08 Cut redundant files 2025-05-13 12:08:39 +02:00
DigiLive 98d005b01a Optimize MushroomStrategy class
Changed code to make use of new optimized modules.
- Parallelization of dynamic imports for views and cards.
- Improved error handling and logging throughout the codebase.
- Enforced stricter and simplified types and interfaces.
- Localization now available at global scope.
- Typos and Grammar.
2025-05-13 12:08:39 +02:00
DigiLive 22f523d0ee Optimize Home View
Changed code to be compatible with changed imports.
Also, the code is optimized and more concise.
2025-05-13 12:08:39 +02:00
DigiLive c1754ce598 Optimize Views
- Make use of the debug module.
- Make use of the auxiliaries module.
- Make use of the localization module.
- Make use of the Registry module.
- Align code across the chip modules.
- Make configurations immutable.
- Make use of the refactored types.
2025-05-13 12:08:39 +02:00
DigiLive 5b02f20084 Optimize Cards
- Make use of the debug module.
- Make use of the Registry module.
- Align code across the chip modules.
- Make configurations immutable.
- Make use of the refactored types.
2025-05-13 12:08:36 +02:00
DigiLive db3a00d6f2 Optimize Chips
- Make use of the debug module.
- Make use of the Registry module.
- Align code across the chip modules.
- Make configurations immutable.
- Make use of the refactored types.
2025-05-13 12:08:30 +02:00
DigiLive 3c8a236961 Fix translation files
- Align the translation keys across the files.
- Fix typos.
2025-05-13 12:08:19 +02:00
DigiLive 3725b89f9e Add Registry class.
The class is an optimized version of the Helper class.

- Sanitization of the HASS registries after import according to the
  configuration options.
- Improved error handling and logging.
- Removed generic utility functions.
2025-05-13 12:08:13 +02:00
DigiLive d224fc353c Refactor ConfigurationDefaults
Making use of the global localization functions, ConfigurationDefaults
is now a constant value instead of a function.
2025-05-13 12:08:10 +02:00
DigiLive e94ce9c830 Refactor Controller Card
The card is renamed to Header Card because it's clearer regarding its
purpose.
2025-05-13 12:08:08 +02:00
DigiLive 500a221638 Add modules
- debug module for centralized logging and debug level management.
- localize module for localization functions in the global scope.
- RegistryFilter module for advanced filtering and sorting of HASS
  registries.
- auxiliaries module for genric utility functions.
2025-05-13 12:08:03 +02:00