Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyang17 committed Jan 15, 2024
1 parent 1cc61d5 commit 18c4092
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Importa en el panel de energía los consumos y costes de ufd.es y ree.es. Calcul
![Bills](https://github.com/yinyang17/pvpc_energy/raw/main/assets/bills.png)

## Imstalación y configuración
Necesitas estar registrado en https://www.ufd.es.
Necesitas estar registrado en https://www.ufd.es y tener desactivado el inicio de sesión en dos pasos.
Después de reiniciar y añadir la integración, deberás indicar las credenciales de UFD y el número de facturas a mostrar en la Markdown Card.
![Config credentials](https://github.com/yinyang17/pvpc_energy/raw/main/assets/config-credentials.png)![Config bills](https://github.com/yinyang17/pvpc_energy/raw/main/assets/config-bills-number.png)
Los datos de energía y coste (energy_data.csv) y los de las facturas (billing_periods.csv) se almacenan en el directorio "user_files". Descárgalos antes de desinstalar la integración si la vas a reinstalar más adelante.
Expand All @@ -22,9 +22,11 @@ Tardará unos cuantos minutos en obtener todos los datos disponibles (alrededor
* Estadísticas
* pvpc_energy:consumption (PVPC: Consumo): Consumos horarios de electricidad
* pvpc_energy:cost (PVPC: Coste): Costes horarios de electricidad
* States
* Estados
* pvpc_energy.current_bill: Coste de la factura en curso. En el atributo "detail" se almacena un texto formateado con markdown con los datos de las últimas facturas para mostrar con Markdown Card.

Tras la descarga inicial se realiza una actualización diaria a las 7:05 para descargar los nuevos datos. Los datos de consumo en UFD suelen tener un par de días de retraso.

## Paneles
Añade el consumo de la red al panel de energía:
* Elige un sensor que mida el consumo de la red en GJ, kWh, MJ, MWh, Wh.: "PVPC: Consumo"
Expand All @@ -36,3 +38,7 @@ Añade a Lovelace un Markdown card para mostrar los datos de las últimas factur
{{ state_attr('pvpc_energy.current_bill', 'detail')}}
```
![Markdown card configuration](https://github.com/yinyang17/pvpc_energy/raw/main/assets/markdown-card-config.png)

## Servicios
* import_energy_data: Se ejecuta diariamente a las 7:05 para actualizar los datos de consumo, coste y facturas
* reprocess_statistics: Recrea las estadísticas a partir de los datos de consumo. Utilizar en caso de que se muestre algún dato incorrecto (consumos negativos, ...)
Binary file modified assets/config-bills-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/config-credentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/energy-daily.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/energy-monthly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/grid-consumption-configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/markdown-card-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion custom_components/pvpc_energy/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"step": {
"user": {
"title": "UFD",
"description": "Enter de UFD credentials and data",
"description": "Enter de UFD credentials and data. You need to have two-step login disabled",
"data": {
"ufd_login": "UFD login",
"ufd_password": "UFD password",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pvpc_energy/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"step": {
"user": {
"title": "UFD",
"description": "Enter de UFD credentials and data",
"description": "Enter de UFD credentials and data. You need to have two-step login disabled",
"data": {
"ufd_login": "UFD login",
"ufd_password": "UFD password"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pvpc_energy/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"step": {
"user": {
"title": "UFD",
"description": "Introduce las credenciales de UFD",
"description": "Introduce las credenciales de UFD. Es necesario tener desactivado el inicio de sesión en dos pasos",
"data": {
"ufd_login": "UFD login",
"ufd_password": "UFD password"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pvpc_energy/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"step": {
"user": {
"title": "UFD",
"description": "Inserir os dados do UFD",
"description": "Inserir os dados do UFD. Você precisa ter o login em duas etapas desativado",
"data": {
"ufd_login": "Utilizado UFD",
"ufd_password": "Senha UFD"
Expand Down

0 comments on commit 18c4092

Please sign in to comment.