Picture element card, vaste sujet, mes pistes de recherche, voir les solutions qui me conviennent

Pour la météo, j’avais suivi le sujet dédié de @Pulpy-Luke, ça fonctionne très bien. Par contre les z:index, je découvre.

1 « J'aime »

re,

le z-index, force l’élément sur une couche du mille feuille, la première image (en dessous de tout) est sur le z:index 0 pour faire simple.

rien de sorcier, mais comme je l’ai montré plus haut ça peut amener des désagréments esthétiques en édition surtout

c’est pas sorcier, suffit de pas mettre plus bas que ce que j’ai mis, ça fonctionne pas ( j’ai testé )

cdt

1 « J'aime »

Re,

J’ajoute le code de ma première version du menu si ça intéresse du monde, parce que même si je garde tout je ne suis pas à l’abri d’une mauvaise manip et de perdre un truc

  - type: custom:mod-card
    style:
      left: 10%
      top: 28.5%
      height: 65%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#update1"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:update
          auto_close: "5000"
          name: Mises à jour partie1
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-right-bold
          name: Mises à jour partie2
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#update2"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            } 
        - type: custom:auto-entities
          card:
            type: entities
            show_header_toggle: false
          filter:
            include:
              - domain: update
                template: >
                  {% set installed = state_attr(entity.entity_id,
                  'installed_version') %} {% set latest =
                  state_attr(entity.entity_id, 'latest_version') %} {{ installed
                  != latest }}
          show_empty: false
          card_param: entities
          entities:
            - entity: update.home_assistant_operating_system_update
              name: HA OS
              type: custom:template-entity-row
              state: >
                {{ state_attr('update.home_assistant_operating_system_update',
                'installed_version') }} ➜ {{
                state_attr('update.home_assistant_operating_system_update',
                'latest_version') }}
              card_mod:
                style: |
                  :host {
                    {% if state_attr('update.home_assistant_operating_system_update', 'installed_version') != state_attr('update.home_assistant_operating_system_update', 'latest_version') %}
                      color: red !important;
                    {% else %}
                      color: inherit;
                    {% endif %}
                  }
  - type: custom:mod-card
    style:
      left: 12.5%
      top: 28.5%
      height: 65%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#update2"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:update
          auto_close: "5000"
          name: Mises à jour partie2
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-right-bold
          name: Restrictions d'eau
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#restrictions_eau"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
        - type: custom:auto-entities
          card:
            type: entities
            show_header_toggle: false
          filter:
            include:
              - domain: update
                template: >
                  {% set installed = state_attr(entity.entity_id,
                  'installed_version') %} {% set latest =
                  state_attr(entity.entity_id, 'latest_version') %} {{ installed
                  != latest }}
          show_empty: false
          card_param: entities
          entities:
            - entity: update.zerotier_one_update
              name: ZeroTier One
              type: custom:template-entity-row
              state: >
                {{ state_attr('update.zerotier_one_update', 'installed_version')
                }} ➜ {{ state_attr('update.zerotier_one_update',
                'latest_version') }}
              card_mod:
                style: |
                  :host {
                    {% if state_attr('update.zerotier_one_update', 'installed_version') != state_attr('update.zerotier_one_update', 'latest_version') %}
                      color: red !important;
                    {% else %}
                      color: inherit;
                    {% endif %}
                  }
  - type: custom:mod-card
    style:
      left: 15%
      top: 23.5%
      height: 55%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#restrictions_eau"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:fountain
          auto_close: "5000"
          name: Restrictions d'eau
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-right-bold
          name: Meteo
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#meteo"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
        - type: custom:auto-entities
          card:
            type: entities
            show_header_toggle: false
          show_empty: false
          card_param: entities
          entities:
            - entity: sensor.arrosage_des_pelouses_restrictions_berlaimont
            - entity: sensor.arrosage_des_jardins_potagers_restrictions_berlaimont
            - entity: sensor.lavage_des_vehicules_restrictions_berlaimont
            - entity: sensor.lavage_des_toitures_facades_restrictions_berlaimont
            - entity: >-
                sensor.vidange_et_remplissage_des_piscines_restrictions_berlaimont
            - entity: >-
                sensor.remplissage_vidange_des_plans_d_eau_restrictions_berlaimont
            - entity: sensor.restriction_specifique_restrictions_berlaimont
  - type: custom:mod-card
    style:
      left: 17.5%
      top: 45%
      height: 98%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#meteo"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:weather-cloudy
          auto_close: "20000"
          name: Meteo
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-u-left-top-bold
          name: Mises à jour partie1
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#update1"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
        - type: custom:stack-in-card
          mode: vertical
          cards:
            - type: weather-forecast
              show_current: true
              show_forecast: true
              entity: weather.forecast_maison
              forecast_type: hourly
            - type: custom:swipe-card
              parameters:
                allowTouchMove: false
                effect: coverflow
                centeredSlides: true
                slidesPerView: auto
                spaceBetween: 8
                pagination:
                  type: progressbar
                navigation: null
                keyboard:
                  enabled: true
                  onlyInViewport: true
              navigation: null
              cards:
                - type: iframe
                  url: >-
                    https://embed.windy.com/embed2.html?lat=50,2&lon=15&detailLat=50,2&detailLon=15&zoom=5&level=surface&overlay=rain&product=ecmwf&menu=&message=&marker=&calendar=24&pressure=&type=map&location=coordinates&detail=&metricWind=km%2Fh&metricTemp=%C2%B0C&radarRange=-1
                  aspect_ratio: 99%
                  card_mod:
                    style: |
                      ha-card {
                        filter: invert(0%);
                      }
                - type: iframe
                  url: >-
                    https://embed.windy.com/embed2.html?lat=50,2&lon=15&detailLat=50,2&detailLon=15&zoom=5&level=surface&overlay=temp&product=ecmwf&menu=&message=&marker=&calendar=24&pressure=&type=map&location=coordinates&detail=&metricWind=km%2Fh&metricTemp=%C2%B0C&radarRange=-1
                  aspect_ratio: 99%
                  card_mod:
                    style: |
                      ha-card {
                        filter: invert(0%);
                      }
                - type: iframe
                  url: >-
                    https://embed.windy.com/embed2.html?lat=50,2&lon=15&detailLat=50,2&detailLon=15&zoom=5&level=surface&overlay=wind&product=ecmwf&menu=&message=&marker=&calendar=24&pressure=&type=map&location=coordinates&detail=&metricWind=km%2Fh&metricTemp=%C2%B0C&radarRange=-1
                  aspect_ratio: 99%
                  card_mod:
                    style: |
                      ha-card {
                        filter: invert(0%);
                      }
            - type: weather-forecast
              show_current: false
              show_forecast: true
              entity: weather.forecast_maison
              forecast_type: daily
  - type: custom:bubble-card
    style:
      left: 3.5%
      top: 10%
      width: 7%
      height: 5%
      z-index: 13
    card_type: button
    button_type: name
    icon: mdi:update
    name: Menu
    button_action:
      tap_action:
        action: navigate
        navigation_path: "#update1"
    styles: |
      .bubble-button-card-container {
        box-shadow: none;
        border-radius: 15px !important;  # Ajustez la valeur ici
      }
    scrolling_effect: false
  - type: custom:mod-card
    style:
      left: 86.5%
      top: 39.75%
      height: 87.5%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#alarme"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:shield-home
          auto_close: "10000"
          name: Alarme
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-left-bold
          name: Batteries
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#batteries"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            } 
        - type: custom:alarmo-card
          entity: alarm_control_panel.alarmo
          name: Alarme maison
          button_scale_keypad: 1
          use_clear_icon: true
          keep_keypad_visible: true
          card_mod:
            style:
              alarmo-button$:
                mwc-button$: |
                  #button {
                    box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5);
                    border: 1px rgba(0,0,0,1.0) outset;
                    border-radius: 25px;
                    margin: 4px;
                  }
              ha-textfield $: |
                .mdc-text-field {
                  border-radius: 25px !important;
                }
                .mdc-text-field__ripple {
                  border-radius: 25px !important;
                }      
                .mdc-line-ripple {
                  display: none !important;
                }
              .: |
                ha-card {
                  margin-top: -5px;
                  background: transparent;
                }
                ha-card > div.header > div.icon > alarmo-state-badge {
                  --state-alarm_control_panel-armed_away-color: var(--red-color);
                  --state-alarm_control_panel-armed_custom_bypass-color: var(--red-color);
                  --state-alarm_control_panel-armed_home-color: var(--red-color);
                  --state-alarm_control_panel-armed_night-color: var(--red-color);
                  --state-alarm_control_panel-armed_vacation-color: var(--red-color);
                  --state-alarm_control_panel-arming-color: var(--orange-color);
                  --state-alarm_control_panel-disarming-color: var(--orange-color);
                  --state-alarm_control_panel-pending-color: var(--orange-color);
                  --state-alarm_control_panel-triggered-color: var(--red-color);
                  --state-alarm_control_panel-disarmed-color: var(--green-color)
                }
                ha-textfield {
                  box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5);
                  border: 1px rgba(0,0,0,1.0) outset;
                  border-radius: 50px;
                }
  - type: custom:mod-card
    style:
      left: 81.5%
      top: 18.5%
      height: 45%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#ephemeride"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:church
          auto_close: "5000"
          name: Ephemeride
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-u-right-top-bold
          name: Alarme
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#alarme"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
        - type: custom:auto-entities
          card:
            type: entities
            show_header_toggle: false
          entities:
            - entity: sensor.jour_anniversaire
            - entity: sensor.demain_anniversaire
            - entity: sensor.saint_du_jour
            - entity: sensor.saint_de_demain
            - entity: sensor.jour_ferie
  - type: custom:mod-card
    style:
      left: 84%
      top: 31%
      height: 70%
      z-index: 14
    card:
      type: vertical-stack
      cards:
        - type: custom:bubble-card
          card_type: pop-up
          hash: "#batteries"
          card_layout: normal
          width_desktop: 400px
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
          icon: mdi:battery
          auto_close: "10000"
          name: Batteries
        - type: custom:bubble-card
          style:
            left: 80%
            top: 10%
            width: 20%
            height: 5%
            z-index: 13
          card_type: button
          button_type: name
          icon: mdi:arrow-left-bold
          name: Ephemeride
          button_action:
            tap_action:
              action: navigate
              navigation_path: "#ephemeride"
          styles: |
            .bubble-button-card-container {
              box-shadow: none;
              border-radius: 15px !important;  # Ajustez la valeur ici
            }
        - type: custom:battery-state-card
          sort: state
          entities:
            - sensor.temp_labo_battery
  - type: custom:bubble-card
    style:
      left: 96.5%
      top: 10%
      width: 7%
      height: 5%
      z-index: 13
    card_type: button
    button_type: name
    icon: mdi:update
    name: Menu
    card_layout: normal
    width_desktop: 400px
    button_action:
      tap_action:
        action: navigate
        navigation_path: "#alarme"
    styles: |
      .bubble-button-card-container {
        box-shadow: none;
        border-radius: 15px !important;  # Ajustez la valeur ici
      }
    scrolling_effect: false

