mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 22:47:01 +01:00
63 lines
1.4 KiB
Markdown
63 lines
1.4 KiB
Markdown
# Subpages
|
|
|
|
You can configure entities with with the prefix `navigate`, that are navigating to cards, in case it's hidden card, the navigation items will change and the arrow is bringing you back to the previous page.
|
|
|
|
```yaml
|
|
- entity: navigate.testKey
|
|
```
|
|
|
|
will allow you to navigate to a cardGrid page with the configured key testKey
|
|
|
|
```yaml
|
|
hiddenCards:
|
|
- type: cardGrid
|
|
title: Exmaple Grid
|
|
entities:
|
|
- entity: light.test_item
|
|
key: testKey
|
|
```
|
|
|
|
# Override Status of Navigation Items
|
|
|
|
You can override the status of navigation items, to make them look like different entities.
|
|
|
|
```yaml
|
|
- entity: navigate.testKey
|
|
status: climate.test
|
|
```
|
|
|
|
# Override Navigation Items itself
|
|
|
|

|
|
|
|
```yaml
|
|
cards:
|
|
- type: cardGrid
|
|
title: Wohnzimmer
|
|
navItem1:
|
|
entity: light.bad_lights
|
|
navItem2:
|
|
entity: light.bad_lights
|
|
entities:
|
|
```
|
|
|
|
This can be used to add an home button to your subpages:
|
|
|
|
```yaml
|
|
cards:
|
|
- type: cardGrid
|
|
title: Home
|
|
key: home
|
|
entities:
|
|
- entity: light.bad
|
|
|
|
hiddenCards:
|
|
- type: cardGrid
|
|
title: Wohnzimmer
|
|
navItem2:
|
|
entity: navigate.home
|
|
icon: mdi:home
|
|
entities:
|
|
- entity: light.kitchen
|
|
```
|