Git Product home page Git Product logo

Comments (11)

ad-ha avatar ad-ha commented on June 6, 2024 1

Buenas,

He estado dando vueltas a esto y ya sé qué es lo que pasa y por qué aparecen esas "incongruencias" de lecturas.

Básicamente, la lectura del contador sólo devuelve número entero, sin decimales. Con lo cual, si a cada hora la lectura del contador no ha subido más de 1 kWh, el sensor no detecta cambios y da lectura 0. Por eso hay horas en que no aparece nada. Luego cuando detecta una variación superior a 1kWh, respecto a la última lectura, es cuando apunta el consumo.

@NeoMorfeo en tús gráficas es lo que pasa. Que cada intervalo en cero luego viene precedido de una lectura de 1 kWh.

Espero haber aclarado la cuestión.

Cierro el tópico

from ide_api.

ad-ha avatar ad-ha commented on June 6, 2024

Hi,

It has happened to me as well and it's not the first time. It seems like an issue on the Json response from i-DE. Can you try to check the log and see if it keeps failing?

You may also try to restart HA, so the sensor tries to get a read on startup and you won't have to wait.

Let me know.

from ide_api.

ad-ha avatar ad-ha commented on June 6, 2024

Another way to try it:

Login to your i-de account as you do normally on a web browser (https://www.i-de.es/consumidores/web/home/dashboard)

After login, entre this address on the browser: https://www.i-de.es/consumidores/rest/escenarioNew/obtenerMedicionOnline/24

If you get a WU1, the issue will be with the login or i-DE response, not the Integration. If you get something similar to the one below, it should all be working fine on HA:

{"valMagnitud":"470.0","valInterruptor":"1","valEstado":"09","valLecturaContador":"24353","codSolicitudTGT":"010xxxxx9600"}

from ide_api.

NeoMorfeo avatar NeoMorfeo commented on June 6, 2024

After one hour more, it looks working again, I will try to monitor it a few days, and know if there is something puntual or its an issue.

I have checked the method you describe, open the URL, login and navigate to the other URL, and it takes long time without response (timeout). After a few tries, it gave me an error "Se ha producido un error. No se puede completar la operación solicitada." With status code 403 (and I was logged out on the web) Maybe we are reaching limits?

from ide_api.

NeoMorfeo avatar NeoMorfeo commented on June 6, 2024

After more or less one day with that, I notice a few errors/warnings, maybe need further investigation, but the information obtained is not consistent referring to the time when it could be obtained:

Yesterday (04/01/2022) measurements :
image

Today (05/01/2022) measurements :
image

And the logs:
image

image

Today I have tested the url steps you say yesterday, and now it works as you said.. but something missed here.

Please let me know if you need more information.

from ide_api.

ad-ha avatar ad-ha commented on June 6, 2024

Hi @NeoMorfeo,

Which version of the integration are you using?

I do not understand what you mean by inconsistency between both days on the energy panel. Can you elaborate, please.

The error that you are getting on the log is related to the i-DE response, not the integration itself. You have to keep in mind that each reading goes straight to your home meter and asks for the actual consumption and cumulative reading; that's why it takes so long to get a response from the server. If something fails in between, it might be due to your meter or the i-DE server.

EDIT 01: i-DE states that each meter reading can take up to 2 minutes.

image

Cheers

from ide_api.

ad-ha avatar ad-ha commented on June 6, 2024

Btw, just wondering on things that might impact the response from i-DE.

What kind of profile do you have on i-DE? Have a look here: https://www.i-de.es/consumidores/web/home/personal-area/userData

Is "Perfil Usuario" Usuario Avanzado?

from ide_api.

NeoMorfeo avatar NeoMorfeo commented on June 6, 2024

I have installed it using HACS, and there I have no information about the version (and don't know how to obtain it)... sorry

I know the operation of measure is not controlled by the integration, just sharing just in case you could infer more info on that.

To explain me more about the consistence, I don't know in which time or when the integration ask for the measures but, i would be nice to have the same period always (every 1 hour, every 2), when I said the data has inconsistences, I was talking about that, I think would be better to have that data every period, because as you can see on my previous images, some time it takes the measurement after one hour, and sometimes only after 3 or 4.

Maybe is something I don't know read properly on the data?

from ide_api.

NeoMorfeo avatar NeoMorfeo commented on June 6, 2024

Btw, just wondering on things that might impact the response from i-DE.

What kind of profile do you have on i-DE? Have a look here: https://www.i-de.es/consumidores/web/home/personal-area/userData

Is "Perfil Usuario" Usuario Avanzado?

I have "Usuario Avanzado"

from ide_api.

ad-ha avatar ad-ha commented on June 6, 2024

@NeoMorfeo

A ver si me explico. El sensor actualiza la lectura cada hora, pero puede que haya veces en que el contador no contesta y no se genera lectura o bien, esto ya más a menudo, hay veces en que también la web de i-DE tiene problemas para reportar. La inconsistencia de tus valores podría ser por eso.

A mi me pasa lo mismo:

image

from ide_api.

NeoMorfeo avatar NeoMorfeo commented on June 6, 2024

@NeoMorfeo

A ver si me explico. El sensor actualiza la lectura cada hora, pero puede que haya veces en que el contador no contesta y no se genera lectura o bien, esto ya más a menudo, hay veces en que también la web de i-DE tiene problemas para reportar. La inconsistencia de tus valores podría ser por eso.

A mi me pasa lo mismo:

image

Perfecto, a eso me refería :) siendo ese el tema del muestreo del contador, poco se puede hacer, aunque me pregunto si no habrá almacenado en la API de I-DE ese dato, para consultarlo de ellos directo, en vez de la puntual del contador (no sé si es factible o si existe, solo pregunto 😄 )

from ide_api.

Related Issues (11)

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.