amargo / appdaemon-scripts

8 stars 4 forks source link

HA fura megjelenés #18

Closed pacman789 closed 1 year ago

pacman789 commented 1 year ago

Szia Amargo,

Először is köszi a munkádat. Működik a kód lefut hibamentesen, de sajnos elég fura dolgokat csinál, amit nem fejtettem meg.

Környezet: Docker: 24.0.4 HA: 2023.7.1 AppDaemon:4.4.2 (Python 3.10.11) MySQL: 8.0.33 Main Branch

Eon:
  module: read_eon
  class: ReadEon
  eon_user: '******'
  eon_password: '******'
  eon_report_id_180_280: '******'
  eon_report_id_pa_ma: '****** '
  offset: -4
  run_daily_at: '11:29'

  db_host: 'mysql_db'
  db_user: 'appdaemon'
  db_password: '******'
  db_name: 'hass'
  sensor_1_8_0: sensor.eon_1_8_0_energy_total
  sensor_2_8_0: sensor.eon_2_8_0_energy_total
  sensor_positive_a_energy: sensor.eon_positive_a_energy
  sensor_negative_a_energy: sensor.eon_negative_a_energy
  sensor_positive_a_power: sensor.eon_positive_a_power
  sensor_negative_a_power: sensor.eon_negative_a_power 

Riportok:

Screenshot 2023-07-17 at 11 40 24

Az EON oldalán szépen látszódnak az adatok 15 perces felbontásban.

Első futtatásnál kb 60 másodpercig fut a kód és a log alapján látszólag jól tölti át az adatokat. Viszont HA oldalon furán jelenik meg:

Screenshot 2023-07-17 at 13 57 38

A pirossal bekarikázott rész elején szépen emelkedik a görbe, ahogy 15 perces adatok alapján tölti fel, aztán egyszer csak megszűnik és nem töltődik be több adat, miközben a LOG-ban látszódik.

pl.: Július 14. nap a log szerint: (leszűrtem sensor.eon_1_8_0_energy_total-ra, hogy ne legyen végtelen a végére szúrtam be) A LOG-ban látszik, hogy kiolvasta az adatot a jó időpontra is, de ez HA-ban nem jelenik meg. Ami fura még: mindig megjelenik egy nagy letörés abban az időben, amikor futott a kód. Olyan, mintha pár másodpercre szúrná be a 4 nap adatait, mert a 4.nap minimumától a mostani maximumig megy és ha húzom rajta az egeret lehet látni, hogy szépen növekszik pár tizeddel. Belenagyítva abba a részbe:

Screenshot 2023-07-17 at 14 19 10

Illetve lehet, hogy ennek így kell működnie, de nekem a normalized_energy_usage.py rögtön elindul, ahogy elindul az AppDaemon vagy változtatok a konfigon. Elindul a beállított időpontban is, de úgy gondolom, hogy csak akkor kellene, nem?

És a végére a log fájl:

