Git Product home page Git Product logo

Comments (44)

azogue avatar azogue commented on July 18, 2024 3

Hi there 👋

Sorry about the lack of feedback these last months 🙏

I'm finally going to update the library to support the ESIOS API token, opening the access for more price sensors, like the inyection price, the gas-tax, and the omie price.

In the next few days I expect to:

  1. Make changes in this external library, to solve open issues, and implement the token-access for multiple sensors, also refactoring the PVPCData object from here, for better integration with the DataUpdateCoordinator from Home Assistant
  2. Adapt the Home Assistant integration to use the new version, ask for an ESIOS token, and declare more price sensors, making them work with the HA system to enable/disable entities from the integration view 🤩
  3. Make a PR in HA-core with the changes
  4. Make a PR in HA-docs with the explanation of the ESIOS token usage and how to get one.

When (1) and (2) are done, I'll try to upload a 'custom_component' to be able to beta-test it, while the review-and-publish process is being done.

As the ha-esios custom component which ~already works with the token (and people tend to mismatch with the official integration), I suspect it won't work with the token header change announced by ESIOS for the 17th, unless manually edited

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024 2

I know is not a super clean way to do it but...

You can use the "default" token: token="[email protected]"

And it will work. I've used it until I've got my own token while developing my own solution (thousands of requests as I'm a bit slow and I need to check every 10 seconds).

from aiopvpc.

azogue avatar azogue commented on July 18, 2024 2

Hi there 👋 @jcsogo, @jlopez77 @albetaCOM @EddieKnight1 @paniagualopez @danimart1991 @Albruaje

At last, I had some time to focus a little on this problem, and I did a proof of concept with a new integration using the ESIOS auth token to retrieve not only the PVPC, but also the grid injection prices and more indicators, like CO2 intensity.

I don't know yet if I'm going to split the actual library (this aiopvpc) or the HA Core integration (pvpc_hourly_pricing), or try to adapt it to use the new code if a token is provided in the config flow.

And I also don't know when I will have another time to continue working on this, maybe a week, maybe a month :(

But in the meantime, you could try it right now (and provide some feedback 😜), so I'm leaving it here for you 👍

esios.zip

Proceed as always and unzip the file in config/custom_components to create a new esios folder with the new integration (no need to remove/disable the current one). Then restart HA and add it by looking for 'Esios'.

This one requires a valid esios token, won't work other way.

-> Some screenshots for configuration:

ha-esios-setup-1

ha-esios-setup-2

-> How it looks:

ha-esios-devices

ha-esios-injection-sensor

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024 2

from aiopvpc.

azogue avatar azogue commented on July 18, 2024 1

Now I only need the time to do it 😅

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024 1

use your superpowers as always.

Last time you said "it will take time" was with the tariff change on JUN1 and it took 40 minutes.

from aiopvpc.

azogue avatar azogue commented on July 18, 2024 1

@EddieKnight1,

Error occurred loading configuration flow for integration esios: No module named 'zoneinfo'
I'm using python 3.8.12 at the moment, unable to upgrade yet to python 3.9.

That's the reason, zoneinfo is an internal module from python>=3.9

If you cannot upgrade, then install backports.zoneinfo 😜

If you are using a custom python environment to run HA, just run pip install backports.zoneinfo on it.

But, if you're using some dockerized HomeAssistant setup (different from the one in HA OS), and accessing it is complicated, I imagine it could also work by setting that dependency in the manifest.json file of the custom component, setting "requirements": ["backports.zoneinfo"],

BTW, Python3.8 is going to be deprecated soon in HA, hurry up with that upgrade, or move to HA OS 😊

BTW(2), the esios custom component requires a quite modern HA version to work with (2021.10/11 at least); it won't work other way :(

from aiopvpc.

enredador avatar enredador commented on July 18, 2024 1

I managed to solve it, changing two lines of sensor.py:

Adding:
from homeassistant.helpers.device_registry import DeviceEntryType
And in __init__ changing entry_type="service", to entry_type=DeviceEntryType.SERVICE,

So I can keep using this "token and injection price" version until this version is integrated in the core integration.

from aiopvpc.

barto64 avatar barto64 commented on July 18, 2024 1

Great news and great thanks

from aiopvpc.

azogue avatar azogue commented on July 18, 2024 1

✨ The new version v4 has support for this new sensor, closing this issue.

For beta-testing it, follow instructions in #47 (comment)

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

Hi @albetaCOM,

that data is available in https://api.esios.ree.es/indicators/1739, but needs an access token
from ESIOS
(HTTP Token: Access denied. for the public)

This library was intended to support a Home Assistant Integration, by accessing only public files :(

If you know where to access that information without scraping the Analysis webpage (like this link: https://api.esios.ree.es/archives/70/download, used for the PVPC prices), I could try to implement this feature :)

Same goes for the prices of the new tariffs to come in the next month... I would adapt the library if I found how to read the new values🥺)

BTW, if you have an ESIOS token, you can access the prices with:

curl "https://api.esios.ree.es/indicators/1739" \
     -H 'Authorization: Token token=<your-token-here>'

Output for today is:

{
  "indicator": {
    "name": "Precio de la energía excedentaria del autoconsumo para el mecanismo de compensación simplificada (PVPC)",
    "short_name": "Precio de la energía excedentaria",
    "id": 1739,
    "composited": false,
    "step_type": "linear",
    "disaggregated": false,
    "magnitud": [
      {
        "name": "Precio",
        "id": 23
      }
    ],
    "tiempo": [
      {
        "name": "Hora",
        "id": 4
      }
    ],
    "geos": [
      {
        "geo_id": 3,
        "geo_name": "España"
      }
    ],
    "values_updated_at": "2021-05-15T20:19:45.000+02:00",
    "values": [
      {
        "value": 42.04,
        "datetime": "2021-05-16T00:00:00.000+02:00",
        "datetime_utc": "2021-05-15T22:00:00Z",
        "tz_time": "2021-05-15T22:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 38.38,
        "datetime": "2021-05-16T01:00:00.000+02:00",
        "datetime_utc": "2021-05-15T23:00:00Z",
        "tz_time": "2021-05-15T23:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 36.42,
        "datetime": "2021-05-16T02:00:00.000+02:00",
        "datetime_utc": "2021-05-16T00:00:00Z",
        "tz_time": "2021-05-16T00:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 21.91,
        "datetime": "2021-05-16T03:00:00.000+02:00",
        "datetime_utc": "2021-05-16T01:00:00Z",
        "tz_time": "2021-05-16T01:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 21.73,
        "datetime": "2021-05-16T04:00:00.000+02:00",
        "datetime_utc": "2021-05-16T02:00:00Z",
        "tz_time": "2021-05-16T02:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 21.62,
        "datetime": "2021-05-16T05:00:00.000+02:00",
        "datetime_utc": "2021-05-16T03:00:00Z",
        "tz_time": "2021-05-16T03:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 21.91,
        "datetime": "2021-05-16T06:00:00.000+02:00",
        "datetime_utc": "2021-05-16T04:00:00Z",
        "tz_time": "2021-05-16T04:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 25.07,
        "datetime": "2021-05-16T07:00:00.000+02:00",
        "datetime_utc": "2021-05-16T05:00:00Z",
        "tz_time": "2021-05-16T05:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 31.11,
        "datetime": "2021-05-16T08:00:00.000+02:00",
        "datetime_utc": "2021-05-16T06:00:00Z",
        "tz_time": "2021-05-16T06:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 21.91,
        "datetime": "2021-05-16T09:00:00.000+02:00",
        "datetime_utc": "2021-05-16T07:00:00Z",
        "tz_time": "2021-05-16T07:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 18.78,
        "datetime": "2021-05-16T10:00:00.000+02:00",
        "datetime_utc": "2021-05-16T08:00:00Z",
        "tz_time": "2021-05-16T08:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 10.84,
        "datetime": "2021-05-16T11:00:00.000+02:00",
        "datetime_utc": "2021-05-16T09:00:00Z",
        "tz_time": "2021-05-16T09:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 9.83,
        "datetime": "2021-05-16T12:00:00.000+02:00",
        "datetime_utc": "2021-05-16T10:00:00Z",
        "tz_time": "2021-05-16T10:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 7.33,
        "datetime": "2021-05-16T13:00:00.000+02:00",
        "datetime_utc": "2021-05-16T11:00:00Z",
        "tz_time": "2021-05-16T11:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 1.78,
        "datetime": "2021-05-16T14:00:00.000+02:00",
        "datetime_utc": "2021-05-16T12:00:00Z",
        "tz_time": "2021-05-16T12:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 0.81,
        "datetime": "2021-05-16T15:00:00.000+02:00",
        "datetime_utc": "2021-05-16T13:00:00Z",
        "tz_time": "2021-05-16T13:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 1.78,
        "datetime": "2021-05-16T16:00:00.000+02:00",
        "datetime_utc": "2021-05-16T14:00:00Z",
        "tz_time": "2021-05-16T14:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 1.78,
        "datetime": "2021-05-16T17:00:00.000+02:00",
        "datetime_utc": "2021-05-16T15:00:00Z",
        "tz_time": "2021-05-16T15:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 4.86,
        "datetime": "2021-05-16T18:00:00.000+02:00",
        "datetime_utc": "2021-05-16T16:00:00Z",
        "tz_time": "2021-05-16T16:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 35.77,
        "datetime": "2021-05-16T19:00:00.000+02:00",
        "datetime_utc": "2021-05-16T17:00:00Z",
        "tz_time": "2021-05-16T17:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 53.24,
        "datetime": "2021-05-16T20:00:00.000+02:00",
        "datetime_utc": "2021-05-16T18:00:00Z",
        "tz_time": "2021-05-16T18:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 70.82,
        "datetime": "2021-05-16T21:00:00.000+02:00",
        "datetime_utc": "2021-05-16T19:00:00Z",
        "tz_time": "2021-05-16T19:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 70.34,
        "datetime": "2021-05-16T22:00:00.000+02:00",
        "datetime_utc": "2021-05-16T20:00:00Z",
        "tz_time": "2021-05-16T20:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      },
      {
        "value": 64.88,
        "datetime": "2021-05-16T23:00:00.000+02:00",
        "datetime_utc": "2021-05-16T21:00:00Z",
        "tz_time": "2021-05-16T21:00:00.000Z",
        "geo_id": 3,
        "geo_name": "España"
      }
    ]
  }
}

from aiopvpc.

azogue avatar azogue commented on July 18, 2024
curl "https://api.esios.ree.es/indicators/1739" -H 'Authorization: Token token="[email protected]"'

it works 🤣😂🙈🎪

is that documented anywhere??

(IMHO, that kind of GET endpoints should not require authorization, same as the one with the PVPC prices, but that token make me 🤪)

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024

Na, of course it's not documented. I've been watching the webpage doing it's requests with this 'universal' token.

I completely agree with you that it should not require any kind of token.

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

I've been watching the webpage doing it's requests with this 'universal' token.

Para poder utilizar esta API deberán solicitar un token personal enviando un correo a [email protected], ya que el token público que usa la propia página web cambia cada cierto tiempo.

🤣🤣🤡

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024

oh, what a shame.

I don't really believe they change the Token, but better safe than sorry.

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

If their own frontend does that, maybe it's not that bad idea to implement it here :)

The custom token could be optional (in the config flow in HA), same as these injection prices, and default to this special one if injection prices are enabled without token...

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024

Yep, that sounds fantastic.
By configuration users can add their own token but if it's not provided, you can default to the universal one

from aiopvpc.

jcsogo avatar jcsogo commented on July 18, 2024

This is a much more important feature with the new Energy panel in HA, as the calculations there should be matching the price for the energy returned to the grid. Do you plan to have some time to work on this in the near term? I can try to provide something but my coding skills are rusty - so I don't mind to spend time on this, but I won't if you're planning to do it soon enough.

Thanks for the library and the HA integration.

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024

A job well done deserves also being paid for it. Open Source doesn't mean "free for all" some times. If you manage to get some time to develop the necessary items for token request and energy injected, I'm up for sending you a "gift" as a reward. You say what you need and I'll provide it (if it doesn't go out of my budget).

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

BTW, @danimart1991, in this one, when the next-day prices are available, the ratios and other attributes are duplicated, fixing #25, but also requires some changes for the lovelace card 😅

You'll see the new behavior this afternoon 🙈

from aiopvpc.

danimart1991 avatar danimart1991 commented on July 18, 2024

BTW, @danimart1991, in this one, when the next-day prices are available, the ratios and other attributes are duplicated, fixing #25, but also requires some changes for the lovelace card 😅

You'll see the new behavior this afternoon 🙈

I wait then for the update to avoid breaking changes with common users. Thanks for all your work 👍🏻

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

~~ but also requires some changes for the lovelace card~~

It looks like it's working perfectly fine 🤩

esios-2-day-values-lovelace-card

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024

Hi,

After downloading esiso zip and unpacking con custom_components, followed by adding the integration, I get a message "Configuration flow could not be loaded". The log reports this:

Logger: homeassistant.config_entries
Source: config_entries.py:711
First occurred: 20:10:00 (1 occurrences)
Last logged: 20:10:00

Error occurred loading configuration flow for integration esios: No module named 'zoneinfo'

I'm using python 3.8.12 at the moment, unable to upgrade yet to python 3.9.

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024

@EddieKnight1,

Error occurred loading configuration flow for integration esios: No module named 'zoneinfo'
I'm using python 3.8.12 at the moment, unable to upgrade yet to python 3.9.

That's the reason, zoneinfo is an internal module from python>=3.9

If you cannot upgrade, then install backports.zoneinfo 😜

If you are using a custom python environment to run HA, just run pip install backports.zoneinfo on it.

But, if you're using some dockerized HomeAssistant setup (different from the one in HA OS), and accessing it is complicated, I imagine it could also work by setting that dependency in the manifest.json file of the custom component, setting "requirements": ["backports.zoneinfo"],

BTW, Python3.8 is going to be deprecated soon in HA, hurry up with that upgrade, or move to HA OS 😊

BTW(2), the esios custom component requires a quite modern HA version to work with (2021.10/11 at least); it won't work other way :(

Thanks!

I've tried several ways but finally followed the plugin developer in TrueNAS for my Jail update. Python 3.9 installed and component installed. Waiting now for the personal API key.

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

@EddieKnight1 ,

I've tried several ways but finally followed the plugin developer in TrueNAS for my Jail update. Python 3.9 installed and component installed. Waiting now for the personal API key.

Sorry about the mess and lost time, it was entirely my fault 🙈🙏

I made an error in the code 🐛, making it impossible to run the component under python3.8.

And the saddest thing about that is that I discovered it by chance, just because yesterday I literally copied some of the new code over the old one to quick-fix an issue in the current HA integration, about sensor attributes using 48h prices in the evening...
And that caused a failed pipeline in the PR in HA when running tests with python 3.8 😱

I'll try to re-publish the esios.zip as soon as possible, so it can work with py38, if some other user falls in the same scenario...

Python 3.9 installed and component installed.

Best thing you could do 👍, and again, sorry about the miss-guidance 🥺

Waiting now for the personal API key.

BTW, is that taking too long? I remember that request was relatively quick, like < 3h. Is it slower now?

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024

@EddieKnight1 ,

I've tried several ways but finally followed the plugin developer in TrueNAS for my Jail update. Python 3.9 installed and component installed. Waiting now for the personal API key.

Sorry about the mess and lost time, it was entirely my fault 🙈🙏

I made an error in the code 🐛, making it impossible to run the component under python3.8.

And the saddest thing about that is that I discovered it by chance, just because yesterday I literally copied some of the new code over the old one to quick-fix an issue in the current HA integration, about sensor attributes using 48h prices in the evening... And that caused a failed pipeline in the PR in HA when running tests with python 3.8 😱

I'll try to re-publish the esios.zip as soon as possible, so it can work with py38, if some other user falls in the same scenario...

Python 3.9 installed and component installed.

Best thing you could do 👍, and again, sorry about the miss-guidance 🥺

Waiting now for the personal API key.

BTW, is that taking too long? I remember that request was relatively quick, like < 3h. Is it slower now?

No worries about the issues. Its part of the test/UAT. Good thing is we've found the issue and got a workaround and solution.

Regarding the key, I sent the request out of working hours so probably will get delayed til Monday. I'll bring feedback next week.

from aiopvpc.

EddieKnight1 avatar EddieKnight1 commented on July 18, 2024

@EddieKnight1 ,

I've tried several ways but finally followed the plugin developer in TrueNAS for my Jail update. Python 3.9 installed and component installed. Waiting now for the personal API key.

Sorry about the mess and lost time, it was entirely my fault 🙈🙏
I made an error in the code 🐛, making it impossible to run the component under python3.8.
And the saddest thing about that is that I discovered it by chance, just because yesterday I literally copied some of the new code over the old one to quick-fix an issue in the current HA integration, about sensor attributes using 48h prices in the evening... And that caused a failed pipeline in the PR in HA when running tests with python 3.8 😱
I'll try to re-publish the esios.zip as soon as possible, so it can work with py38, if some other user falls in the same scenario...

Python 3.9 installed and component installed.

Best thing you could do 👍, and again, sorry about the miss-guidance 🥺

Waiting now for the personal API key.

BTW, is that taking too long? I remember that request was relatively quick, like < 3h. Is it slower now?

No worries about the issues. Its part of the test/UAT. Good thing is we've found the issue and got a workaround and solution.

Regarding the key, I sent the request out of working hours so probably will get delayed til Monday. I'll bring feedback next week.

API key received and integration configured. The Energy setting in HA is also capturing the price/hour for the surplus now.

What a good job @azogue !

from aiopvpc.

jlopez77 avatar jlopez77 commented on July 18, 2024

I'm a bit late.

It works perfect.

from aiopvpc.

ldsmovil avatar ldsmovil commented on July 18, 2024

Perfect. Could be added to next core update?

from aiopvpc.

jmmateos avatar jmmateos commented on July 18, 2024

How long does it take to send the token?

from aiopvpc.

foglietti avatar foglietti commented on July 18, 2024

How long does it take to send the token?

I have requested the token yesterday at 20:07 and received it 30 minutes ago.
But I have read that someone received it in 10 minutes. I suppose it depends on the time of the day they receive the e-mail.

from aiopvpc.

cyberdie avatar cyberdie commented on July 18, 2024

Tested and working as expected. Thanks!

from aiopvpc.

enredador avatar enredador commented on July 18, 2024

Hello. I have been using the esios.zip custom_component with a personal token. It works fantastic! However, since 2021.12.* the log reports some things upon setting up:
2021-12-21 18:59:31 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that uses str for device registry entry_type. This is deprecated and will stop wor king in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue. Stack (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/src/homeassistant/homeassistant/__main__.py", line 331, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 318, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 121, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 629, in run_until_complete self.run_forever() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 596, in run_forever self._run_once() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once handle._run() File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 500, in _async_add_entity device = device_registry.async_get_or_create(**processed_dev_info) # type: ignore[arg-type] File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 360, in async_get_or_create report( # type: ignore[unreachable] File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 74, in report _LOGGER.warning(msg, stack_info=True) Stack (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/src/homeassistant/homeassistant/__main__.py", line 331, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 318, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 121, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 629, in run_until_complete self.run_forever() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 596, in run_forever self._run_once() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once handle._run() File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 500, in _async_add_entity device = device_registry.async_get_or_create(**processed_dev_info) # type: ignore[arg-type] File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 360, in async_get_or_create report( # type: ignore[unreachable] File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 74, in report _LOGGER.warning(msg, stack_info=True) 2021-12-21 18:59:31 WARNING (MainThread) [custom_components.esios.sensor] Setup of ESIOS PVPC (sensor.esios_pvpc) finished

This is recorded twice, I suppose once for each sensor (pvpc and grid_injection). I'm reluctant to it but, should I return to standard integration? I tried to a couple of weeks ago, but auth errors were still happening.

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

-> How it looks:

ha-esios-injection-sensor

excuse my ignorance. How can I add such a beautiful card? I've only added the sensors ...

from aiopvpc.

angeelalg avatar angeelalg commented on July 18, 2024

Buenas,
Soy nuevo en el mundo de Home Assistant y tengo instalación fotovoltaica en casa. Tengo la integración de precios PVPC y junto con el apartado de energía de HASS es una maravilla.
¿Cómo habría que hacer para poder obtener los precios de inyección?

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

Hola. Yo los obtengo de la integración de ESIOS API connector. La entidad es sensor.esios_grid_inyection_price.
Por cierto, ¿alguien me puede decir cómo obtener en el gráfico Energía los valores de potencia en vez de Energía?
Es decir, KW en vez de KWH. Tengo un shellyEM. Gracias de antemano.

from aiopvpc.

angeelalg avatar angeelalg commented on July 18, 2024

Buenas, llevo solo un par de días con HASS y también tengo un Shelly. Para hacer lo que dices de los consumos instantáneos he utilizado una Interfaz de HACS llamada "Tesla style solar power card" Te dejo como queda en el panel. https://github.com/reptilex/tesla-style-solar-power-card

No encuentro la Integración que me comentas, como se instala? Soy bastante nuevo aquí :(

image

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

Muchas gracias. Yo también llevo poco tiempo con esto. La integración es esta:
Captura de pantalla 2022-01-06 224413

from aiopvpc.

angeelalg avatar angeelalg commented on July 18, 2024

Me pone que no existe, la has instalado manualmente o algo por el estilo?

image

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

Que va, a mí me sigue saliendo. Tienes que pedir un token de acceso (también) a [email protected]

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

¿Qué versión de Home Assistant tienes? Yo tengo esta: Home Assistant 2021.12.8

from aiopvpc.

jose2403 avatar jose2403 commented on July 18, 2024

Puedes poner el código de la tarjeta "consumos instantáneos"?

from aiopvpc.

angeelalg avatar angeelalg commented on July 18, 2024

image

Por cierto, ya lo he instalado, había que hacerlo manualmente. Funciona estupendo.
image

from aiopvpc.

azogue avatar azogue commented on July 18, 2024

Hi!

For beta-testing it, follow instructions in #47 (comment)

I just published, as a new repository, the 'custom' version of the official component, to replace directly the one included in HA, with the pending changes since January 🐢

It is here: https://github.com/azogue/ha-pvpc-custom

And it is compatible with HACS, adding that link as 'custom repository' with 'category' "Integration" 👍

I recommend everyone to install this new custom component and remove all those components downloaded in some zip (including that 'esios').

from aiopvpc.

Related Issues (20)

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.