Home Assistant component to handle key atom

Overview

KeyAtome

GitHub release

Home Assistant component to handle key atom, a Linky-compatible device made by Total/Direct-Energie.

Installation

Either use HACS (default), either manual

HACS (Home Assistant Community Store) [under request]

  1. Go to HACS page on your Home Assistant instance
  2. Select integration
  3. Press add icon and search for worldtidesinfocustom
  4. Select worldtidesinfocustom and install

Manual

Manual Procedure
  1. Download the folder keyatome from the latest release (with right click, save link as)
  2. Place the downloaded directory on your Home Assistant machine in the config/custom_components folder (when there is no custom_components folder in the folder where your configuration.yaml file is, create it and place the directory there)
  3. restart HomeAssistant

Using the component

in configuration.yaml, declare :

Example of YAML

##configuration.yaml example
sensor:
  - platform: keyatome
    username: YOUR_ATOME_USERNAME
    password: YOUR_ATOME_PASSWORD

Check that atome of HomeAssistant is not activated (i.e. declared in configuration.yaml) to avoid too many request on Atome Server and conflict name for sensors name

Breaking changes

The first version reprensents the Atom component in Home Assistant 2021.12.4 (@baqs) This library is a fork of this in order to implement new feature.

For release V0.0.1 and V1.0.0 : the name of sensor are sensor.key_atome_xxx

Since release V2.0.0 : the name of sensor are sensor.atome_xxx (like HA atome component)

Acknowledgments

  • Thanks to the 1rst implementation performed by BaQs for Home Assistant.
  • This project is a fork of atome components in HA
