https://github.com/thomasloven/lovelace-wbah
Lovelace with bluejays and herons
https://github.com/thomasloven/lovelace-wbah
Last synced: 2 months ago
JSON representation
Lovelace with bluejays and herons
- Host: GitHub
- URL: https://github.com/thomasloven/lovelace-wbah
- Owner: thomasloven
- License: mit
- Created: 2021-06-30T17:09:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T22:40:48.000Z (almost 4 years ago)
- Last Synced: 2025-01-09T17:04:50.590Z (4 months ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Lovelace WBAH
Fine, I'm gonna make my own lovelace! With blackjack.. and hookers... In fact, forget making my own lovelace.
I'll just add random stuff on to it instead.This plugin is a bit special.
It's basically a collection of quality of life improvements for me and me alone to help me with experimenting for other plugins.But maybe you can find a use for it too.
This is not available in HACS by default.
## Installing
For installing this, I actually recommend adding it to your `frontend` configuration in `configuration.yaml` thusly:
```yaml
frontend:
extra_module_url:
- /local/wbah.js
```That way it will work outside of lovelace too.
## Functionality
### Console commands
Lovelace WBAH adds some variables and functions to the global window scope of the frontend. Those are:
| | |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `hass` | The `hass` object with all states and stuff. |
| `lovelace` | The `lovelace` object with lovelace configuration and stuff. This only works if lovelace is currently showing. |
| `view` | A reference to the root view element. Meant as a shortcut for manual tree navigation. |
| `editMode()` | Calling this function will enable GUI editing mode even in a yaml dashboard.
Saving changes will only work for storage dashboards, though. |
| `rtl()` | Toggle RTL mode for current language |### Quick launch menu
The quick launche menu can be opened by pressing `e` on your keyboard and lets you open the more-info dialog of entities.
Lovelace WBAH adds the shortcut shift+Enter for toggling the top entity on or off (is possible). Shift+Enter will also run scripts.### Quick launch commands
Lovelace WBAH adds the following commands to the quick launch menu (opened by pressing `c` on your keyboard):
| | |
| --------------- | ---------------------------- |
| `GUI Edit mode` | Same as calling `editMode()` |
| `RTL mode` | Same as calling `rtl()` |All commands can be found by searching for "WBAH" in the quick launch menu.
## Demo

---