ad-ha / ide_api Goto Github PK
View Code? Open in Web Editor NEWi-DE Energy Monitor for Home Assistant
License: GNU General Public License v3.0
i-DE Energy Monitor for Home Assistant
License: GNU General Public License v3.0
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?
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!
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'
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?
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.
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
Currently the sensor only shows the meter readings. Would be good to include further sensors or attributes:
Related with #18
Add possibility to have readings for multiple contracts. Should support multi-entries to configuration and multi-sensors.
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
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
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)
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.