Graphique Energy par mois et par type d'équipement, ma recherche s'arrête, j'ai trouvé le Graal!

Bonjour à tous,

Bon allons à l’essentiel, le Graal en question :

J’avais un objectif assez simple mais que ni les solutions natives de Home Assistant, ni les add-ons pouvaient répondre à ce besoin.

Besoin simple :
Pouvoir avoir une consolidation de consommation de mes chauffages et de pouvoir visualiser les données en fonction de critères de date dynamique (avec le sélecteur de date).

Alors le board Energy : pas possible car on voit tous les devices, impossible de sélectionner que les chauffages.

Par consolidation (stack) , tout à été balayé à part Apex.
Apex, une horreur à paramétrer, impossible d’avoir correctement les mois pleins et surtout impossible d’avoir un graphique dynamique en fonction de la plage de date choisie.

La création d’utility meter, rédhibitoire pour moi, pourquoi créer des sensors de plus et ne pas avoir l’historique de mes données depuis 3 ans.

J’ai passé des heures à éplucher les forums, à discuter avec Gemini, Chatgpt, à tester de nombreuses cartes, pour ne jamais, finalement, arriver à mes fins.

Cette recherche s’arrête aujourd’hui après avoir trouvé LA pépite. :palm_tree:
Aussi, si vous êtes dans ce cas de recherche, j’espère que mon post vous aidera !

Je peux enfin aujourd’hui avoir un dashboard avec la consommation de mes clims/chauffages avec un cumul par date dynamique en m’appuyant sur le date selector et cette carte magique !

Le dashboard en mode zoomé pour avoir une vue d’ensemble.

Vue sur le graph cumulé par mois :

Voilà, j’espère que ceux qui sont dans cette même recherche trouveront le bonheur ici :smiley:
Take care !

3 « J'aime »

Bonjour,
Merci pour le partage.
Ca semble assez proche des possibilités de history-explorer-card que j’utilise pour mon dashboard energy perso.


Vue de la consommation électrique sur les dernières 24h (chois de vue sur 1 jour en haut à droite), pour la date d’aujourd’hui (date picker en haut à gauche), et avec un pas de 10 min (en haut à droite).

2 « J'aime »

Hello @Gilles2 , tu as tout à fait raison, j’aurai du parler aussi de celui-ci. J’utilise aussi History Explorer qui est génial et c’est vrai qu’il fait bien le stacking également.

Ce que je voulais c’était avoir la possibilité sur un board de choisir une date et que tous les graphs se mettent à jour en même temps.

Le deuxième point que je n’arrivais pas à faire avec History Explorer était d’avoir le même nom pour deux entités mais que le nom n’apparaissent qu’une fois dans la légende.
Je possède des clim Daikin et Dakin fournit deux entités, une pour le chauffage et une pour la clim.

Avec Explorer cela donne ça :

Et sur energy custom graph c’est fusionné et stacké

Bon la différence et minime pour le coup :wink:

1 « J'aime »

Merci pour les précisions sur les différences. Ca m’aidera à choisir quand je voudrai modifier mon tableau de bord.
Ce que j’aime bien sur history-explorer-card est la possibilité de choisir à la fois la durée affichée (1 an sur ton exemple) et la granularité de l’affichage (Mensuel sur ton exemple)..

Une remarque si je peux me permettre, il me semble qu’il manque une indication d’unité sur ton graphique energy custom graph.

2 « J'aime »

Bonjour,

Energy Custom Graph Est excellent mais je trouve dommage que l’on ne peut pas par exemple afficher les valeurs sur les bar par jours lors d’un graph mensuel.

Hormis apex c’est le seul qui cache le faire a moins que vous avez une solution pour Energy Custom Graph
Merci

@Qualif22, peut-être ai-je mal compris ce que tu cherches à faire, mais comme partagé plus haut, tu peux essayer history-explorer-card, qui te permet d’avoir les données par heure ou par jour par exemple sur un graph mensuel… tu choisis…

2 « J'aime »

Salut

Merci pour le partage

Aérais tu la gentillesse de partager le code yaml de ton Dashboard tu post d’origine ? J’ai du mal a utiliser correctement la carte !

