View Strategies
View Strategies are Strategies that generate a single View.
What is a View?
A View is a Tab inside an already existing Dashboard.
Take a look at the example image:
- the Dashboard is the Thing in the Sidebar
- the View is the thing with the red mark inside the Dashboard
Only the View can get generated with a View Strategy!
How do i generate a View with a View Strategy?
You just write YAML like in the following example.
title: My already existing Dashboard
...
views:
- strategy:
type: custom:example-view-strategy
#The Config for this view dependant on the view; nothing to do with HA Config
config: config for this view
#The Home Assistant View Options like:
##icon: mdi-example
##path: example
##title: Example
##visible:
## - user_you_want
- other views you want...
Note that the views: key is a key in an already existing Dashboard and is a feature of the Home Assistant Dashboard Configuration!
Look at an example in the Home Assistant Documenation above that Heading!