-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring, cleanup and new features.
Code refactoring to fit framework structure. Simplified and cleaned up code logic. New features: - Now support from 0 to 4 "subicons". - If less than 4 "subicons", the "subicons" divide the vertical space into 3 squares instead of 4. - No need to have an entity for the "Room entity". Only the and icon is needed and a default icon (mdi:sofa-single) is now defined. - "more-info" is now the default behavior for "subicons" "hold_action".
- Loading branch information
Showing
3 changed files
with
88 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ebb11f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sisimomo,
I know this is not the place but I really don't know how to share this (nor to add commits, requests, etc), only to modify locally...
I would love if you could take a look at this
I have a custom card based on the previous card_room template where I added:
✅ support for 2 more entities
✅ make room name smaller so that it fits in less space
✅ support for haptics (customizable in ui-lovelace.yaml)
✅ ability to handle custom icons defined in ui-lovelace.yaml
Plus, I also made a mini version of the card (with 6 subicons too).
Edit: I was able to add everything to the current version, linked comment updated.
I really think support for haptics, custom double_tap_action and custom icons should be added to the template. Support for 6 is subjective although it doesn't hurt I think...