PiotrMachowski / Home-Assistant-custom-components-Tauron-AMIplus

This sensor uses unofficial API to get energy usage and generation data from https://elicznik.tauron-dystrybucja.pl.
MIT License
128 stars 34 forks source link

Integration doesn't work with tariff G11 #127

Closed PiotrMachowski closed 1 year ago

PiotrMachowski commented 1 year ago
Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:137
First occurred: 09:11:16 (4 occurrences)
Last logged: 11:37:12

Error doing job: Exception in callback _chain_future.<locals>._set_state(<Future pendi...tasks.py:475]>, <Future at 0x...StopIteration>) at /usr/local/lib/python3.10/asyncio/futures.py:379
Error doing job: Exception in callback _chain_future.<locals>._set_state(<Future pendi...ask_wakeup()]>, <Future at 0x...StopIteration>) at /usr/local/lib/python3.10/asyncio/futures.py:379
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.10/asyncio/futures.py", line 381, in _set_state
    _copy_future_state(other, future)
  File "/usr/local/lib/python3.10/asyncio/futures.py", line 357, in _copy_future_state
    dest.set_exception(_convert_future_exc(exception))
TypeError: StopIteration interacts badly with generators and cannot be raised into a Future
PiotrMachowski commented 1 year ago

Fixed in v2.4.9

prezes210 commented 1 year ago

Śmiga jak złoto na G11

pkordal commented 1 year ago

U mnie standardowe sensory działają, ale nawet bez zaznaczenia 12 miesięcznego zakresu i konfigurowanego nie wpadają wartości bilansowania dziennego. Nawet po godzinie.

Może poniższy błąd ma z tym związek?

IMG_1309

Ten błąd pochodzi z niestandardowej integracji.

Logger: custom_components.tauron_amiplus.coordinator
Source: custom_components/tauron_amiplus/sensor.py:233 
Integration: Tauron AMIplus (documentation, issues) 
First occurred: 18:22:53 (2 occurrences) 
Last logged: 20:11:14

Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <custom_components.tauron_amiplus.coordinator.TauronAmiplusUpdateCoordinator object at 0x7f6b21dc30>>
Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <custom_components.tauron_amiplus.coordinator.TauronAmiplusUpdateCoordinator object at 0x7f6838a410>>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 111, in _handle_timer_finish
    await task
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 226, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 341, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 142, in async_update_listeners
    update_callback()
  File "/config/custom_components/tauron_amiplus/sensor.py", line 154, in _handle_coordinator_update
    self.update_balanced_data(data.balance_daily, data.tariff)
  File "/config/custom_components/tauron_amiplus/sensor.py", line 193, in update_balanced_data
    balance, sum_consumption, sum_generation, zones, data_range = TauronAmiplusSensor.get_balanced_data(con, gen)
  File "/config/custom_components/tauron_amiplus/sensor.py", line 233, in get_balanced_data
    zone = zone_names[consumption["Zone"]]
KeyError: 'cała doba'
mmarcines commented 1 year ago

U mnie też brakuje wartości dla kilku encji. Minęło już jakieś 20 minut. Poczekam do jutra. Niestety na długi weekend nie zabrałem laptopa a z telefonu nie za bardzo mam ja logi pobrac.

niedz., 30 kwi 2023, 20:22 użytkownik Paweł Kordal @.***> napisał:

U mnie standardowe sensory działają, ale nawet bez zaznaczenia 12 miesięcznego zakresu i konfigurowanego nie wpadają wartości bilansowania dziennego. Nawet po godzinie.

Może poniższy błąd ma z tym związek?

Ten błąd pochodzi z niestandardowej integracji.

