Giter VIP home page Giter VIP logo

gazpar-home-assistant's Introduction

Gazpar home assistant

This module show your Gazpar consumption inside home assistant.

Install

HACS (recommended)

You can install this custom component using HACS by adding a custom repository.

Manual install

Copy this repository inside config/custom_components/gazpar.

Configuration

Add this to your configuration.yaml:

sensor:
  - platform: gazpar
    username: !secret gazpar.username
    password: !secret gazpar.password
    pce: 1234567890  # PCE identifier (can be found on grdf.fr)

This will create a kwh index sensor that can be used in HA energy.

gazpar-home-assistant's People

Contributors

aardjoun avatar cyprieng avatar dckiller51 avatar meroje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gazpar-home-assistant's Issues

Module Energie

Bonjour,

Je souhaite utilisé le nouveau module Energie de HomeAssistant

J'ai paramétré comme ça :
image

Mais j'ai une erreur :
image

Qui peut aider ?

Import historique?

Bonjour,

Y'a-t-il un moyen d'importer l'historique depuis le site web de GDRF et de l'injecter dans home assistant?

Merci d'avance

Pb installation with Cost

Bonjour,
Je tente de reinstaller votre systeme. ca coince avec cette erreur

Invalid config for [sensor.gazpar]: [cost] is an invalid option for [sensor.gazpar]. Check: sensor.gazpar->cost. (See ?, line ?).

Merci d'avance
Cdlt
Philippe

Mauvaise valeurs remonté

Bonjour,

Ci-dessous l'image entre GRDF et HomeAssistant.

Il y a des mélange de valeur entre mois, jour et semaine
image

  • Contactez-moi si je peux aider.

Je voudrais tellement suivre ma consommation énergétique

Décalage des valeurs journalières entre grdf et HA.

Bonjour,

J'ai arrêté ma chaudière pendant 2 jours, ce qui se reflète correctement sur le site de Grdf entre le 3 et 5 mars, par contre les valeurs semble décalé et/ou additionnée sur +/- 2j coté HA.
image
image

J'avais également l'erreur "request==2.25.1" jusqu'à aujourd'hui.

Est-il possible de rafraichir les valeurs précédentes directement depuis l'import Grdf ?

IndexError: list index out of range

hi ,

since this month gazpar component sensor stay in error

This error originated from a custom integration.

Logger: custom_components.gazpar.sensor
Source: custom_components/gazpar/sensor.py:88
Integration: gazpar (documentation, issues)
First occurred: January 25, 2022, 16:01:31 (5 occurrences)
Last logged: 08:01:27

Failed to query Gazpar library with exception : Traceback (most recent call last): File "/config/custom_components/gazpar/sensor.py", line 76, in update_gazpar_data index_m3, index_kwh = gazpar.get_consumption() File "/config/custom_components/gazpar/gazpar.py", line 45, in f_retry return f(*args, **kwargs) File "/config/custom_components/gazpar/gazpar.py", line 88, in get_consumption index_m3 = response[self.pce]['releves'][-1]['indexFin'] IndexError: list index out of range

is it only on my side or something changed on grdf side ?

Log error

Hi, I also have a lot of errors that seem and come from gazpar

Logger: custom_components.gazpar.sensor
Source: custom_components/gazpar/sensor.py:119
Integration: gazpar
First occurred: 13:55:42 (1 occurrences)
Last logged: 13:55:42

