Anashost / MY-HA-DASH

81 stars 8 forks source link

Subpages #6

Open detlefh68 opened 8 months ago

detlefh68 commented 8 months ago

Hi,

You made very great work and I like your dashboard

Can You explain how au created subpages which you for example open from your chips on the top of the living room page. There ist a fan remote pages and I cannot see any navigation on the top menu.

It a very pretty method to open subpages for things like a fan, hvac, ...

Anashost commented 8 months ago

Hey, I'm glad you liked it.

So do you mean sub-pages or sub-cards? As subpages are just other views that are hidden from users, that's why they dont show up in the navigation bar. You can do that from each view settings (visibility).

Anashost commented 8 months ago

For sub-cards (dropdown), I've explained that in this issue #3

detlefh68 commented 8 months ago

I mean this subpages

image

The subpage has no page icon. Is this page hidden for the users?

image

The sub-pages (dropdown) is made with an helper and conditional card.

Anashost commented 8 months ago

Hey, I'm glad you liked it.

So do you mean sub-pages or sub-cards? As subpages are just other views that are hidden from users, that's why they dont show up in the navigation bar. You can do that from each view settings (visibility).

As i said here 👆🏻

So you just created a card like a mushroom-chips-card or mushroom-entity-card and set tap action to navigate, and enter view name.

detlefh68 commented 8 months ago

OK I understand, that's listen good and the page "forest" in the top navigation bar is gone :-)

Are the system monitoring cards also conditional cards and you switch the graph cards with an helper?

image

Anashost commented 8 months ago

Are the system monitoring cards also conditional cards and you switch the graph cards with an helper?

This view is kind complicated it requires:

Here's the automation try to understand it, to be able to edit it with your own entities:

alias: "Plugs views switching"
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.p1_drop_down_toggle
    from: "off"
    to: "on"
    id: p1
  - platform: state
    entity_id:
      - input_boolean.p2_drop_down_toggle
    from: "off"
    to: "on"
    id: p2
  - platform: state
    entity_id:
      - input_boolean.p3_drop_down_toggle
    from: "off"
    to: "on"
    id: p3
  - platform: state
    entity_id:
      - input_boolean.p4_drop_down_toggle
    from: "off"
    to: "on"
    id: p4
  - platform: state
    entity_id:
      - input_boolean.p5_drop_down_toggle
    from: "off"
    to: "on"
    id: p5
  - platform: state
    entity_id:
      - input_boolean.p6_drop_down_toggle
    from: "off"
    to: "on"
    id: p6
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: p1
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p3_drop_down_toggle
                - input_boolean.p2_drop_down_toggle
                - input_boolean.p4_drop_down_toggle
                - input_boolean.p5_drop_down_toggle
                - input_boolean.p6_drop_down_toggle
      - conditions:
          - condition: trigger
            id: p2
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p1_drop_down_toggle
                - input_boolean.p3_drop_down_toggle
                - input_boolean.p4_drop_down_toggle
                - input_boolean.p5_drop_down_toggle
                - input_boolean.p6_drop_down_toggle
      - conditions:
          - condition: trigger
            id: p3
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p1_drop_down_toggle
                - input_boolean.p2_drop_down_toggle
                - input_boolean.p4_drop_down_toggle
                - input_boolean.p5_drop_down_toggle
                - input_boolean.p6_drop_down_toggle
      - conditions:
          - condition: trigger
            id: p4
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p1_drop_down_toggle
                - input_boolean.p2_drop_down_toggle
                - input_boolean.p3_drop_down_toggle
                - input_boolean.p5_drop_down_toggle
                - input_boolean.p6_drop_down_toggle
      - conditions:
          - condition: trigger
            id: p5
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p1_drop_down_toggle
                - input_boolean.p2_drop_down_toggle
                - input_boolean.p3_drop_down_toggle
                - input_boolean.p4_drop_down_toggle
                - input_boolean.p6_drop_down_toggle
      - conditions:
          - condition: trigger
            id: p6
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id:
                - input_boolean.p1_drop_down_toggle
                - input_boolean.p2_drop_down_toggle
                - input_boolean.p3_drop_down_toggle
                - input_boolean.p4_drop_down_toggle
                - input_boolean.p5_drop_down_toggle
mode: single
detlefh68 commented 8 months ago

Great !

Here's the automation try to understand it, to be able to edit it with your own entities:

... an automation to switch (turn on/off) the helper by clicking on the chips => I understand 👍

Thank you very much for your tips and help!!!

Anashost commented 8 months ago

No worries, you're welcome