2023-07-17 13:26:06.626163 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.149, eon_time: 2023-07-14 00:00:00
--
2023-07-17 13:26:06.648935 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.194, eon_time: 2023-07-14 00:15:00
2023-07-17 13:26:06.673127 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.224, eon_time: 2023-07-14 00:30:00
2023-07-17 13:26:06.695279 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.259, eon_time: 2023-07-14 00:45:00
2023-07-17 13:26:06.718589 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.354, eon_time: 2023-07-14 01:00:00
2023-07-17 13:26:06.741705 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.383, eon_time: 2023-07-14 01:15:00
2023-07-17 13:26:06.766611 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.425, eon_time: 2023-07-14 01:30:00
2023-07-17 13:26:06.789587 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.459, eon_time: 2023-07-14 01:45:00
2023-07-17 13:26:06.811584 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.484, eon_time: 2023-07-14 02:00:00
2023-07-17 13:26:06.834349 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.603, eon_time: 2023-07-14 02:15:00
2023-07-17 13:26:06.858304 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.618, eon_time: 2023-07-14 02:30:00
2023-07-17 13:26:06.881081 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.671, eon_time: 2023-07-14 02:45:00
2023-07-17 13:26:06.903263 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.693, eon_time: 2023-07-14 03:00:00
2023-07-17 13:26:06.926507 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.725, eon_time: 2023-07-14 03:15:00
2023-07-17 13:26:06.948735 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.824, eon_time: 2023-07-14 03:30:00
2023-07-17 13:26:06.973033 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1666.927, eon_time: 2023-07-14 03:45:00
2023-07-17 13:26:06.997106 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.005, eon_time: 2023-07-14 04:00:00
2023-07-17 13:26:07.020099 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.103, eon_time: 2023-07-14 04:15:00
2023-07-17 13:26:07.042362 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.211, eon_time: 2023-07-14 04:30:00
2023-07-17 13:26:07.064111 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.284, eon_time: 2023-07-14 04:45:00
2023-07-17 13:26:07.085984 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.35, eon_time: 2023-07-14 05:00:00
2023-07-17 13:26:07.108660 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.368, eon_time: 2023-07-14 05:15:00
2023-07-17 13:26:07.130529 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.428, eon_time: 2023-07-14 05:30:00
2023-07-17 13:26:07.155026 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.436, eon_time: 2023-07-14 05:45:00
2023-07-17 13:26:07.177701 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.451, eon_time: 2023-07-14 06:00:00
2023-07-17 13:26:07.200921 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.502, eon_time: 2023-07-14 06:15:00
2023-07-17 13:26:07.224197 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.52, eon_time: 2023-07-14 06:30:00
2023-07-17 13:26:07.245812 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.521, eon_time: 2023-07-14 06:45:00
2023-07-17 13:26:07.268499 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.541, eon_time: 2023-07-14 07:00:00
2023-07-17 13:26:07.293382 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.588, eon_time: 2023-07-14 07:15:00
2023-07-17 13:26:07.316896 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.59, eon_time: 2023-07-14 07:30:00
2023-07-17 13:26:07.338929 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.59, eon_time: 2023-07-14 07:45:00
2023-07-17 13:26:07.362060 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.59, eon_time: 2023-07-14 08:00:00
2023-07-17 13:26:07.383127 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.591, eon_time: 2023-07-14 08:15:00
2023-07-17 13:26:07.408218 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.591, eon_time: 2023-07-14 08:30:00
2023-07-17 13:26:07.431716 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 08:45:00
2023-07-17 13:26:07.471089 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:00:00
2023-07-17 13:26:07.496274 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:15:00
2023-07-17 13:26:07.525088 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:30:00
2023-07-17 13:26:07.556723 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:45:00
2023-07-17 13:26:07.585891 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 10:00:00
2023-07-17 13:26:07.603250 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 10:15:00
2023-07-17 13:26:07.616258 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 10:30:00
2023-07-17 13:26:07.625659 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 10:45:00
2023-07-17 13:26:07.635893 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 11:00:00
2023-07-17 13:26:07.646454 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.721, eon_time: 2023-07-14 11:15:00
2023-07-17 13:26:07.656454 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.721, eon_time: 2023-07-14 11:30:00
2023-07-17 13:26:07.666749 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 11:45:00
2023-07-17 13:26:07.676972 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:00:00
2023-07-17 13:26:07.687046 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:15:00
2023-07-17 13:26:07.703018 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:30:00
2023-07-17 13:26:07.885458 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:45:00
2023-07-17 13:26:07.907924 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 13:00:00
2023-07-17 13:26:07.932122 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.746, eon_time: 2023-07-14 13:15:00
2023-07-17 13:26:07.944820 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.755, eon_time: 2023-07-14 13:30:00
2023-07-17 13:26:07.956215 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.755, eon_time: 2023-07-14 13:45:00
2023-07-17 13:26:07.967558 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.78, eon_time: 2023-07-14 14:00:00
2023-07-17 13:26:07.978838 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.995, eon_time: 2023-07-14 14:15:00
2023-07-17 13:26:07.996530 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.221, eon_time: 2023-07-14 14:30:00
2023-07-17 13:26:08.018124 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.498, eon_time: 2023-07-14 14:45:00
2023-07-17 13:26:08.042530 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.71, eon_time: 2023-07-14 15:00:00
2023-07-17 13:26:08.067910 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:15:00
2023-07-17 13:26:08.092040 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:30:00
2023-07-17 13:26:08.115681 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:45:00
2023-07-17 13:26:08.139398 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.816, eon_time: 2023-07-14 16:00:00
2023-07-17 13:26:08.165829 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.816, eon_time: 2023-07-14 16:15:00
2023-07-17 13:26:08.191268 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.818, eon_time: 2023-07-14 16:30:00
2023-07-17 13:26:08.215816 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.985, eon_time: 2023-07-14 16:45:00
2023-07-17 13:26:08.239254 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.991, eon_time: 2023-07-14 17:00:00
2023-07-17 13:26:08.263468 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.034, eon_time: 2023-07-14 17:15:00
2023-07-17 13:26:08.287253 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.135, eon_time: 2023-07-14 17:30:00
2023-07-17 13:26:08.311310 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.262, eon_time: 2023-07-14 17:45:00
2023-07-17 13:26:08.335279 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.457, eon_time: 2023-07-14 18:00:00
2023-07-17 13:26:08.363688 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.636, eon_time: 2023-07-14 18:15:00
2023-07-17 13:26:08.389157 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.799, eon_time: 2023-07-14 18:30:00
2023-07-17 13:26:08.414791 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.94, eon_time: 2023-07-14 18:45:00
2023-07-17 13:26:08.433543 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.984, eon_time: 2023-07-14 19:00:00
2023-07-17 13:26:08.460365 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.05, eon_time: 2023-07-14 19:15:00
2023-07-17 13:26:08.488737 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.457, eon_time: 2023-07-14 19:30:00
2023-07-17 13:26:08.515439 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.754, eon_time: 2023-07-14 19:45:00
2023-07-17 13:26:08.543552 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.204, eon_time: 2023-07-14 20:00:00
2023-07-17 13:26:08.573942 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.627, eon_time: 2023-07-14 20:15:00
2023-07-17 13:26:08.601876 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.792, eon_time: 2023-07-14 20:30:00
2023-07-17 13:26:08.629582 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.907, eon_time: 2023-07-14 20:45:00
2023-07-17 13:26:08.654280 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.01, eon_time: 2023-07-14 21:00:00
2023-07-17 13:26:08.680795 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.092, eon_time: 2023-07-14 21:15:00
2023-07-17 13:26:08.708485 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.147, eon_time: 2023-07-14 21:30:00
2023-07-17 13:26:08.735390 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.236, eon_time: 2023-07-14 21:45:00
2023-07-17 13:26:08.762396 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.38, eon_time: 2023-07-14 22:15:00
2023-07-17 13:26:08.779836 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.431, eon_time: 2023-07-14 22:30:00
2023-07-17 13:26:08.808799 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.465, eon_time: 2023-07-14 22:45:00
2023-07-17 13:26:08.834467 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.528, eon_time: 2023-07-14 23:00:00
2023-07-17 13:26:09.338898 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:00:00
2023-07-17 13:26:09.364688 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:15:00
2023-07-17 13:26:09.390743 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:30:00
2023-07-17 13:26:09.414926 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 09:45:00
2023-07-17 13:26:09.438499 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 10:00:00
2023-07-17 13:26:09.462491 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.625, eon_time: 2023-07-14 10:15:00
2023-07-17 13:26:09.486169 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 10:30:00
2023-07-17 13:26:09.510948 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 10:45:00
2023-07-17 13:26:09.538558 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.644, eon_time: 2023-07-14 11:00:00
2023-07-17 13:26:09.566642 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.721, eon_time: 2023-07-14 11:15:00
2023-07-17 13:26:09.595023 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.721, eon_time: 2023-07-14 11:30:00
2023-07-17 13:26:09.613680 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 11:45:00
2023-07-17 13:26:09.625868 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:00:00
2023-07-17 13:26:09.647250 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:15:00
2023-07-17 13:26:09.670382 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:30:00
2023-07-17 13:26:09.693850 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 12:45:00
2023-07-17 13:26:09.719458 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.732, eon_time: 2023-07-14 13:00:00
2023-07-17 13:26:09.742858 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.746, eon_time: 2023-07-14 13:15:00
2023-07-17 13:26:09.768698 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.755, eon_time: 2023-07-14 13:30:00
2023-07-17 13:26:09.792630 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.755, eon_time: 2023-07-14 13:45:00
2023-07-17 13:26:09.817909 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.78, eon_time: 2023-07-14 14:00:00
2023-07-17 13:26:09.841626 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1667.995, eon_time: 2023-07-14 14:15:00
2023-07-17 13:26:09.865805 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.221, eon_time: 2023-07-14 14:30:00
2023-07-17 13:26:09.891502 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.498, eon_time: 2023-07-14 14:45:00
2023-07-17 13:26:09.915925 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.71, eon_time: 2023-07-14 15:00:00
2023-07-17 13:26:09.939364 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:15:00
2023-07-17 13:26:09.964507 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:30:00
2023-07-17 13:26:09.988476 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.785, eon_time: 2023-07-14 15:45:00
2023-07-17 13:26:10.014044 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.816, eon_time: 2023-07-14 16:00:00
2023-07-17 13:26:10.038073 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.816, eon_time: 2023-07-14 16:15:00
2023-07-17 13:26:10.060761 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.818, eon_time: 2023-07-14 16:30:00
2023-07-17 13:26:10.083454 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.985, eon_time: 2023-07-14 16:45:00
2023-07-17 13:26:10.107531 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1668.991, eon_time: 2023-07-14 17:00:00
2023-07-17 13:26:10.131829 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.034, eon_time: 2023-07-14 17:15:00
2023-07-17 13:26:10.158632 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.135, eon_time: 2023-07-14 17:30:00
2023-07-17 13:26:10.182615 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.262, eon_time: 2023-07-14 17:45:00
2023-07-17 13:26:10.207558 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.457, eon_time: 2023-07-14 18:00:00
2023-07-17 13:26:10.221845 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.636, eon_time: 2023-07-14 18:15:00
2023-07-17 13:26:10.232596 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.799, eon_time: 2023-07-14 18:30:00
2023-07-17 13:26:10.245670 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.94, eon_time: 2023-07-14 18:45:00
2023-07-17 13:26:10.256559 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1669.984, eon_time: 2023-07-14 19:00:00
2023-07-17 13:26:10.267778 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.05, eon_time: 2023-07-14 19:15:00
2023-07-17 13:26:10.281801 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.457, eon_time: 2023-07-14 19:30:00
2023-07-17 13:26:10.297844 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1670.754, eon_time: 2023-07-14 19:45:00
2023-07-17 13:26:10.321441 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.204, eon_time: 2023-07-14 20:00:00
2023-07-17 13:26:10.337986 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.627, eon_time: 2023-07-14 20:15:00
2023-07-17 13:26:10.362436 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.792, eon_time: 2023-07-14 20:30:00
2023-07-17 13:26:10.385265 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1671.907, eon_time: 2023-07-14 20:45:00
2023-07-17 13:26:10.411425 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.01, eon_time: 2023-07-14 21:00:00
2023-07-17 13:26:10.435259 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.092, eon_time: 2023-07-14 21:15:00
2023-07-17 13:26:10.459471 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.147, eon_time: 2023-07-14 21:30:00
2023-07-17 13:26:10.483147 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.236, eon_time: 2023-07-14 21:45:00
2023-07-17 13:26:10.526451 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.38, eon_time: 2023-07-14 22:15:00
2023-07-17 13:26:10.553913 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.431, eon_time: 2023-07-14 22:30:00
2023-07-17 13:26:10.583285 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.465, eon_time: 2023-07-14 22:45:00
2023-07-17 13:26:10.608944 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.528, eon_time: 2023-07-14 23:00:00
2023-07-17 13:26:12.187599 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.38, eon_time: 2023-07-14 22:15:00
2023-07-17 13:26:12.211120 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.431, eon_time: 2023-07-14 22:30:00
2023-07-17 13:26:12.234718 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.465, eon_time: 2023-07-14 22:45:00
2023-07-17 13:26:12.257355 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.528, eon_time: 2023-07-14 23:00:00
2023-07-17 13:26:12.280493 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.569, eon_time: 2023-07-14 23:15:00
2023-07-17 13:26:12.305849 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.657, eon_time: 2023-07-14 23:30:00
2023-07-17 13:26:12.338748 INFO Eon: sensor.eon_1_8_0_energy_total: eon_sum_value is 1672.695, eon_time: 2023-07-14 23:45:00

