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)
Raspberry Pi Pico support for VS Code

Pico-Go VS Code Extension Pico-Go provides code auto-completion and allows you to communicate with your Raspberry Pi Pico board using the built-in REP

Chris Wood 114 Dec 28, 2022
LT-OCF: Learnable-Time ODE-based Collaborative Filtering, CIKM'21

LT-OCF: Learnable-Time ODE-based Collaborative Filtering Our proposed LT-OCF Our proposed dual co-evolving ODE Setup Python environment for LT-OCF Ins

Jeongwhan Choi 15 Dec 28, 2022
Sensor of Temperature Feels Like for Home Assistant.

Please ⭐ this repo if you find it useful Sensor of Temperature Feels Like for Home Assistant Installation Install from HACS (recommended) Have HACS in

Andrey 60 Dec 25, 2022
A python file which I wrote to allow the Dorna Robots API to draw an Image on a 3D plane

Dorna-Robotics-Internship Code In the directory "Code" is a python file which I wrote to allow the Dorna Robots API to draw an Image on a 3D plane. I

Stephen Otto 2 Dec 06, 2021
a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico

pico_ws2812b a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico You'll first need to save the ws2812b.py file to your device (for

76 Nov 25, 2022
Custom component for Home Assistant that integrates Candy/Haier Wi-Fi washing machines (also known as Simply-Fi).

Candy Home Assistant component Custom component for Home Assistant that integrates Candy/Haier Wi-Fi washing machines (also known as Simply-Fi). This

Olivér Falvai 61 Dec 29, 2022
Workshop for student hackathons focused on IoT dev

Scenario: The Mutt Matcher (IoT version) According to the World Health Organization there are more than 200 million stray dogs worldwide. The American

Microsoft 15 Aug 10, 2022
Custom component for MPC-HC for home-assistant

mpc_hc The current mpchc integration in homeassistant violates ADR0004, so it will be deleted from core. This is just the existing integration copied

3 Dec 15, 2022
Rasberry Pie GPIO memory game. Press the corresponding key to the lit LED.

RPie-keyboard-game Rasberry Pie GPIO memory game. Press the corresponding key to the lit LED. Randem LED (general output) is lit up on rasberrypi rand

Shawn Dowling 1 Oct 24, 2021
Technical Answers to Real-World Problems. Evolution of Watering Manually to Watering Automatically.

Automatic Watering System using Soil Moisture Sensor and RTC Timer with Arduino Technical Answers to Real-World Problems Know the plant, Grow the plan

NelakurthiSudheer 3 Jan 03, 2022
Lego Mindstorms EV3 and Lego Spike Prime

Lego Mindstorms EV3 and Lego Spike Prime What is FLL? The FIRST LEGO League Challenge Robotics Tournament challenges students from 9 to 16 years old t

Danimar Campos da Costa 1 Nov 14, 2021
The software that powers the sPot: a 4th generation

This code is meant to accompany this project in which a Spotify client is built into an iPod "Classic" from 2004. Everything is meant to run on a Raspberry Pi Zero W.

Guy Dupont 683 Dec 28, 2022
An embedded application for toy-car controlling based on Raspberry Pi 3 Model B and AlphaBot2-Pi.

An embedded application for toy-car controlling based on Raspberry Pi 3 Model B and AlphaBot2-Pi. This is the source codes of my programming assignmen

StardustDL 4 Oct 19, 2022
Create a low powered, renewable generation forecast display with a Raspberry Pi Zero & Inky wHAT.

GB Renewable Forecast Display This Raspberry Pi powered eInk display aims to give you a quick way to time your home energy usage to help balance the g

Andy Brace 32 Jul 02, 2022
Extremely simple PyBadge examples to demonstrate different aspects of CircuitPython using PyBadge hardware.

BeginnerPyBadge I purchased a PyBadge recently. I'm new to hardware. I was surprised how hard it was to find easy examples demonstrating how different

Rubini LaForest 2 Oct 21, 2021
A flexible data historian based on InfluxDB, Grafana, MQTT and more. Free, open, simple.

Kotori Telemetry data acquisition and sensor networks for humans. Documentation: https://getkotori.org/ Source Code: https://github.com/daq-tools/koto

83 Nov 26, 2022
The PicoEMP is a low-cost Electromagnetic Fault Injection (EMFI) tool,

ChipSHOUTER-PicoEMP The PicoEMP is a low-cost Electromagnetic Fault Injection (EMFI) tool, designed specifically for self-study and hobbiest research.

NewAE Technology Inc. 312 Jan 07, 2023
Home Assistant custom integration to fetch data from Powerpal

Powerpal custom component for Home Assistant Component to integrate with powerpal. This repository and integration is not affiliated with Powerpal. Th

Lawrence 32 Jan 07, 2023
MPY tool - manage files on devices running MicroPython

mpytool MPY tool - manage files on devices running MicroPython It is an alternative to ampy Target of this project is to make more clean code, faster,

Pavel Revak 5 Aug 17, 2022
This allows you to record keyboard and mouse input, and play it back using pynput.

Record and Play with Python! This allows you to record keyboard and mouse input, and play it back (with looping) using pynput. It allows for automatio

George Jensen 45 Jan 02, 2023