Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Dernière révisionLes deux révisions suivantes
enedis [2022/10/28 07:27] – créée chefenedis [2022/10/28 07:35] chef
Ligne 1: Ligne 1:
 +====== - Service de visualisation de la consommation électrique. ======
  
 Pour cela j'ai suivi la description de My Canaletto :  [[https://canaletto.fr/post/home-assistant-and-enedis| Site WEB]] \\ Pour cela j'ai suivi la description de My Canaletto :  [[https://canaletto.fr/post/home-assistant-and-enedis| Site WEB]] \\
Ligne 8: Ligne 8:
   curl -X POST https://enedisgateway.tech/api -H 'Authorization: 1ETPfWPjxmkHe2G2hj87w8shfgsdfghsdfghhsfghgfhjsfOrGzKe3i' -H 'Content-Type: application/json' -d '{"type": "consumption_load_curve","usage_point_id": "25464656546695","start": "2020-11-10","end": "2020-11-11"}'   curl -X POST https://enedisgateway.tech/api -H 'Authorization: 1ETPfWPjxmkHe2G2hj87w8shfgsdfghsdfghhsfghgfhjsfOrGzKe3i' -H 'Content-Type: application/json' -d '{"type": "consumption_load_curve","usage_point_id": "25464656546695","start": "2020-11-10","end": "2020-11-11"}'
 a adapter a son token et point de livraison.\\ a adapter a son token et point de livraison.\\
 +
 +Sous HA on install HACS puis on install 2 Custom repositories. \\
 +
 +    https://github.com/saniho/apiEnedis pour le composant sensor myEnedis
 +    https://github.com/saniho/content-card-linky pour la carte Lovelace (qui est l'adaptation d'un projet abandonné qui avait été créé lors d'une précédente tentative d'intégration.
 +
 +Une fois ces deux installations terminées on redémarre Home Assistant, et on crée le sensor, ce qui nécessitera un nouveau redémarrage.\\
 +<code yaml>
 +sensor:
 +    - platform: myEnedis
 +      token: fTEHWCldfsgsdfghsjdhjdFGHJFHSDHDSFGhfdfhNfWqwCE3
 +      code: 464554438199434
 +      heures_creuses: "[['00:00','05:00'], ['21:30', '24:00']]"
 +      hc_cout: 0.1337
 +      hp_cout: 0.1781
 +      scan_interval: 3600
 +      delay: 7200  # OPTION
 +</code>
 +Après un redémarrage le senso.myenedis devrait nous retourner des infos.\\
 +Ensuite on crée une carte :\\
 +<code yaml>
 +type: 'custom:content-card-linky'
 +entity: sensor.myenedis
 +showInTableUnit: false
 +</code>
 +On intègre cette carte dans lovelace et on obtient une belle carte indiquant les consommations.
 +
 +divers: \\
 +avec la nouvelle version enedisgateway2mqtt ça fonctionne carrément mieux ! \\
 +
  
enedis.txt · Dernière modification : 2023/11/27 17:10 de chef
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0