Előre is köszi a segítséget. Üdv, pac

amargo commented 1 year ago

Szia!

A gond szerintem az lesz, hogy a konfigurációban pár változót rosszul van megadva ez a helyes:

  sensor_1_8_0: sensor.eon_1_8_0_energy_total
  sensor_2_8_0: sensor.eon_2_8_0_energy_total
  positive_a_energy: sensor.eon_positive_a_energy_power
  negative_a_energy: sensor.eon_negative_a_energy_power

És most látom, hogy a "dokumentáció" írja rosszul, javítom!

Szerk: És ezért fut le a normalizálás most mindig kódváltozás esetén, mert benne van a "now" paraméter: https://github.com/amargo/appdaemon-scripts/blob/d86ae6283b00b6fca7fffc74984b22010d1b23ef/normalized_energy_usage/normalized_energy_usage.py#L13C34-L13C34

Köszönöm az észrevételt :)

pacman789 commented 1 year ago

Köszi a gyors választ. a YML szerkesztésével csak az entity ID változik, ugye? Ez kihatással van az eredményre? Módosítottam, : Purge Entities-el töröltem a history-t (ez nem törli a statisztikából, de gondolom azt úgyis a script teszi helyre), de sajnos változatlan, most kicsit máshogy néz ki, de a fenti problémák megmaradtak.

