Skip to content

Commit

Permalink
Fix issue with auto-generated dashboard writing to bad directory (for…
Browse files Browse the repository at this point in the history
… older AppDaemon) (#348)

* Move auto-generated dashboard to /config to avoid it breaking older AppDaemon installs
  • Loading branch information
springfall2008 authored Nov 20, 2023
1 parent 23ff141 commit 592808d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8770,7 +8770,7 @@ def create_entity_list(self):
for entity in self.dashboard_index:
text += " - entity: " + entity + "\n"

filename = "/homeassistant/predbat_dashboard.yaml"
filename = "/config/predbat_dashboard.yaml"
han = open(filename, "w")
if han:
self.log("Creating predbat dashboard at {}".format(filename))
Expand Down
2 changes: 1 addition & 1 deletion docs/output-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Displaying output data

Each config item has an input_number or switch associated with it, you can find an auto generated dashboard for your configuration in your HA configuration area under the filename **predbat_dashboard.yaml**
Each config item has an input_number or switch associated with it, you can find an auto generated dashboard for your configuration in your AppDaeamon configuration area under the filename **predbat_dashboard.yaml**

You can also create a card using 'dynamic-entities-card.yaml' for a dynamically created list of entities for predbat which groups the entities by type and is collapsed by default to prevent screen clutter. Requires lovelace-collapsable-cards ([https://github.com/RossMcMillan92/lovelace-collapsable-cards](https://github.com/RossMcMillan92/lovelace-collapsable-cards)) and lovelace-auto-entities ([https://github.com/thomasloven/lovelace-auto-entities](https://github.com/thomasloven/lovelace-auto-entities)) to be installed via HACS as well as the stock vertical stack card. Credit @DJBenson for the code.

Expand Down
2 changes: 1 addition & 1 deletion example_dashboard.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# The predbat dashboard can now be found auto-generated in your home assistant configuration area: predbat_dashboard.yaml
# The predbat dashboard can now be found auto-generated in your AppDaemon configuration area as predbat_dashboard.yaml

0 comments on commit 592808d

Please sign in to comment.