| Prochaine révision | Révision précédente |
| enedis [2022/10/28 09:27] – créée chef | enedis [2024/12/23 14:49] (Version actuelle) – modification externe 127.0.0.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]] \\ |
| Où il explique la procédure.\\ | Où il explique la procédure.\\ |
| - Créer un compte sur Enedis\\ | - Créer un compte sur Enedis\\ |
| - Créer un toke sur la plateforme : https://enedisgateway.tech (sous la forme Votre token : 1ETPfWPjxmkHe2GfsggdfhdgfshgfhgfNRKnhdgfhMpOrGzKe3i )\\ | - Créer un token sur la plateforme : https://enedisgateway.tech (sous la forme Votre token : 1ETP.......e3i )\\ |
| on test :\\ | on test :\\ |
| 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: 1ETP.......e3i' -H 'Content-Type: application/json' -d '{"type": "consumption_load_curve","usage_point_id": "25......95","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: fT....CE3 |
| | code: 46.....34 |
| | 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 ! \\ |
| | |
| |