Coder Social home page Coder Social logo

jeremiedmns / ha-teleinfo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sberthelot/teleinfo-home-assistant

0.0 0.0 1.0 12 KB

French TIC/Teleinfo integration for Home Assistant (needs a serial dongle/interface)

License: MIT License

Python 100.00%

ha-teleinfo's Introduction

Home ASsistant Teleinfo

French Teleinfo integration for Home Assistant. Needs a serial dongle/interface.

How to install:

HACS

Add this repo (https://github.com/jeremiedmns/ha-teleinfo) to the HACS store and install from there.

local install

Put in "custom_components" folder located in hass.io inside the config folder. (The 2 .py file must be config/custom_components/ha-teleinfo)

Sample Configuration

Put this inside configuration.yaml in config folder of hass.io

sensor:
  - platform: teleinfo
    name: "Téléinfo"
    serial_port: "/dev/ttyUSB0"

template:
  - sensor:
      - name: "Téléinfo Période tarifaire en cours"
        unique_id: teleinfo_periode_tarifaire_en_cours
        state: >-
          {{ state_attr('sensor.teleinfo', 'PTEC') }}
  - sensor:
      - name: "Téléinfo Intensité souscrite"
        unique_id: teleinfo_intensite_souscite
        unit_of_measurement: A
        device_class: current
        state: >-
          {{ state_attr('sensor.teleinfo', 'ISOUSC') | int }}
- sensor:
    - name: "Téléinfo Intensité instantanée"
        unique_id: telteinfo_intensite_instantanee
        unit_of_measurement: A
        device_class: current
        state_class: measurement
        state: >-
          {{ state_attr('sensor.teleinfo', 'IINST') | int }}
  - sensor:
      - name: "Téléinfo Puissance apparente"
        unique_id: teleinfo_puissance_apparente
        unit_of_measurement: VA
        device_class: apparent_power
        state_class: measurement
        state: >-
          {{ state_attr('sensor.teleinfo', 'PAPP') | int }}
  - sensor:
       - name: "Téléinfo Index heures creuses"
        unique_id: teleinfo_index_heures_creuses
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing
        state: >-
          {{ state_attr('sensor.teleinfo', 'HCHC') | int / 1000 }}
  - sensor:
      - name: "Téléinfo Index heures pleines"
        unique_id: teleinfo_index_heures_pleines
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing
        state: >-
          {{ state_attr('sensor.teleinfo', 'HCHP') | int / 1000 }}

(use the serial_port of your interface)

ha-teleinfo's People

Contributors

sberthelot avatar jdomens-ga avatar jeremiedmns avatar

Forkers

damda58

ha-teleinfo's Issues

Not working ?

Bonjours, j'ai installé le 'teleinfo' à la mano ou via le store sans plus de succès.

Avec minicom, je vois:

  • que mon compteur retourne bien les info sur /dev/ttyAMA0
  • via le log que le composant est bien loader dans home assistant

Si je place la config dans configuration.yaml home assistant ne redémarre par proprement mais rien dans les log. En fait sur mon dashboard ca plante sur la partie "Energy" et du coup les autre tab Map","logbook", ... ne sont pas visible.

C'est comme sur la config plantais eu moment de l'initialisation du composant, mais je ne vois rien dans les log, je suis donc un peu aveugle.

Une idée ?

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.