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)
LUNA: a USB multitool & nMigen library

LUNA is a full toolkit for working with USB using FPGA technology; and provides hardware, gateware, and software to enable USB applications.

Great Scott Gadgets 750 Dec 28, 2022
A python project based on a TV show Wheel of Fortune

Wheel-of-Fortune-using-Python Wheel of Fortune in python this game is the hands-on project in Python 3 Programming Specialization offered By Universit

Eszter Pai 1 Jan 03, 2022
Automatic Watering System using Soil Moisture Sensor and RTC Timer with Arduino

Automatic-Watering-System - Technical Answers to Real-World Problems. Evolution of Watering Manually to Watering Automatically.

Vaishnavi Pothugunta 4 Dec 31, 2021
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
What if home automation was homoiconic? Just transformations of data? No more YAML!

radiale what if home-automation was also homoiconic? The upper or proximal row contains three bones, to which Gegenbaur has applied the terms radiale,

Felix Barbalet 21 Mar 26, 2022
Raspberry Pi Spectrometer

PySpectrometer 2021-03-05 Raspberry Pi Spectrometer The PySpectrometer is a Python (OpenCV and Tkinter) implementation of an optical spectrometer. The

Les Wright 538 Jan 05, 2023
A python script for macOS to enable scrolling with the 3M ergonomic mouse EM500GPS in any application.

A python script for macOS to enable scrolling with the 3M ergonomic mouse EM500GPS in any application.

3 Feb 19, 2022
Universal Xiaomi MIoT integration for Home Assistant

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

1.9k Jan 02, 2023
This repository contains all the code and files needed to simulate the notspot quadrupedal robot using Gazebo and ROS.

Notspot robot simulation - Python version This repository contains all the files and code needed to simulate the notspot quadrupedal robot using Gazeb

50 Sep 26, 2022
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
A Python class for controlling the Pimoroni RGB Keypad for Raspberry Pi Pico

rgbkeypad A Python class for controlling the Pimoroni RGB Keypad for the Raspberry Pi Pico. Compatible with MicroPython and CircuitPython. keypad = RG

Martin O'Hanlon 43 Nov 11, 2022
Designed a system that can efficiently sort recyclables and transfer them to corresponding bins using Python, a Raspberry Pi, and Quanser Labs.

System for Sorting and Recycling Containers - Project 3 Table of contents Overview The challenge Screenshot My process Built with Code snippets What I

Mit Patel 2 Dec 02, 2022
A Home Assistant sensor that tells you what holiday is next

Next Holiday Sensor This sensor tells you what holiday is coming up next. You can use it to set holiday light colors or other scenes. The state of the

Nick Touran 20 Dec 04, 2022
E-Ink Magic Calendar that automatically syncs to Google Calendar and runs off a battery powered Raspberry Pi Zero

E-Ink Magic Calendar that automatically syncs to Google Calendar and runs off a battery powered Raspberry Pi Zero

2.8k Dec 30, 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
Pi-hole with Inky pHAT ePaper display

Pi-hole with Inky pHAT ePaper display This is my Pi-hole with an ePaper display.

11 Sep 13, 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
Mini Pupper - Open-Source,ROS Robot Dog Kit

Mini Pupper - Open-Source,ROS Robot Dog Kit

MangDang 747 Dec 28, 2022
Hook and simulate global mouse events in pure Python

mouse Take full control of your mouse with this small Python library. Hook global events, register hotkeys, simulate mouse movement and clicks, and mu

BoppreH 722 Dec 31, 2022
Python implementation of ZMP Preview Control approach for biped robot control.

ZMP Preview Control This is the Python implementation of ZMP Preview Control app

Chaobin 24 Dec 19, 2022