Hi,
i try to create a new platform for the EDF Teleinfo frames sent by an electrical meter.
I’m using HomeAssistant using the Virtualenv setup on a Raspberry PI Zero W.
So i create a file “teleinfo.py” in directory $HOME/.homeassistant/custom_components/sensor.
On the configuration file, i add the sensor like that :
2017-10-15 10:59:13 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-10-15 10:59:13 ERROR (MainThread) [homeassistant.setup] Error during setup of component sensor
Traceback (most recent call last):
File "/home/pirate/Projets/home-assistant-configuration/venv/lib/python3.4/site-packages/homeassistant/setup.py", line 194, in _async_setup_component
component.setup, hass, processed_config)
AttributeError: 'module' object has no attribute 'setup'
Hello,
I’m also interested on this component but it seems that it’s not yet available on the last ha release.
Did you manage to configure it correctly to get edf data ?
Thanks
I was also interested in teleinfo integration but I did it another way.
I coded a simple service which publishes the teleinfo frames via MQTT.
And then I use the native HA/MQTT integration.
Some times (years ) ago, I wrote a .NET program to export raw télé-information data to a MQTT broker.
I’ve recently discovered Home Assistant, so I adapted it and created a local add-on.
As it could be usefull for others, and a good way to make it evolves, I packaged it as an add-on called “TeleInfo2Mqtt”.
To install it, just add this add-ons repository (you can also copy and add it as local add-on) : https://github.com/fdrevet/hassio-addons-repository
It’s a beta release, for the moment :
following headers are published : IINST, PAPP, HCHC, HCHP, PTEC
Are you familiar with ESPHome? There is a Teleinfo / Linky component for it that quickly transforms an ESP8266 with a bit of hardware into a Teleinfo interface that supports both historical and standard mode. (Hint: For advanced support of standard mode you may want to look into the open PRs for ESPHome.)
Thanks for your idea. I already got the hardware part. I’m wondering why this component has been deleted on github and the official integration removed !
Well, I will try to get the custom component working by myself I guess.
Yes, I got that. But the ESPHome component will not only provide the hardware but also the full HA integration. All Linky tags that you configure will be available as sensors in HA.
Bonjour, pouvez vous nous expliquer comment vous avez faire l’integration sur homeassistant ? j’ai suivi votre tuto j’ai le conteneur qui tourne mais j’ai aucune idée de comment faire l’integration sur HA
Please be informed that teleinfo-mqtt has been renamed to teleinfo2mqtt to be consistent with other projetcs such as zigbee2mqtt, zwave2mqtt, tydom2mqtt…