donc un menu de chaque côté avec des liens latéraux entre les cartes

1

cdt

Re,

je galère un peu sur Ephemeride, mais ça va le faire :slight_smile:

1

ne demandez pas encore le code, c’est pas fini :wink:

cdt

Re,

Bon ça ne devrait plus trop bouger, du coup je profite du coucher de soleil pour poster :smiley:

1

avec un peu de couleur sur le tap_action :slight_smile:
encore certain états à remonter dans les couleurs d’icones par exemple la notif de mise à jour disponibles

cdt

Re,

Tjs bubble en exploration, popup en action je me suis affranchi du menu en haut de page pour le passer en bubble et bubble popup (enfin c’est en test, surtout pour voir la charge, parce que ça implique de passer tout mon dashbord sur 1 plan).

On passerait donc de ça

à ça

2

en n’oubliant pas que dans tous les cas je change de plan aussi de mon plan principal

1

j’ai aussi mis en place un auto popup bubble sur état des portes / fenêtres, il reste ouvert tant qu’une porte ou une fenêtre est ouvert, je vais détailler dans le 1er message du topic cette partie.

1

cdt

Hello,

Je continue de creuser dans mon coin, je n’irais pas plus loin à priori

1

Je fini de mettre en place et je ferais un retour si ça intéresse du monde

cdt

1 « J'aime »