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)
Play music on Raspberry Pi Pico Without CPU involvement

MicroPython_PIO_Music_DMA Play music on Raspberry Pi Pico Without CPU involvement This is based on PIOBeep (https://github.com/benevpi/pico_pio_buzz)

3 Nov 27, 2022
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

37 Dec 17, 2022
Keystroke logging, often referred to as keylogging or keyboard capturing

Keystroke logging, often referred to as keylogging or keyboard capturing, is the action of recording the keys struck on a keyboard, typically covertly, so that a person using the keyboard is unaware

Bhumika R 2 Jan 11, 2022
Control DJI Tello with Raspberry Pi and PS4 Controller

Control-DJI-Tello-with-Raspberry-Pi-and-PS4-Controller Demo of this project see

MohammadReza Sharifi 24 Aug 11, 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 03, 2023
PlatformIO development platform for GSM modules

PlatformIO development platform for GSM modules Supported Modules Quectel M66 OpenCPU Arduino - TODO other - in progress... Supported Boards Comet M66

Georgi Angelov 5 Aug 06, 2022
Monitor an EnvisaLink alarm module running Honeywell firmware, and set a Nest device to Home/Away depending on whether the alarm is Disarmed/Away.

Nestalarm Monitor an EnvisaLink alarm module running Honeywell firmware, and set a Nest device to Home/Away depending on whether the alarm is Disarmed

1 Dec 30, 2021
A simple portable USB MIDI controller based on Raspberry-PI Pico and a 16-button keypad, written in Circuit Python

RPI-Pico-16-BTn-MIDI-Controller-using-CircuitPython A simple portable USB MIDI controller based on Raspberry-PI Pico, written in Circuit Python. Link

Rounak Dutta 3 Dec 04, 2022
Micropython-wifimanager-esp8266 - Simple Wifi Manager for ESP8266 using MicroPython

micropython-wifimanager-esp8266 Simple Wifi Manager for ESP8266 using MicroPytho

Abhinuv Nitin Pitale 1 Jan 04, 2022
Sticklog2heatmap - Draw a heatmap of RC sticks from OpenTX logs or USB HID device

sticklog2heatmap Draw a heatmap of RC sticks from OpenTX logs or USB HID device

2 Feb 02, 2022
Plug and Play on Internet of Things with LoRa wireless modulation.

IoT-PnP Plug and Play on Internet of Things with LoRa wireless modulation. Device Side In the '505_PnP' folder has a modified ardunino template code s

Lambert Yang 1 May 19, 2022
A python module for interacting with rolimon's, a roblox value site.

rpi - rolimon's python interaction rpi is an open source python-based rolimon's api wrapper. It provides an end-to-end pipeline in which each componen

Acier 11 Nov 08, 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
Isaac Gym Environments for Legged Robots

Isaac Gym Environments for Legged Robots This repository provides the environment used to train ANYmal (and other robots) to walk on rough terrain usi

Robotic Systems Lab - Legged Robotics at ETH Zürich 372 Jan 08, 2023
Small Robot, with LIDAR and DepthCamera. Using ROS for Maping and Navigation

🤖 RoboCop 🤖 Small Robot, with LIDAR and DepthCamera. Using ROS for Maping and Navigation Made by Clemente Donoso, 📍 Chile 🇨🇱 RoboCop Lateral Fron

Clemente Donoso Krauss 2 Jan 04, 2022
Home Assistant custom components MPK-Lodz

MPK Łódź sensor This sensor uses unofficial API provided by MPK Łódź. Configuration options Key Type Required Default Description name string False MP

Piotr Machowski 3 Nov 01, 2022
FHEM Connector for FHT Heating devices

home-assistant-fht from: https://github.com/Rsclub22 FHEM Connector for FHT Heating devices (connected via FHEM) Requires FHEM to work You can find FH

5 Dec 01, 2022
Poupool is an overflow swimming pool control software

Poupool - The swimming pool controller Poupool is a swimming pool control software. It is based on Transitions, Pykka and Paho MQTT. The user interfac

Cyril Jaquier 8 Jul 18, 2022
Sleep Functionality for Adafruit MacroPad RP2040

Adafruit-MacroPad-RP2040 Sleep Functionality for Adafruit MacroPad RP2040 Details This is a modification of AdaFruit project bundle found here specifi

9 Dec 18, 2022
A Fast, Easy, and User Friendly way to control Robotics Actuators.

T-Motor Controller A Fast, Easy, and User Friendly way to control Robotics Actuators. View Demo · Report Bug · Request Feature Table of Contents About

26 Aug 23, 2022