A custom card to support mermaidjs (https://mermaid-js.github.io/)
graph LR
A --> B
B --> C
C --> D
D --> A
-
Download and copy
mermaidjs-card.js
into yourconfig/www
directory. -
Add the resource reference as decribed below.
If you configure Lovelace via YAML, add a reference to apexcharts-card.js
inside your configuration.yaml
:
resources:
- url: /local/mermaidjs-card.js?v=0.0.1
type: module
Else, if you prefer the graphical editor, use the menu to add the resource:
- Make sure, advanced mode is enabled in your user profile (click on your user name to get there)
- Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon
- Enter URL
/local/mermaidjs-card.js
and select type "JavaScript Module". - Restart Home Assistant.