Failed to query Gazpar library with exception : Traceback (most recent call last): File "/config/custom_components/gazpar/sensor.py", line 96, in update_gazpar_data data = [d for d in data if File "/config/custom_components/gazpar/sensor.py", line 97, in datetime.strptime(d['time'], '%d/%m/%Y') >= datetime.now().replace(day=1, hour=0, minute=0, File "/usr/local/lib/python3.8/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/local/lib/python3.8/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '01/2021' does not match format '%d/%m/%Y'
Regards
Philippe

Plus aucune donnée n'est reçu par Home Assistant

Depuis 3 semaine environ, mon Home Assistant ne reçoi aucune donnée. Les paramétrages sont correct, je n'est aucun message d'erreur dans les journaux et les données sont à jour sur le site de GRDF.

Nouveau client

Bonjour,

J'ai déménager avec mon HomeAssistant.

Mais le script sensor.py n'a pas aimé !

Ayant pas assez d'historique, tout a planté,
La ligne du bug :
last_month_kwh = int(month_data[-2]['kwh'])

J'ai mis ça en attendant d'avoir un historique
last_month_kwh = 0 #int(month_data[-2]['kwh'])

No 'version' key in the manifest file for custom integration 'gazpar'

Hi
Votre programme fonctionne très bien
Par contre j’ai eu cette erreur dans les logs
No 'version' key in the manifest file for custom integration 'gazpar'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'gazpar
cdlt
Philippe

Requirements for gazpar not found: ['requests==2.25.1']

Bonjour,
Depuis quelques jours j'ai une erreur à l'installation de gazpar et au redémarrage de HA.

Merci

Source: components/homeassistant/__init__.py:172 
First occurred: 13:38:19 (1 occurrences) 
Last logged: 13:38:19

Error executing service: <ServiceCall homeassistant.restart (c:7a4295d2fb3c4e61f4da9641129d024e)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1654, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 738, in admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 172, in async_handle_core_service
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.gazpar - Requirements for gazpar not found: ['requests==2.25.1']. ```

A l'installation :

```Logger: homeassistant.util.package
Source: util/package.py:99 
First occurred: 11:22:18 (6 occurrences) 
Last logged: 13:38:19

Unable to install package requests==2.25.1: warning: missing-index-doctype × The package index page being used does not have a proper HTML doctype declaration. ╰─> Problematic URL: https://wheels.home-assistant.io/alpine-3.14/armv7/ note: This is an issue with the page at the URL mentioned above. hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context. ERROR: Cannot install requests==2.25.1 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts ```

Last month

Hi!
Thanks for this super useful component!
It would be great to have a last_month sensor.
To me, the current month is not so relevant.
What do you think?

Add volume (m3) sensors

The upcoming version of HA will support gaz but it looks like they plan to require m3 as measurement unit...
image

Volume makes sense for exact consumption but kWh is more useful for alignment and price mapping. I asked support for both on Twitter.

Anyway, since the volume is also available on the GRDF website, it could be great to get it with additional sensors.
I had a quick look and there's minor changes between the requests for kWh and m3 for the payload.

I may propose a PR for this.

'NoneType' object has no attribute 'group'

Hello Cyrpien,

I installed your component in my Home Assistant with rights credentials.
But I obtain this error in Hass servers logs.

Can you take a look ?

Thank you for your work !

Clément.

Logger: custom_components.gazpar.sensor
Source: custom_components/gazpar/sensor.py:113
Integration: gazpar
First occurred: 12:35:57 PM (1 occurrences)
Last logged: 12:35:57 PM
Failed to query Gazpar library with exception : Traceback (most recent call last): File "/config/custom_components/gazpar/sensor.py", line 89, in update_gazpar_data data = gazpar.get_data_per_day(session, File "/config/custom_components/gazpar/gazpar.py", line 139, in get_data_per_day return _get_data(session, 'Jour', start_date, end_date) File "/config/custom_components/gazpar/gazpar.py", line 306, in _get_data d = md.group(1) AttributeError: 'NoneType' object has no attribute 'group' 

CO2e

Hi,
I got an idea to addon to your component. A sensor to tell the CO2e emission.
In France (as I guess it is the case for most users of this component), it is approximatively 200g of CO2 per kWh.
https://www.enerzine.com/en-maison-le-chauffage-au-fioul-emet-7-fois-plus-de-co2-que-lelectrique/15316-2012-09
What do you think to have a sensor to provide this value per day and per month? So that we can make people realize their consumption. And we could compare it easily to the COP21 quota per habitation.

Sensor update

Hi!
Great component as I said, it's very useful, thank you!
Out of curiosity, when does it update the value? What is the trigger?
I am trying to plot graphs but I don't know which data to take into account to get only a point per day.
last, max, first ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.