Logger: custom_components.tauron_amiplus.coordinator Source: custom_components/tauron_amiplus/sensor.py:233 Integration: Tauron AMIplus (documentation, issues) First occurred: 18:22:53 (2 occurrences) Last logged: 20:11:14

Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <custom_components.tauron_amiplus.coordinator.TauronAmiplusUpdateCoordinator object at 0x7f6b21dc30>> Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <custom_components.tauron_amiplus.coordinator.TauronAmiplusUpdateCoordinator object at 0x7f6838a410>> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 111, in _handle_timer_finish await task File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 226, in async_refresh await self._async_refresh(log_failures=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 341, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 142, in async_update_listeners update_callback() File "/config/custom_components/tauron_amiplus/sensor.py", line 154, in _handle_coordinator_update self.update_balanced_data(data.balance_daily, data.tariff) File "/config/custom_components/tauron_amiplus/sensor.py", line 193, in update_balanced_data balance, sum_consumption, sum_generation, zones, data_range = TauronAmiplusSensor.get_balanced_data(con, gen) File "/config/custom_components/tauron_amiplus/sensor.py", line 233, in get_balanced_data zone = zone_names[consumption["Zone"]] KeyError: 'cała doba'

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1529105645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR7CMDZE7I7H3OHOEI3ADCLXD2UV7ANCNFSM6AAAAAAXRAFRM4 . You are receiving this because you are subscribed to this thread.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1529105645 @github.com>

PiotrMachowski commented 1 year ago

@PiotrMachowski dla jakich?

mmarcines commented 1 year ago

Configurable balance Configurable energy consumption Configurable energy generation Current consumption reading Current generation reading Daily balance Last 12 months Monthly balance

PiotrMachowski commented 1 year ago

Issue na dane zbalansowane: https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/129

PiotrMachowski commented 1 year ago

Iiiii naprawione w v2.4.10

mmarcines commented 1 year ago

Hejo,

v2.4.10 wszystkie encje się mi wczytaly za wyjątkiem tych dwóch Current generation reading Current consumption reading

Ktoś ma tak samo?

pon., 1 maj 2023, 02:39 użytkownik Piotr Machowski @.***> napisał:

Iiiii naprawione w v2.4.10 https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/releases/tag/v2.4.10

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1529201045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR7CMD6XAQYNE4P7BXU6BTLXD4A2PANCNFSM6AAAAAAXRAFRM4 . You are receiving this because you commented.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1529201045 @github.com>

pkordal commented 1 year ago

Ogromne dzięki @PiotrMachowski

krzyzak44 commented 1 year ago

Dzień dobry, a ja się bawiłem, bawiłem i... mam bana na 8h :)

pon., 1 maj 2023, 07:43 użytkownik mmarcines @.***> napisał:

Hejo,

v2.4.10 wszystkie encje się mi wczytaly za wyjątkiem tych dwóch Current generation reading Current consumption reading

Ktoś ma tak samo?

pon., 1 maj 2023, 02:39 użytkownik Piotr Machowski @.***> napisał:

Iiiii naprawione w v2.4.10 < https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/releases/tag/v2.4.10

— Reply to this email directly, view it on GitHub < https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1529201045 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AR7CMD6XAQYNE4P7BXU6BTLXD4A2PANCNFSM6AAAAAAXRAFRM4

. You are receiving this because you commented.Message ID:

<PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1529201045 @github.com>

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1529374245, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQAXVYWDX4ECIR7YGYQOYLXD5EPJANCNFSM6AAAAAAXRAFRM4 . You are receiving this because you are subscribed to this thread.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1529374245 @github.com>

djg-io commented 1 year ago

Przepraszam ale nadal nie rozumiem, które encje podać w dashboard Energia. Które dla Produkcja do sieci a które Produkcja do sieci? Wielkie dzięki za pomoc. Jak podam Daily energy consumption to mam tylko jedno wskazanie na dzień, balanced consumption uzupełnia dla każdej godziny.

PiotrMachowski commented 1 year ago

Screenshot_20230502_121954_Chrome

@djg-io musisz wybrać z listy pozycje "tauron_importer" zamiast encji

djg-io commented 1 year ago

Nie mam takiej pozycji na liście:( Mam tylko encje zaczynające się Tauron AMIplus nr punku poboru itd.

wt., 2 maj 2023 o 12:18 Piotr Machowski @.***> napisał(a):

@djg-io https://github.com/djg-io musisz wybrać z listy pozycje "tauron_importer" zamiast encji

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1531225153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEWBZFCXIQFOFJGFHIIJELXEDNOHANCNFSM6AAAAAAXRAFRM4 . You are receiving this because you were mentioned.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1531225153 @github.com>

PiotrMachowski commented 1 year ago

@djg-io szukaj dalej, muszą być. Jeśli by nie było, to by encji też nie było. Jeśli będziesz miał dalej problemy, to załóż osobną dyskusję, żeby tutaj nie robić offtopa

PiotrMachowski commented 1 year ago

@mmarcines a zobacz, czy w eLiczniku masz odczyty

mmarcines commented 1 year ago

Faktycznie od 21 kwietnia dla każdego dnia mam brak danych w elicznik dla Licznik energii oddanej i Licznik energii pobranej.

Ktoś ma jeszcze podobnie czy jestem osamotniony?

Marcin

śr., 3 maj 2023, 00:04 użytkownik Piotr Machowski @.***> napisał:

@mmarcines https://github.com/mmarcines a zobacz, czy w eLiczniku masz odczyty

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127#issuecomment-1532213585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR7CMD4BQCFVHXYVRSHR7SLXEGAHDANCNFSM6AAAAAAXRAFRM4 . You are receiving this because you were mentioned.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Tauron-AMIplus/issues/127/1532213585 @github.com>