Comments
  • Conso live error : energy dashboard consumption is bigger than expected (sometimes)

    Conso live error : energy dashboard consumption is bigger than expected (sometimes)

    Hello,

    i'm very surprised to find my daily consumption, totaly different than the official consumption, could you help me to find the problem ?

    image

    Thanks

    enhancement explanation server issue 
    opened by LudoARN 30
  • day : Missing total value in values:

    day : Missing total value in values:

    Hello,

    since few days i have no data in the energy section. live info is working but no historical.

    i have thoses errors in logs :

    #Cette erreur provient d'une intégration personnalisée
    
    Logger: custom_components.keyatome.sensor
    Source: custom_components/keyatome/sensor.py:588
    Integration: KeyAtome Linky (documentation, issues)
    First occurred: 09:52:48 (186 occurrences)
    Last logged: 22:55:16
    
    day : Missing total value in values: {'isConnected': True, 'time': '2022-09-15T22:39:31+02:00', 'total': 0, 'logTargetStd': 0.0, 'goal': 100, 'startPeriod': '2022-09-15T00:00:00+02:00', 'endPeriod': '2022-09-15T22:39:31+02:00', 'pricingChange': 0, 'filteredPower': 0.0, 'impactCo2': 11767, 'impactVehicleType': 'CAR', 'impactVehicleKm': 107}
    day : Missing total value in values: {'isConnected': True, 'time': '2022-09-15T22:44:38+02:00', 'total': 0, 'logTargetStd': 0.0, 'goal': 100, 'startPeriod': '2022-09-15T00:00:00+02:00', 'endPeriod': '2022-09-15T22:44:38+02:00', 'pricingChange': 0, 'filteredPower': 0.0, 'impactCo2': 11767, 'impactVehicleType': 'CAR', 'impactVehicleKm': 107}
    day : Missing total value in values: {'isConnected': True, 'time': '2022-09-15T22:49:43+02:00', 'total': 0, 'logTargetStd': 0.0, 'goal': 100, 'startPeriod': '2022-09-15T00:00:00+02:00', 'endPeriod': '2022-09-15T22:49:43+02:00', 'pricingChange': 0, 'filteredPower': 0.0, 'impactCo2': 11767, 'impactVehicleType': 'CAR', 'impactVehicleKm': 107}
    day : Missing total value in values: {'isConnected': True, 'time': '2022-09-15T22:54:48+02:00', 'total': 0, 'logTargetStd': 0.0, 'goal': 100, 'startPeriod': '2022-09-15T00:00:00+02:00', 'endPeriod': '2022-09-15T22:54:48+02:00', 'pricingChange': 0, 'filteredPower': 0.0, 'impactCo2': 11767, 'impactVehicleType': 'CAR', 'impactVehicleKm': 107}
    week : Missing total value in values: {'isConnected': True, 'time': '2022-09-15T22:55:16+02:00', 'total': 0, 'logTargetStd': 0.0, 'goal': 100, 'startPeriod': '2022-09-12T00:00:00+02:00', 'endPeriod': '2022-09-15T22:55:16+02:00', 'pricingChange': 0, 'filteredPower': 0.0, 'impactCo2': 44913, 'impactVehicleType': 'CAR', 'impactVehicleKm': 408}
    

    what should i do ?

    thanks !

    bug enhancement server issue 
    opened by forzewin 27
  • Atome sensors have stopped working (several subscriptions)

    Atome sensors have stopped working (several subscriptions)

    Describe the bug Atome sensors have stopped working ...

    2022-02-02 22:17:59 WARNING (SyncWorker_4) [custom_components.keyatome.sensor] Live Data : Missing last value in values: {'isConnected': False, 'time': '2022-02-02T22:17:59+01:00', 'timeLimitBeforePowerFailure': -1} 2022-02-02 22:18:00 ERROR (SyncWorker_4) [custom_components.keyatome.sensor] Live Data : Missing last value in values: {'isConnected': False, 'time': '2022-02-02T22:18:00+01:00', 'timeLimitBeforePowerFailure': -1}

    Screenshots image

    image

    image

    explanation 
    opened by tofgun 26
  • ToManyServerError & no data

    ToManyServerError & no data

    Hi there,

    Impossible to pull any data :(

    Got the "ToManyServerError" log message image

    Running HA 2022.11.1 Supervisor 2022.10.2

    Am I the only one having this issue ?

    explanation server issue 
    opened by joebarteam11 21
  • No data received with

    No data received with "TooManyServerError" error message

    Describe the bug No data is received on any of the sensors. Atome_Diagnostic is set to TooManyServerError despite removing the configuration.yaml issue

    To Reproduce Steps to reproduce the behavior: install the integration with logon information for TotalEnergies Atome key (which delivers "conso live" data in the app)

    Expected behavior sensors report consumption data

    v6.3.0 2022.8.7

    bug enhancement server issue 
    opened by francodutch 16
  • Atome Daily count error

    Atome Daily count error

    Hello,

    I don't know if APIv2 is the problem. But we have a difference between the energy dashboard and the sensor value :

    23,46 kWh (wrong) vs 12,528 kWh image

    image

    In the log :

    Logger: custom_components.keyatome.sensor Source: custom_components/keyatome/sensor.py:536 Integration: KeyAtome Linky (documentation, issues) First occurred: 20:31:23 (39 occurrences) Last logged: 21:28:06

    Live Data : Missing last value in values: None Live Data : Missing last value in values: {'error': 'An exception occurred in driver: SQLSTATE[08006] [7] timeout expired'} Live Data : Missing last value in values: {'error': 'Warning: SessionHandler::read(): Failed to write session lock: A TIMEOUT OCCURRED'} Live Data : Missing last value in values: {'error': 'Warning: SessionHandler::read(): Unable to clear session lock record'}


    Cette erreur provient d'une intégration personnalisée

    Logger: custom_components.keyatome.sensor Source: custom_components/keyatome/sensor.py:852 Integration: KeyAtome Linky (documentation, issues) First occurred: 22 septembre 2022 à 14:45:14 (101 occurrences) Last logged: 21:44:10

    Period are strictly increasing except reset to zero

    Do you have a solution ? Thanks for your job 👍

    enhancement 
    opened by LudoARN 10
  • 2 subscriptions the second is atome

    2 subscriptions the second is atome

    I have 2 subscriptions to totalEnergie and only second one have atome key in this code and the package (pyKeyAtome) we have things like this : user_reference = login_value["subscriptions"][0]["reference"]

    in my case subscription 0 don't have atome key can we imagine a parameter ?

    enhancement 
    opened by adamantis06 9
  • No login available for atome server

    No login available for atome server

    Hi,

    I am not able to use the compoment anymore. Everything is unavailable and I get the following error on the log: 2022-05-31 20:48:24 ERROR (MainThread) [custom_components.keyatome.sensor] No login available for atome server

    I haven't touched the sensor.yaml where I still have the following:

    Atome LINKY

    • platform: keyatome username: myemail password: mypassword

    Any clues?

    server issue 
    opened by kefrens 8
  • fake_useragent.errors.FakeUserAgentError: No browser user-agent strings found for browser: chrome

    fake_useragent.errors.FakeUserAgentError: No browser user-agent strings found for browser: chrome

    Hello,

    Thanks a lot for integration.

    After last reboot (in my case was update to 2022.12.1) an error appear in keyatome. I thought last update break something but i rollback to previous version and have same error.

    Looks related to external, but not sure for a fix.

    Logger: homeassistant.components.sensor Source: custom_components/keyatome/sensor.py:191 Integration: Sensor (documentation, issues) First occurred: 10:48:23 (1 occurrences) Last logged: 10:48:23

    Error while setting up keyatome platform for sensor Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/fake_useragent/utils.py", line 139, in load browsers_dict[browser_name] = get_browser_user_agents( File "/usr/local/lib/python3.10/site-packages/fake_useragent/utils.py", line 123, in get_browser_user_agents raise FakeUserAgentError( fake_useragent.errors.FakeUserAgentError: No browser user-agent strings found for browser: chrome

    It looks related to unavailbity of https://useragentstring.com/pages/chrome/ and fallback https://useragent.melroy.org/cache.json

    Do you have any idea how to fix this?

    Thanks a lot for your help.

    bug 
    opened by roman-beylin 7
  • Energy view issue : measure class but last_reset missing

    Energy view issue : measure class but last_reset missing

    Hello,

    I have this error in French in the "Energy" view with the atome_dayly measure : "Classe d'etat mesure mais last reset manquant"

    For info I upgraded to core-2022.2.2

    image

    bug 
    opened by tofgun 6
  • Previous Value not updated

    Previous Value not updated

    Describe the bug At midnight, the daily previous value is not updated

    To Reproduce Steps to reproduce the behavior:

    1. Wait midnight

    Expected behavior Perform the update

    Additional context In source code sensor.py, it seems that the current value can be set to None : so if it occurs at midnight, None is recorded

    bug 
    opened by jugla 6
Releases(V7.4.1)
Volkswagen ID component for Home Assistant

Volkswagen ID component for Home Assistant This folder contains both a generic Python 3 library for the Volkswagen ID API and a component for Home Ass

55 Jan 07, 2023
Implementation of Forwards Kinematics, Inverse Kinematics, Point to Point Movement and Synchronous movement for Kuka KR 120 R2700-2.

I made this project for my university course in robotics. I rarely found any information regarding the implementation of mathematics in code. So I decided to make this repo in order to help others :)

