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)
Owner
null
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
SALUS THERMOSTAT Custom component for Home-Assistant

Home-Assistant Custom Components Custom Components for Home-Assistant (http://www.home-assistant.io) Salus Thermostat Climate Component My device is R

null 21 Dec 18, 2022
Windhager myComfort custom component for Home Assistant

Windhager myComfort custom component for Home Assistant

null 5 Apr 27, 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

null 3 Dec 15, 2022
Component for deep integration LedFx from Home Assistant.

LedFX for Home Assistant Component for deep integration LedFx from Home Assistant. Table of Contents FAQ Install Config Performance FAQ Q. What versio

Dmitry Mamontov 28 Dec 13, 2022
This Home Assistant custom component adds support for controlling Midea dehumidiferes on local network.

This is a custom component for Home assistant that adds support for Midea dehumidifier appliances via the local area network. midea-dehumidifier-lan H

Nenad Bogojevic 97 Jan 8, 2023
Resmed_myair_sensors - This is a Home Assistant custom component to pull daily CPAP data from ResMed's myAir service using an undocumented API

resmed_myair This component will set up the following platforms. Platform Description sensor Show info from the myAir API. Installation Using the tool

Preston Tamkin 17 Dec 29, 2022
Historic weather - Home Assistant custom component for accessing historic weather data

Historic Weather for Home Assistant (CC) 2022 by Andreas Frisch github@fraxinas.

Andreas Frisch 1 Jan 10, 2022
Home Assistant custom component to help ev-chargers stay below peak hourly energy levels.

Peaqev ev-charging Peaqev ev-charging is an attempt of charging an ev without breaching a preset monthly max-peak energy level. In order for this inte

Magnus Eldén 35 Dec 24, 2022
Home assiatant Custom component: Camera Archiver

Camera archiver Archive your ftp camera meadia files on other ftp with files renaming and event creation. Event can be used for send information to el

null 1 Jan 6, 2022
Universal Xiaomi MIoT integration for Home Assistant

Xiaomi MIoT Raw 简体中文 | English MIoT 协议是小米智能家居从 2018 年起推行的智能设备通信协议规范,此后凡是可接入米家的设备均通过此协议进行通信。此插件按照 MIoT 协议规范与设备通信,实现对设备的状态读取及控制。

null 1.9k Jan 2, 2023
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
Home Assistant custom integration for e-distribución

e-Distribución is an energy distribution company that covers most of South Spain area. If you live in this area, you probably are able to register into their website to get some information about your power demand, energy consumption, or even cycle billing (in terms of consumptions).

VMG 17 Sep 7, 2022
Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner and yi-hack-Allwinner-v2

yi-hack Home Assistant integration Overview yi-hack Home Assistant is a custom integration for Yi cameras (or Sonoff camera) with one of the following

roleo 131 Jan 3, 2023
Интеграция Home Assistant с ЛК "Интер РАО"

ЕЛК ЖКХ «Интер РАО» для Home Assistant Предоставление информации о текущем состоянии ваших аккаунтов в ЕЛК ЖКХ. Введение @ TODO @ Установка Посредство

Alexander Ryazanov 27 Nov 5, 2022
Provide Unifi device info via api to Home Assistant that will give ap sensors

Unifi AP Device info Provide Unifi device info via api to Home Assistant that will give ap sensors

null 12 Jan 7, 2023
Switch predictor for Home Assistant with AppDeamon

Home Assistant AppDeamon - Event predictor WORK IN PROGRESS - CURRENTLY NOT COMPLETE AND NOT WORK This is an idea under development (when I have free

null 37 Dec 17, 2022
Uses the Duke Energy Gateway to import near real time energy usage into Home Assistant

Duke Energy Gateway This is a custom integration for Home Assistant. It pulls near-real-time energy usage from Duke Energy via the Duke Energy Gateway

Michael Meli 28 Dec 23, 2022
Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API.

Hildebrand Glow (DCC) Integration Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API. T

Aniket 153 Dec 30, 2022