I wanted to share this custom strategy I made that automagically creates a dashboard from the areas and devices you have configured in Home Assistant.
It has a home view that shows all the people and cards for each room. Each room has its own subview that shows all the devices and entities in that room. I also created some pre-built views in the strategy that shows domain-specific entities and devices like lights, switches and more.
Usage
To use this, you can add this to your Home Assistant instance via HACS or manually downloading it. You also need Mushroom cards, mini-graph card and WebRTC integration. then just add these 3 lines of code in the Raw configuration editor
I tried to make it as customizable as possible to fit most of your needs.
You can easily hide unwanted entities by going to the UI and setting the entity status to hidden or disabled (if you donāt want to use it in Home Assistant at all).
I added options toā¦
Disable pre-built views and pre-built chips.
Add your own additional cards in various places on the dashboard.
Customize the card for a specific entity
Customize the room cards
if you think there is something that should be added, feel free to tell me.
Remarks
I have been using Home Assistant for some time now and love the community. I hope this creates more strategies for other cards and dashboard layouts. I am finally giving something back but I am also not a skillful developer and this is actually my first ever javascript and GitHub repository. I will love to hear some feedback and some advice from you guys. Thanks
Yes, I am sure.
It seems like you didnāt indent it properly. Note that there are 2 views.
One is not indented at all, views: []
and the other is indented so it is under options
If not then you will have to make sure you have installed it correctly and the mushroom strategy is present in resources.
What happens when you put this as your configuration?
strategy:
type: custom:mushroom-strategy
options:
areas:
- name: Salon
icon: mdi:sofa
icon_color: green
views:
lights: true
views: []
It does work with no errors when I put that in.
You can try going in inspect mode to see more logs (Ctrl + shift + i). Showing a screenshot of the red highlighted errors will help me.
If you have more questions, please ask.
Currently, the order of which you define the areas are used for the order of the area cards. So the closets thing currently is listing your areas in alphabetical order
āI once edited the card in UI mode by chance, but I couldnāt get back in after exiting. When I click on āEdit Dashboardā, I can only see those three lines of code. How can I edit the card in UI mode?ā