Merci à toi !

Voilà c’est toute la vue, si tu veux une carte en particulier, elle est dedeans.
Si tu veux de l’aide, je reste à l’écoute.

- type: sections
    max_columns: 4
    title: energy2
    path: energy2
    sections:
      - type: grid
        cards:
          - type: energy-date-selection
            card_mod:
              style: |
                ha-card {
                  box-shadow: rgba(160, 210, 230, 0.5) 4px 4px 30px;
                }
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                stack: stack
                statistic_id: sensor.seche_serviette_energy
                name: Sèche-serviette
                color: '--energy-gas-color'
              - chart_type: bar
                stat_type: change
                stack: stack
                name: Chb Parents
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.chb_parents_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.chb_parents_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                stack: stack
                name: Séjour
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.sejour_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.sejour_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                stack: stack
                name: Bureau
                y_axis: left
                color: '--energy-grid-consumption-color'
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.bureau_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.bureau_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                name: Couloir
                stack: stack
                color: '--energy-solar-color'
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.couloir_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.couloir_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                name: Chb Léo 2
                stack: stack
                color: '--energy-water-color'
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.chb_leo_2_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.chb_leo_2_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                name: Chb Léo
                stack: stack
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.chb_leo_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.chb_leo_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                name: Chb Margaux 2
                stack: stack
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.chb_margaux_2_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.chb_margaux_2_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
              - chart_type: bar
                stat_type: change
                name: Chb Margaux
                stack: stack
                color: '--energy-non-fossil-color'
                calculation:
                  terms:
                    - operation: add
                      statistic_id: >-
                        sensor.chb_margaux_climatecontrol_heating_daily_electrical_consumption
                    - operation: add
                      statistic_id: >-
                        sensor.chb_margaux_climatecontrol_cooling_daily_electrical_consumption
                source: calculation
            timespan:
              mode: energy
            hide_legend: false
            show_stack_sums: true
            legend_sort: asc
            grid_options:
              columns: 48
              rows: 8
            chart_height: '800'
            show_unit: true
            tooltip_precision: 0
            y_axes:
              - id: left
                unit: Kwh
        column_span: 4
      - type: grid
        cards:
          - type: heading
            heading: Données Chauffage
            heading_style: title
          - type: statistic
            period: energy_date_selection
            stat_type: change
            name: Sèche-serviette
            entity: sensor.seche_serviette_energy
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.sejour_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Séjour
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.couloir_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Couloir
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.bureau_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Bureau
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_parents_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Parents
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_margaux_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Margaux
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_margaux_2_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Margaux 2
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.chb_leo_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Léo
            icon: mdi:fire
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_leo_2_climatecontrol_heating_daily_electrical_consumption
            name: Chauffage Léo 2
            icon: mdi:fire
        column_span: 2
      - type: grid
        cards:
          - type: heading
            heading: Données Climatisation
            heading_style: title
            icon: mdi:snowflake
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.sejour_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Séjour
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.couloir_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Couloir
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.bureau_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Bureau
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_parents_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Parents
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_margaux_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Margaux
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_margaux_2_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Margaux 2
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: sensor.chb_leo_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Léo
          - type: statistic
            period: energy_date_selection
            stat_type: change
            entity: >-
              sensor.chb_leo_2_climatecontrol_cooling_daily_electrical_consumption
            name: Clim Léo 2
        column_span: 2
      - type: grid
        cards:
          - type: custom:energy-custom-graph-card
            series:
              - statistic_id: sensor.seche_serviette_energy
                chart_type: bar
                stat_type: change
                name: Sèche-serviette
                color: '--energy-solar-color'
            timespan:
              mode: energy
            title: Sèche-serviette
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Séjour Chauffage
                statistic_id: >-
                  sensor.sejour_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Séjour Climatisation
                statistic_id: >-
                  sensor.sejour_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Séjour
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Couloir Chauffage
                statistic_id: >-
                  sensor.couloir_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Couloir Climatisation
                statistic_id: >-
                  sensor.couloir_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Couloir
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Bureau Chauffage
                statistic_id: >-
                  sensor.bureau_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Bureau Climatisation
                statistic_id: >-
                  sensor.bureau_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Bureau
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Parents Chauffage
                statistic_id: >-
                  sensor.chb_parents_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Parents Climatisation
                statistic_id: >-
                  sensor.chb_parents_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Chb Parents
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Margaux Chauffage
                statistic_id: >-
                  sensor.chb_margaux_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Margaux Climatisation
                statistic_id: >-
                  sensor.chb_margaux_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Chb Margaux
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Margaux 2 Chauffage
                statistic_id: >-
                  sensor.chb_margaux_2_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Margaux 2 Climatisation
                statistic_id: >-
                  sensor.chb_margaux_2_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Chb Margaux 2
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Léo Chauffage
                statistic_id: >-
                  sensor.chb_leo_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Léo Climatisation
                statistic_id: >-
                  sensor.chb_leo_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Léo
            hide_legend: false
          - type: custom:energy-custom-graph-card
            series:
              - chart_type: bar
                stat_type: change
                color: '--energy-solar-color'
                name: Léo 2 Chauffage
                statistic_id: >-
                  sensor.chb_leo_2_climatecontrol_heating_daily_electrical_consumption
                stack: stack
              - chart_type: bar
                stat_type: change
                color: '--energy-water-color'
                name: Léo 2 Climatisation
                statistic_id: >-
                  sensor.chb_leo_2_climatecontrol_cooling_daily_electrical_consumption
                stack: stack
            timespan:
              mode: energy
            title: Léo 2
            hide_legend: false
        column_span: 4
      - type: grid
        cards:
          - type: custom:navbar-card
            template: oliv
            visibility:
              - condition: user
                users:
                  - 68bee80cf92f4c62b0050dd07a02db4b
                  - e22d10ba9ad445fe86e38409ef47a94f
                  - 060dff83f5934a32a2d351978243e867
                  - 05775b5d48eb4143ab24589ea963e115
    subview: true