Screenshot 2023-07-17 at 15 29 33
amargo commented 1 year ago

Normalizálás is lefutott rá megfelelően? Mert a 16-a jónak fest 17-et "nem érdemes nézni", mert nincs megfelelő viszonyítási adat ezért csúszhatnak el az értékek. Tehát van az eon oldalán reggel 7-ig adat Te 11-kor futtatod a script-et ezért van egy 4 órányi gap, amit már ugye le lett generálva a statistics-ba valamilyen adat (legutolsó ismer érték van benne, ami különbözik az utolsó eon-os 7 órás adattól) a script próbálja az eon-oldalán levő legutolsó értéket tovább görgetni: https://github.com/amargo/appdaemon-scripts/blob/d86ae6283b00b6fca7fffc74984b22010d1b23ef/normalized_energy_usage/normalized_energy_usage.py#L44C9-L44C27 Ez a letörés ezt jelenti. A többi napot meg kellene csinálnia rendesen: image

pacman789 commented 1 year ago

Mára már jobban néz ki, tegnapi beesés még megvan,de lehet ez azért, mert a portálon még nincsenek fent a tegnapi adatok. Úgyhogy várok még egy napot:)

Screenshot 2023-07-18 132146

Amúgy a normalizálás nem csak a statisztikát szépíti? A Setup föggvény végére tettem egy LOG kimenetet, hogy tudjam végigfut e. Lefut rendesen.

Screenshot 2023-07-18 132556

amargo commented 1 year ago

Amúgy a normalizálás nem csak a statisztikát szépíti? A Setup föggvény végére tettem egy LOG kimenetet, hogy tudjam végigfut e. Lefut rendesen.

De igen, csak szépít, amint lesz rá adat ki kell simítania. Nyugodtan küldd be merge request-nek :)

amargo commented 1 year ago

@pacman789 jó lett? :)

pacman789 commented 1 year ago

Szia!

Eddig várnom kellett, mert nem jelentek meg az adatok az EON oldalán, pont a mai nap pótolták. A letörés nem szűnt meg, de jól működik. Maga a letörés nem zavar, úgyis kipörög pár hét múlva, míg a statisztika az jó és az a fontos.

Screenshot 2023-07-20 at 21 02 57

Köszi a belefektetett idődet!