Giter VIP home page Giter VIP logo

wteleinfo's Introduction

WTeleInfo

Ce projet utilise un D1 mini et quelques composants pour faire remonter les compteurs EDF à votre domotique.

Construisez votre WTeleInfo

Tous les fichiers necessaires sont dans le sous-dossier schematic et ont été conçu avec KiCAD.

Schematic

WTeleInfo schematic

Spécial Linky : Il faut remplacer R2 par une 1.5K et C3 n'est pas necessaire

PCB

WTeleInfo PCBWTeleInfo PCB2

Imprimez votre boitier

Le projet du boitier (Fusion 360) se trouve dans le dossier box (Ainsi que les fichiers STL à imprimer directement)

WTeleInfo Box

Flash

Le firmware Tasmota-téléinfo est utilisé pour animer le D1Mini
Vous pouvez le flasher directement depuis la page web "Install tasmota" https://tasmota.github.io/install/

WTeleInfo Flash

Démarrage

Configuration Tasmota

Vous devez appliquer ce Template :
{"NAME":"WTeleInfo","GPIO":[0,0,0,0,0,0,0,0,0,5152,0,0,0,0],"FLAG":0,"BASE":18,"CMND":"Module 0|TelePeriod 60"}

Commande à executer, si vous possedez un compteur Linky en Mode Standard (nouveau protocole):
EnergyConfig Standard

Pour plus de détails, veuillez vous référer à la documentation officielle :
https://tasmota.github.io/docs/Teleinfo/

wteleinfo's People

Contributors

domochip avatar j6b avatar labotronik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wteleinfo's Issues

Home Assistant auto discovery

Bonjour,

Pourriez-vous ajouter une option pour publier dans MQTT l'auto configuration des entités HomeAssistant ?

En effet en publiant dans le topic de home assistant par exemple : homeassistant/sensor/teleinfo/hchc/config il est possible de configurer une entités de type sensor de façon automatique.

Voici le configuration JSON "Type" pour un sensor a publier

{
    "availability": [
        {
            "topic": "teleinfo/connected",
            "payload_available": "1",
            "payload_not_available": "0"
        }
    ],
    "device": {
        "identifiers": [
            "<SerialNumber>"
        ],
        "manufacturer": "DOMOCHIP",
        "model": "WTELEINFO",
        "name": "WTELEINFO",
        "sw_version": "<WTELEINFO_VERSION>"
    },
    "enabled_by_default": true,
    "json_attributes_topic": "teleinfo/HCHC",
    "name": "Heures Creuses",
    "device_class": "energy",
    "state_class": "total_increasing",
    "state_topic": "teleinfo/HCHC",
    "unique_id": "wteleinfo_<SerialNumber>_hchc",
    "unit_of_measurement": "Wh",
    "force_update": true
}

L'avantage de cette déclaration c'est qu'on déclare un "appareil" dans home assistant dans lequel on retrouvera tous les sensors associés.
image

Voici le JSON que j'ai utilisé pour l'exemple

{
    "availability": [
        {
            "topic": "teleinfo/connected",
            "payload_available": "1",
            "payload_not_available": "0"
        }
    ],
    "device": {
        "identifiers": [
            "00e609eb"
        ],
        "manufacturer": "DOMOCHIP",
        "model": "WTELEINFO",
        "name": "WTELEINFO",
        "sw_version": "1.4.1/3.4.1"
    },
    "enabled_by_default": true,
    "json_attributes_topic": "teleinfo/HCHC",
    "name": "Heures Creuses",
    "device_class": "energy",
    "state_class": "total_increasing",
    "state_topic": "teleinfo/HCHC",
    "unique_id": "wteleinfo_00e609eb_hchc",
    "unit_of_measurement": "Wh",
    "force_update": true
}

Si nécessaire voici la documentation pour l'auto configuration d'une entités de type sensor dans HomeAssistant : https://www.home-assistant.io/integrations/sensor.mqtt/ et la documentation plus générale sur le Discovery MQTT https://www.home-assistant.io/docs/mqtt/discovery/

Merci

arduino.h dependency

Bonjour,

Pour commencer merci pour ce superbe boulot.

Après avoir tout monté, je test l'installation avec plateformIO mais il semble y avoir un problème.
J'ai essayé avec deux clients différents et à chaque fois la même erreur.

Compiling .pio/build/d1_mini/src/LibTeleinfo.cpp.o
Compiling .pio/build/d1_mini/src/WirelessTeleInfo.cpp.o
In file included from src/WirelessTeleInfo.h:8:0,
                 from src/WirelessTeleInfo.cpp:1:
src/Main.h:4:21: fatal error: arduino.h: No such file or directory

*****************************************************************
* Looking for arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:arduino.h"
* Web  > https://platformio.org/lib/search?query=header:arduino.h
*
*****************************************************************

 #include <arduino.h>
                     ^
compilation terminated.
*** [.pio/build/d1_mini/src/WirelessTeleInfo.cpp.o] Error 1
Updating tool-scons                      @ 2.20501.7      [Up-to-date]

Platform Manager
================
Platform Espressif 8266
--------
Updating espressif8266                   @ 2.2.2          [Up-to-date]
Updating tool-esptoolpy                  @ 1.20600.0      [Up-to-date]
Updating framework-arduinoespressif8266  @ 2.20502.0      [Up-to-date]
Updating tool-esptool                    @ 1.413.0        [Up-to-date]
Updating toolchain-xtensa                @ 2.40802.190218 [Up-to-date]
pio --version
PlatformIO, version 4.0.0

Merci pour votre aide.
Cordialement

PCB Wireless Teleinfo et mode standard linky

Bonjour,
Bravo pour ce projet qui m'intéresse fortement car j'ai 3 compteurs à monitorer.
Pouvez vous m'indiquer ou trouver le PCB pour ce projet ?
Merci par avance
Stéphane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.