Git Product home page Git Product logo

ide_api's Issues

Platform error sensor.ide - No module named 'dateutil'

Hi!

I'm looking to update Home Assistant to new version 2022.2, but when passing the Check Configuration tool, I get this error in the log:

Platform error sensor.ide - No module named 'dateutil'

Do you know how can I solve it? It's safe to update anyway?

Problem after first update

After first configuration and first update of the value, i got this error on the consecuents calls...

Let me know if you need more information

PS: great job, please, let me know if you need help developing or debuggin!

image

Logger: homeassistant.helpers.entity
Source: custom_components/ide/ide_api.py:160
Integration: i-DE Energy Monitor (documentation, issues)
First occurred: 12:54:11 (1 occurrences)
Last logged: 12:54:11

Update for sensor.ide_meter_reading fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 699, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/ide/sensor.py", line 149, in update
    meter = ides.watthourmeter()
  File "/config/custom_components/ide/ide_api.py", line 169, in watthourmeter
    return self.measurement()["meter"]
  File "/config/custom_components/ide/ide_api.py", line 160, in measurement
    "id": json_response["codSolicitudTGT"],
KeyError: 'codSolicitudTGT'

version 0.2 beta1 sensor no disponible

Tengo instalada la version beta1 de la nueva version de codigo pero sigue apareciendo como sensor no disponible. aparentemente mi cuenta no esta baneada ya que desde la pagina de I-De accedo sin problemas con mis credenciales.
Alguna idea?

Posibilidad de crear un sensor para los kwh exportados

Acabo de ver la integración y la he instalado. Me parece una maravilla.
No sé si es posible pero sería interesante que también pudieramos obtener los datos de la energía exportada, para el caso de quienes tienen instalaciones fotovoltaicas conectadas a la red.
Gracias por vuestro trabajo.

Add contract number to configuration and sensor readings

Currently, the reading on i-DE is retrieved for the last contract checked on the web (if more then one is available), so the configuration should include a contract number to ensure that the correct reading is obtained and not mixed with other contract

Add Sensor Attributes

Currently the sensor only shows the meter readings. Would be good to include further sensors or attributes:

  • No. Contrato
  • CUPS
  • Telegestionado
  • Fecha última actualización
  • Potencia máxima (contratada)

Add multicontract capabilities

Related with #18

Add possibility to have readings for multiple contracts. Should support multi-entries to configuration and multi-sensors.

Restore previous state on HA Restart

If the reading from i-De fails on restart, the sensor is not deployed and will be unavailable.

Change sensor to RestoreEntity and add the necessary processes, so if the reading fails the sensor is available and tries to update whenever possible

Tiempo de Escaneo

Buenos días,

¿Se podría añadir el tiempo de escaneo como variable externa? Es decir , sino pongo la variable en yaml por defecto por ejemplo 60 minutos, pero también tener la opción de informarla mediante yaml

Obtener consumo en W en vez de kW

Hay alguna posibidad de añadir la opción de obtener en W en vez de en KW el consumo del contador?

Actualmente no admite decimales la lectura, pero si en lugar de obtener los kW obtenemos los W, y luego mediante un Template lo convertimos en kW o lo que queramos, si que podríamos tener los consumos más realistas con kW con decimales

Actualmente a mi está consulta de Oligo me devuelve en W en vez de kW (hay que quitar la fecha, ya que lo tengo para que me dé el consumo desde el día 1), creo que lo postee también en uno de los comentarios del Git de Oligo

package = "oligo"
try:
	     __import__(package)
except:
		os.system("pip install "+ package)
#
from oligo import Iber
from datetime import date, timedelta
#
connection = Iber()
connection.login("[email protected]", "xxxxxxxx")
#
from_date = date.today().replace(day=1)
#until_date = date.today() - timedelta(days=2)
until_date = date.today()
#
consumo = connection.consumption(from_date, until_date)
#
#print(consumo)
quitanone = [i for i in consumo if i] 
#Damos en Watios
suma=sum(quitanone)
#Convertimos en Kw
enkw=(suma)/1000
#print("Hasta", (until_date))
print(suma)

README

Fantástico trabajo el vuestro. Sólo pediros una cosa, cuando tengáis un momento actualizad README para incluir lo que bien indicáis en este post: https://community.home-assistant.io/t/iberdrola-distribucion-i-de-energy-monitor-beta-custom-component-released/326602/38

Facilitará la implementación. Yo me lo acabo de bajar de HACS integrando tu repositorio como nuevo repositorio de Integración y ahora voy a configurar configuration.yaml añadiendo lo que indicas en el post.

Si surge cualquier cosa te aviso con una nueva issue.

Si necesitas cualquier ayuda estoy disponible, mis conocimientos de programación son limitados, pero lo que pueda te ayudo.

De nuevo, fantástico trabajo. ¡Muchas gracias!

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.