2 Dec 27, 2022
OPNsense integration with Home Assistant

hass-opnsense Join OPNsense with home-assistant! hass-opnsense uses the built-in xmlrpc service of OPNsense for all interactions. This project is curr

Travis Glenn Hansen 54 Jan 03, 2023
Raspberry Pi Pico as a Rubber Ducky

Raspberry-Pi-Pico-as-a-Rubber-Ducky Kurulum Raspberry Pi Pico cihazınız için CircuitPython'u indirin. Boot düğmesine basılı tutarken cihazı bir USB ba

Furkan Enes POLATOĞLU 6 Dec 13, 2022
Parametric open source reconstructions of Voron printed parts

The Parametric Voron This repository contains Fusion 360 reconstructions of various printed parts from the Voron printers

Matthew Lloyd 26 Dec 19, 2022
Pylorawan is a Micropython wrapper for lorawan devices from RAK Wireless.

pylorawan Pylorawan is a Micropython wrapper for lorawan devices from RAK Wireless. Tested on a Raspberry PI Pico with a RAK4200(H) Evaluation Board (

Peter Houghton 3 Nov 04, 2022
This repo uses a stereo camera and gray-code-based structured light to realize dense 3D reconstruction.

Structured-light-stereo This repo uses a stereo camera and gray-code-based structured light to realize dense 3D reconstruction. . How to use: STEP 1:

FEI 20 Dec 31, 2022
A Python program that makes it easy to manage modules on a CircuitPython device!

CircuitPython-Bundle-Manager-v2 A Python program that makes it easy to manage modules on a CircuitPython device! The CircuitPython Bundle Manager v2 i

Ckyiu 1 Dec 18, 2021
I made this so I can control my Tapo L510 light bulb and Govee H6159 light strip using the PyP100 module and the Govee public API

TAPO-And-Govee-Controller I made this so I can control my Tapo L510 light bulb and Govee H6159 light strip using the PyP100 module and the Govee publi

James Westhead 0 Nov 23, 2021
A Macropad using the Raspberry Pi Pico, programmed with CircuitPython.

A Macropad using the Raspberry Pi Pico, programmed with CircuitPython.

15 Oct 14, 2022
Testing out some (stolen) DMA code for RP2040 Micropython

RP2040_micropython_dma testing out some (stolen) DMA code for RP2040 Micropython. Heavy inspiration and some code from https://iosoft.blog/2021/10/26/

2 Dec 29, 2022
OpenStickFirmware is open source software designed to handle any and all tasks required in a custom Fight Stick

OpenStickFirmware is open source software designed to handle any and all tasks required in a custom Fight Stick. It can handle being the brains of your entire stick, or just handling the bells and wh

Sleep Unit 23 Nov 24, 2022
Estimation of whether or not the persons given information will have diabetes.

Diabetes Business Problem : It is desired to develop a machine learning model that can predict whether people have diabetes when their characteristics

Barış TOKATLIOĞLU 0 Jan 20, 2022
Software framework to enable agile robotic assembly applications.

ConnTact Software framework to enable agile robotic assembly applications. (Connect + Tactile) Overview Installation Development of framework was done

Southwest Research Institute Robotics 29 Dec 01, 2022
emhass: Energy Management for Home Assistant

emhass EMHASS: Energy Management for Home Assistant Context This module was conceived as an energy management optimization tool for residential electr

David 70 Dec 24, 2022
🔆 A Python module for controlling power and brightness of the official Raspberry Pi 7

rpi-backlight A Python module for controlling power and brightness of the official Raspberry Pi 7" touch display. Note: This GIF was created using the

Linus Groh 238 Jan 08, 2023
A raspberrypi tools for python

raspberrypi-tools how to install: first clone this project: git clone https://github.com/Ardumine/rpi-tools.git then go to the folder cd rpi-tools and

1 Jan 04, 2022
A Simple Python KeyLogger App

✨ Kurulum Uygulamayı bilgisayarınızda kullana bilmek için bazı işlemler yapmanız gerekiyor. Aşağıdaki yönlendirmeleri takip ederek bunu yapabilirsiniz

VorteX 7 Jun 11, 2022
This tool emulates an EMV-CAP device, to illustrate the article "Banque en ligne : à la decouverte d'EMV-CAP" published in MISC

About This tool emulates an EMV-CAP device, to illustrate the article "Banque en ligne : à la decouverte d'EMV-CAP" published in MISC, issue #56 and f

Philippe Teuwen 28 Nov 21, 2022
Minimal and clean dashboard to visualize some stats of Pi-Hole with an E-Ink display attached to your Raspberry Pi

Clean Dashboard for Pi-Hole Minimal and clean dashboard to visualize some stats of Pi-Hole with an E-Ink display attached to your Raspberry Pi.

Alessio Santoru 104 Dec 14, 2022