Merci c’est top, si j’ai des questions je reviendrais vers toi

Encore merci

1 « J'aime »

merci pour le partage : je n’en suis pas encore là, mais c’est une inspiration de cible

sur le sujet de comparaison de consommation chauffage/clim, est-ce que tu as vu lors de tes recherches des outils qui rapprochent consommations et températures extérieures (voire intérieures) ?
la consommation du chauffage est fortement influencées par la température extérieure , tout comme celle de la clim, j’avais fait des comparaisons de consommation par mois, normées selon les températures historisées de Méteo France, de façon à pouvoir comparer des périodes de chauffes entre elles, en neutralisant les différences de météo entre les périodes
C’est un collègue qui m’avait montré cela, je rechercherai si besoin, et isolerai cela dans un sujet spécifique

Je n’ai rien vu de tel, par contre, je suis en train de tester l’intégration Home Performance développée par un Français.

C’est vraiment très intéressant.
Il analyse les performances thermiques de ta maison à partir des données que tu as déjà (température, capteurs, etc.). Cela peut t’aider à modéliser l’inertie thermique et les pertes

Chez moi en test pour une pièce :

merci , c’est intéressant aussi, par exemple pour cibler où accentuer l’isolation (ou vérifier si cela a fonctionné)

Hello Merci pour la trouvaille sur l’intégration home performance. Je la teste aussi de mon coté. En revanche, je n’arrive pas a ajouter a mon tableau de bord la carte, il ne me la trouve pas, meme apres avoir redemmaré HA

Une idée de pourquoi ? merci

As-tu essayé le CRTL + F5 sur ton HA pour rafraichir le cache ?

Il fallait que je deplie une section dans la doc pour comprendre ce que j’avais loupé :

📝 YAML mode (if resource is not auto-detected)

If you use a YAML mode dashboard, manually add the resource:

  • Settings → Dashboards → ⋮ → Resources

  • URL: /home_performance/home-performance-card.js

  • Type: JavaScript Module

merci !

1 « J'aime »

Bonjour et merci pour le partage.
Sur ta conso par pièce en kwh (données chauffage) tu fais aussi agir le energy date selection ?
Moi je ne vois pas comment.

Merci j’ai compris !

1 « J'aime »