Skip to content

Commit

Permalink
Merge pull request #276 from eelcob/2.0
Browse files Browse the repository at this point in the history
Add support for graph type in the room-page_entities and make lights button in top menu configurable
  • Loading branch information
dwainscheeren authored Nov 30, 2021
2 parents c0bb12a + 03b0cd7 commit d5802b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# dwains_dashboard

- path: lights
{% if _dd_config.lights %}
{% if _dd_config.lights["main_menu"] and _dd_config.lights["main_menu"] == 'false' %}
visible: false
{% else %}
visible: true
{% endif %}
{% endif %}
icon: {{ _dd_icons.menu_lights|default('mdi:lightbulb-group') }}
title: {{ _dd_trans.all_lights.title }}
panel: true
Expand Down Expand Up @@ -169,4 +176,4 @@
items_classes: 'col-xs-12'
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
Original file line number Diff line number Diff line change
Expand Up @@ -862,9 +862,15 @@
item_classes: 'col-xs-12 col-sm-12 col-md-12 col-lg-12'
{% endif %}
{% for more_entity in room["page_entities"]["entities"] %}
- type: custom:button-card
entity: {{ more_entity["entity"] }}
template: room_more_entity
{% if more_entity["type"] and more_entity["type"] == 'graph' %}
- type: sensor
entity: {{ more_entity["entity"] }}
graph: line
{% else %}
- type: custom:button-card
entity: {{ more_entity["entity"] }}
template: room_more_entity
{% endif %}
{% if more_entity["entity"].split('.')[0] in ('switch', 'light') %}
tap_action:
action: toggle
Expand Down

0 comments on commit d5802b2

Please sign in to comment.