Ankündigung

Einklappen
Keine Ankündigung bisher.

Neues Plugin: DatabaseAddOn - Erweitere Testphase

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • jonny7792
    antwortet
    Ja ich musste sie löschen da sie teilweise unbrauchbar war , aber trotzalledessen sollte der tagesverbauch doch berechnet werden.

    Ich habe nur eine DB im Einsatz

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von jonny7792 Beitrag anzeigen
    Auszug aus dem LOG:
    Also das Plugin arbeitet. Das ist schonmal gut.

    Die letzten beiden Zeilen sage, dass die Berechnung der on-change Items noch pausiert ist.

    Die anderen Einträge sagen, dass deine Anfrage in einen Zeitraum geht, der nicht in der Datenbank ist.
    Code:
    query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 / 2023-02-05 08:54:37. Query cancelled.
    Scheinbar ist deine DB leer.

    Hast Du mehrere DBs im Einsatz?

    Einen Kommentar schreiben:


  • jonny7792
    antwortet
    Zitat von Sisamiwe Beitrag anzeigen
    Du hast das Plugin als "dbdevelop" eingebunden, richtig?
    Korrekt

    ist nun wie folgt eingebunden

    PHP-Code:
    plugins.dbdevelop:
    handlers: [filedbaddon]
    levelDEBUG​ 


    Auszug aus dem LOG:


    PHP-Code:

    2023
    -02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_jahreszeitraum_minus1' function detected_timeframe='day'_timedelta='1' -- (__init__.py:_handle_verbrauch:974)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=401,end365 -- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=365end=365group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=365 and end=365 resulted in start being timestamp=1644019200000 2022-02-05 00:00:00 and end being timestamp=1644105600000 2022-02-06 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1644105600000 2022-02-06 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vorjahreszeitraum' with _database_addon_fct='verbrauch_jahreszeitraum_minu s1' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 16 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_gestern_minus3 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_heute_minus3' function detected_timeframe='day'_timedelta='3' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=4,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=3end=3group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=3 resulted in start being timestamp=1675296000000 2023-02-02 00:00:00 and end being timestamp=1675382400000 2023-02-03 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675382400000 2023-02-03 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_gestern_minus3' with _database_addon_fct='verbrauch_heute_minus3' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 15 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_gestern_minus4 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_heute_minus4' function detected_timeframe='day'_timedelta='4' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=5,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=4end=4group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=4 resulted in start being timestamp=1675209600000 2023-02-01 00:00:00 and end being timestamp=1675296000000 2023-02-02 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675296000000 2023-02-02 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_gestern_minus4' with _database_addon_fct='verbrauch_heute_minus4' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 14 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_gestern_minus5 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_heute_minus5' function detected_timeframe='day'_timedelta='5' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=6,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=5end=5group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=5 resulted in start being timestamp=1675123200000 2023-01-31 00:00:00 and end being timestamp=1675209600000 2023-02-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675209600000 2023-02-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_gestern_minus5' with _database_addon_fct='verbrauch_heute_minus5' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 13 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_gestern_minus6 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_heute_minus6' function detected_timeframe='day'_timedelta='6' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=7,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=6end=6group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=6 resulted in start being timestamp=1675036800000 2023-01-30 00:00:00 and end being timestamp=1675123200000 2023-01-31 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675123200000 2023-01-31 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_gestern_minus6' with _database_addon_fct='verbrauch_heute_minus6' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 12 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_gestern_minus7 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_heute_minus7' function detected_timeframe='day'_timedelta='7' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='day',start=8,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=7end=7group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=7 resulted in start being timestamp=1674950400000 2023-01-29 00:00:00 and end being timestamp=1675036800000 2023-01-30 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675036800000 2023-01-30 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_gestern_minus7' with _database_addon_fct='verbrauch_heute_minus7' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 11 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_vorwoche_minus2 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_woche_minus3' function detected_timeframe='week'_timedelta='3' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='week',start=4,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='week'start=3end=3group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='week' with start=and end=3 resulted in start being timestamp=1673222400000 2023-01-09 00:00:00 and end being timestamp=1673740800000 2023-01-15 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1673740800000 2023-01-15 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vorwoche_minus2' with _database_addon_fct='verbrauch_woche_minus3' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 10 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_vorwoche_minus3 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_woche_minus4' function detected_timeframe='week'_timedelta='4' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='week',start=5,end=-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='week'start=4end=4group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='week' with start=and end=4 resulted in start being timestamp=1672617600000 2023-01-02 00:00:00 and end being timestamp=1673136000000 2023-01-08 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1673136000000 2023-01-08 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vorwoche_minus3' with _database_addon_fct='verbrauch_woche_minus4' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 9 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_vormonat_minus1 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_monat_minus2' function detected_timeframe='month'_timedelta='2' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='month',start=3,end-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=2end=2group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=2 resulted in start being timestamp=1669852800000 2022-12-01 00:00:00 and end being timestamp=1672531200000 2023-01-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1672531200000 2023-01-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vormonat_minus1' with _database_addon_fct='verbrauch_monat_minus2' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 8 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_vormonat_minus2 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_monat_minus3' function detected_timeframe='month'_timedelta='3' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='month',start=4,end-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=3end=3group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=3 resulted in start being timestamp=1667260800000 2022-11-01 00:00:00 and end being timestamp=1669852800000 2022-12-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1669852800000 2022-12-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vormonat_minus2' with _database_addon_fct='verbrauch_monat_minus3' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 7 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.verbrauch_vormonat_minus3 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'verbrauch' detected. -- (__init__.py:handle_ondemand:504)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_verbrauch'verbrauch_monat_minus4' function detected_timeframe='month'_timedelta='4' -- (__init__.py:_handle_verbrauch:940)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc called with item=ItemMessung.Strom.Bezug,timeframe='month',start=5,end-- (__init__.py:_consumption_calc:1465)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=4end=4group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=4 resulted in start being timestamp=1664582400000 2022-10-01 00:00:00 and end being timestamp=1667260800000 2022-11-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1667260800000 2022-11-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _consumption_calc value_end=None -- (__init__.py:_consumption_calc:1472)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.verbrauch_vormonat_minus3' with _database_addon_fct='verbrauch_monat_minus4' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 6 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_gestern will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='day'_timedelta='1' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='day'start=1end=1group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='day' with start=and end=1 resulted in start being timestamp=1675468800000 2023-02-04 00:00:00 and end being timestamp=1675555200000 2023-02-05 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675555200000 2023-02-05 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_gestern' with _database_addon_fct='zaehlerstand_heute_minus1' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 5 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_vorwoche will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='week'_timedelta='1' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='week'start=1end=1group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='week' with start=and end=1 resulted in start being timestamp=1674432000000 2023-01-23 00:00:00 and end being timestamp=1674950400000 2023-01-29 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1674950400000 2023-01-29 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_vorwoche' with _database_addon_fct='zaehlerstand_woche_minus1' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 4 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_vormonat will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='month'_timedelta='1' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=1end=1group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=1 resulted in start being timestamp=1672531200000 2023-01-01 00:00:00 and end being timestamp=1675209600000 2023-02-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1675209600000 2023-02-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_vormonat' with _database_addon_fct='zaehlerstand_monat_minus1' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 3 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_vormonat_minus1 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='month'_timedelta='2' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=2end=2group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=2 resulted in start being timestamp=1669852800000 2022-12-01 00:00:00 and end being timestamp=1672531200000 2023-01-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1672531200000 2023-01-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_vormonat_minus1' with _database_addon_fct='zaehlerstand_monat_minus2' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 2 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_vormonat_minus2 will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='month'_timedelta='3' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='month'start=3end=3group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='month' with start=and end=3 resulted in start being timestamp=1667260800000 2022-11-01 00:00:00 and end being timestamp=1669852800000 2022-12-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1669852800000 2022-12-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_vormonat_minus2' with _database_addon_fct='zaehlerstand_monat_minus3' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue # 1 item(s) to do. || 'on-demand' item Messung.Strom.Bezug.zaehlerstand_vorjahr will be processed. -- (__init__.py:work_item_queue:477)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemand'zaehlerstand' detected. -- (__init__.py:handle_ondemand:515)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _handle_zaehlerstandzaehlerstand function detected_timeframe='year'_timedelta='1' -- (__init__.py:_handle_zaehlerstand:910)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_item called with func='max'item=Messung.Strom.Bezugtimeframe='year'start=1end=1group=Nonegroup2=Noneignore_value=None -- (__init__.py:_query_item:1522)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _get_oldest_log for item Messung.Strom.Bezug 1675587277500 -- (__init__.py:_get_oldest_log:1327)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue _query_itemRequested timeframe='year' with start=and end=1 resulted in start being timestamp=1640995200000 2022-01-01 00:00:00 and end being timestamp=1672531200000 2023-01-01 00:00:00 -- (__init__.py:_query_item:1551)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue _query_itemRequested end time timestamp=1672531200000 2023-01-01 00:00:00 of query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 2023-02-05 08:54:37. Query cancelled. -- (__init__.py:_query_item:1555)
    2023-02-05 12:13:24 CET DEBUG __init__ plugins.dbdevelop.work_item_queue handle_ondemandresult is None for item 'Messung.Strom.Bezug.zaehlerstand_vorjahr' with _database_addon_fct='zaehlerstand_jahr_minus1' _database_item=Messung.Strom.Bezug -- (__init__.py:handle_ondemand:591)
    2023-02-05 12:13:24 CET INFO __init__ plugins.dbdevelop.work_item_queue Result was NONENo item value will be set. -- (__init__.py:handle_ondemand:599)
    2023-02-05 12:13:25 CET INFO __init__ Messung.Strom.Bezug-eval Handling of 'on-change' is paused for startupNo updated will be processed. -- (__init__.py:update_item:399)
    2023-02-05 12:13:29 CET INFO __init__ Messung.Strom.Bezug-eval Handling of 'on-change' is paused for startupNo updated will be processed. -- (__init__.py:update_item:399)​ 
    Zuletzt geändert von jonny7792; 05.02.2023, 12:14.

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von jonny7792 Beitrag anzeigen
    Logger wie folgt konfiguriert:
    Du hast das Plugin als "dbdevelop" eingebunden, richtig?

    Dann setzt nochmal einen extra Logger
    Code:
        plugins.dbdevelop:
            level: DEBUG
    und setze den generellen Plugin Logger auf den alten Wert.

    Einen Kommentar schreiben:


  • jonny7792
    antwortet
    Das Log ist leer

    Das wäre das Bezugs Item:

    PHP-Code:
    Messung:
    Strom:
    Bezug:
    typenum
    knx_dpt
    13
    knx_listen
    1/6/21
    eval: value/1000
    database
    'init'
    struct:
    dbdevelop.verbrauch_1
    dbdevelop.verbrauch_2
    dbdevelop.zaehlerstand_1 
    aktives Item
    Messung.Strom.Bezug




    Logger wie folgt konfiguriert:

    Code:
        plugins:
            # Default logger for SmartHomeNG plugins
            handlers: [shng_details_file]
            level: INFO​​

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von jonny7792 Beitrag anzeigen
    Dem entsprechend sollte wenn sich das Item "Messung.Strom.Bezug" ändert eine Berechnung stattfinden
    So ist es, bzw. soll es so sein.

    Zeig mal Deine Item-Konfig.

    Im WebIF siehst du auch im Header, welches Item gerade bearbeitet wird.

    Was sagt das Log?

    Einen Kommentar schreiben:


  • jonny7792
    antwortet
    Zitat von Sisamiwe Beitrag anzeigen
    Die dynamischen Items (Alle, die den Verbrauch bis JETZT) beinhalten, werden berechnet, sobald ein Update des Wertes kommt.
    Dem entsprechend sollte wenn sich das Item "Messung.Strom.Bezug" ändert eine Berechnung stattfinden - Dies geschieht aber nicht und auch im Plugin WebIF bleiben die Items leer trotz manueller Auslösung.

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von jonny7792 Beitrag anzeigen
    Dauert es einen Tag bis die Items berechnet werden können?
    Nein.

    Die dynamischen Items (Alle, die den Verbrauch bis JETZT) beinhalten, werden berechnet, sobald ein Update des Wertes kommt.
    Die statischen Items, die nur 1x am Tag, Woche, Monat, Jahr berechnet werden, werden zum Tages-, Wochen-, Monats- oder Jahreswechsel berechnet.

    Du kannst bei der Itemkonfiguration angeben, ob das Item beim Start von shNG berechnet werden soll. Damit der Start von shNG und db etc nicht beeinflusst/behindert wird, startet die Berechnung erst diverse Zeit nach dem Ende des Startvorganges.
    Du kannst im WebIF die Berechnung aller Items auslösen/abbrechen.

    Im Log wird auch immer Auskunft gegeben, was passiert. GGf. den Log_level auf INFO stellen.

    Einen Kommentar schreiben:


  • jonny7792
    antwortet
    Hallo zusammen

    erstmal ein Dickes Danke für dieses Plugin

    Ich habe es soweit zum laufen gebracht jedoch werden meine Items nicht befüllt:


    Allgemeine frage:

    Dauert es einen Tag bis die Items berechnet werden können?

    Screenshot 2023-02-05 112832.png Screenshot 2023-02-05 112819.png

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von stoner1801 Beitrag anzeigen
    Ein anderer Ansatz wäre nicht den größten Startwert zw. 01.01.19 und 31.12.19 zu nehmen sondern den größten Wert aus allen Einträgen aus 2019.
    Das macht die Abfrage sehr langsam, da die DB selbst rechnen muss.
    Fürs erst kannst Du in der Konfig das Plugin die Option so setzten, dass, wenn der Start vor dem ersten Eintrag liegt, immer den ersten (also ältesten) Eintrag nutzt.

    Zudem kann man auch über eine Option die 0-Werte ignorieren.

    Ich denke nochmal drauf rum.

    Einen Kommentar schreiben:


  • stoner1801
    antwortet
    Besten Dank für deine Mühe.

    In der Tat kommt es vor, dass wenn smarthomeng neu gestartet wird eine 0 in der DB steht.

    Ein anderer Ansatz wäre nicht den größten Startwert zw. 01.01.19 und 31.12.19 zu nehmen sondern den größten Wert aus allen Einträgen aus 2019.

    Bsp.:
    Select max(t.value) from table t where year(t.date)

    Bin mir nicht sicher, ob die Funktion year mit timestamps funktioniert.

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von stoner1801 Beitrag anzeigen
    Besten Dank für deine Hilfe. Ich verwende mysql.
    Ich habe das Thema analysiert.
    Das positive ist, dass die Berechnungen korrekt sind. Aber es gibt Verbesserungspotential.

    Die Berechnung der Verbrauches läuft immer so:
    • aus dem Item-Attributwert werden "timeframe" und "timedelta" ermittelt (in diesem Falle timeframe=jahr, timedelta=2)
    • Der Endwert für den Verbrauch ist immer der maximale Wert im timeframe - timedelta (also der größte Wert vom 1.1.20 bis 31.12.20)
    • Der Startwert für den Verbrauch ist immer der maximale Wert im timeframe - (timedelta+1) (also der größte Wert vom 1.1.19 bis 31.12.19) und damit der letzte/größte Wert aus dem Jahre 2019.
    Man könnte die Berechnung des Startwertes ändern in:
    • Der Endwert für den Verbrauch ist immer der minimale Wert im timeframe - timedelta (also der kleinste Wert vom 1.1.20 bis 31.12.20). Das grenzt zwar den Zeitraum besser ab, sollte aber eine 0 in der DB stehen, nimmt er diese. Dies könnte man unterbinden, in dem man die Option "ignore_value" nutzt.

    Was ist Dein Vorschalg?

    Einen Kommentar schreiben:


  • stoner1801
    antwortet
    Zitat von Sisamiwe Beitrag anzeigen

    Das schaue ich mir gern an.
    Nutzt Du mysql oder sqlite3?
    Besten Dank für deine Hilfe. Ich verwende mysql.

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Zitat von stoner1801 Beitrag anzeigen
    verbrauch_jahr_minus2: erwarten würde ich mir den Verbrauch zw. 01.01.2020 und 31.12.2020, das Plugin versucht jedoch das Jahr 2019 zu berechnen.
    Das schaue ich mir gern an.
    Nutzt Du mysql oder sqlite3?

    Einen Kommentar schreiben:


  • stoner1801
    antwortet
    Hi,

    Ich habe folgendes Problem:

    verbrauch_jahr_minus2: erwarten würde ich mir den Verbrauch zw. 01.01.2020 und 31.12.2020, das Plugin versucht jedoch das Jahr 2019 zu berechnen.

    Code:
    WasserZaehler.WasserTotalLiter.Auswertung.verbrauch_jahr_minus2
    Das Log zeigt folgendes:
    Code:
    2022-11-22 20:46:56 WARNING plugins.priv_db_addon _query_item: Requested start time timestamp=1546300800000 / 2019-01-01 00:00:00 of query for Item='WasserZaehler.WasserTotalLiter' is prior to oldest entry with timestamp=1546615263662 / 2019-01-04 15:21:03. Query cancelled.

    Einen Kommentar schreiben:

Lädt...
X