Comments (21)
Hi, same problem
from repsolluzygas.
In my case, if the error is the bill, in a few days will be solved :)
from repsolluzygas.
Mismo error por aquí.
Tampoco tengo la factura
from repsolluzygas.
Si el problema es que no existen facturas se puede solucionar editando el fichero repsol_api.py en la línea 183:
if len(invoices) > 0: #añadir esta línea
data['last_invoice_amount'] = invoices[0]['amount']
data['last_invoice_paid'] = invoices[0]['status'] == 'PAID'
from repsolluzygas.
Hi,
I have this lines on my version:
if len(contracts) > 0:
invoices = self.get_invoices(uid, signature, tstamp, contracts['house_id'], contract['contract_id'])
data['last_invoice_amount'] = invoices[0]['amount']
data['last_invoice_paid'] = invoices[0]['status'] == 'PAID'
Ah, change contracts for invoices
from repsolluzygas.
FUNCIONA
WORKS
Ups. it turns out that I already have an invoice, so my test is worthless
from repsolluzygas.
sigue sin funcionar aun cambiando lo que dice @robertoclg
yo tampoco tengo la factura
me salen estos errores:
Logger: homeassistant.components.sensor
Source: custom_components/repsolluzygas/sensor.py:61
Integration: Sensor (documentation, issues)
First occurred: 11:19:27 (2 occurrences)
Last logged: 11:19:27
Error adding entities for domain sensor with platform repsolluzygas
Error while setting up repsolluzygas platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 782, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/repsolluzygas/sensor.py", line 61, in state
data = self.client.data.get(self.variable, 0)
AttributeError: 'RepsolLuzYGasSensor' object has no attribute 'data'
Logger: homeassistant.components.sensor
Source: custom_components/repsolluzygas/repsol_api.py:181
Integration: Sensor (documentation, issues)
First occurred: 11:19:25 (1 occurrences)
Last logged: 11:19:25
repsolluzygas: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 718, 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/repsolluzygas/sensor.py", line 73, in update
self.client.update()
File "/config/custom_components/repsolluzygas/repsol_api.py", line 181, in update
if len(invoices) > 0:
UnboundLocalError: local variable 'invoices' referenced before assignment
from repsolluzygas.
ok funciona con el fork de @mmasipgu
from repsolluzygas.
ok funciona con el fork de @mmasipgu
Ok, verifica no vaya a ser que ya tengas una factura, como me ha pasado a mi
from repsolluzygas.
Ok, verifica no vaya a ser que ya tengas una factura, como me ha pasado a mi
nop, no tengo todavía!
entré el último día :D
from repsolluzygas.
Buenos días , en mi fork he quitado el sensor de última factura, por lo que los que somos nuevos clientes y no tenemos ninguna funciona sin problema.
from repsolluzygas.
Buenos dias @mmasipgu y todos.
Si quieres, te doy acceso ADMIN a este repo y te encargas de mantenerlo.
Yo no tengo mas Repsol asi que no puedo ayudarte
from repsolluzygas.
Por mí no hay problema , todo lo que sea por colaborar ;)
from repsolluzygas.
Por mí no hay problema , todo lo que sea por colaborar ;)
Buenas, puede ser que el fork, no muestre el gasto medio diario, ni el Repsol Total Days, cuando en la web, si que salen
from repsolluzygas.
Aquí todos los valores en mi integración a día de hoy
from repsolluzygas.
Pero en tu caso ya tienes una factura?
from repsolluzygas.
from repsolluzygas.
No, aún no , eso en mi fork es indiferente.
from repsolluzygas.
He puesto tu fork... voy a desinstalarlo y volverlo a poner, a ver si se me ha mezclado ;(
from repsolluzygas.
Bueno, algo pasa con mi cuenta, he probado la de mi madre y salen todos los datos... A ver si se soluciona ;(
Gracias por el curro
from repsolluzygas.
Yo me estoy volviendo loco con la configuración, hace varias semanas me descargue la versión y la instalé manualmente en la carpeta <custom_components>, he añadido el texto de configuración dentro del Configuration.yaml con las contraseñas y usuario entre <>, pero no acabo de avanzar nada más, no hay nada dentro de la sección de componentes ni tampoco dentro de las integraciones. No se como continuar la configuración.
Alguna ayuda? Muchas gracias!
from repsolluzygas.
Related Issues (16)
- Adapt sensors to use in HA Energy Module. HOT 1
- Do user & pw have to be into brackets? HOT 11
- Version 1.1. Error in python if you don't have any invoice. HOT 2
- Grahps
- Blocked - Acceso bloqueado HOT 1
- no bills HOT 6
- Include Long Term Statistics on sensor.repsol_consumption
- After change contract holder it's not working HOT 1
- Error ¿changes in the api ? HOT 9
- No funciona en HA 2024 HOT 6
- Async and Configflow
- Unable to install through HACS HOT 2
- Invoice List HOT 1
- error despues de instalar 2021.12.1 HOT 4
- Total Days and Last Invoice Amount Error + Gas Sensor Enquiry HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repsolluzygas.