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
Ankündigung
Einklappen
Keine Ankündigung bisher.
Neues Plugin: DatabaseAddOn - Erweitere Testphase
Einklappen
X
-
Also das Plugin arbeitet. Das ist schonmal gut.Zitat von jonny7792 Beitrag anzeigenAuszug aus dem LOG:
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.
Scheinbar ist deine DB leer.Code:query for Item='Messung.Strom.Bezug' is prior to oldest entry with timestamp=1675587277500 / 2023-02-05 08:54:37. Query cancelled.
Hast Du mehrere DBs im Einsatz?
Einen Kommentar schreiben:
-
KorrektZitat von Sisamiwe Beitrag anzeigenDu hast das Plugin als "dbdevelop" eingebunden, richtig?
ist nun wie folgt eingebunden
PHP-Code:plugins.dbdevelop:
handlers: [filedbaddon]
level: DEBUG
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=Item: Messung.Strom.Bezug,timeframe='day',start=401,end= 365 -- (__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.Bezug, timeframe='day', start=365, end=365, group=None, group2=None, ignore_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_item: Requested 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='day',start=4,end=3 -- (__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.Bezug, timeframe='day', start=3, end=3, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=3 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='day',start=5,end=4 -- (__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.Bezug, timeframe='day', start=4, end=4, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=4 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='day',start=6,end=5 -- (__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.Bezug, timeframe='day', start=5, end=5, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=5 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='day',start=7,end=6 -- (__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.Bezug, timeframe='day', start=6, end=6, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=6 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='day',start=8,end=7 -- (__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.Bezug, timeframe='day', start=7, end=7, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=7 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='week',start=4,end=3 -- (__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.Bezug, timeframe='week', start=3, end=3, group=None, group2=None, ignore_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_item: Requested timeframe='week' with start=3 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='week',start=5,end=4 -- (__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.Bezug, timeframe='week', start=4, end=4, group=None, group2=None, ignore_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_item: Requested timeframe='week' with start=4 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='month',start=3,end= 2 -- (__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.Bezug, timeframe='month', start=2, end=2, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=2 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='month',start=4,end= 3 -- (__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.Bezug, timeframe='month', start=3, end=3, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=3 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_item: Requested 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_ondemand: result 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 NONE; No 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=Item: Messung.Strom.Bezug,timeframe='month',start=5,end= 4 -- (__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.Bezug, timeframe='month', start=4, end=4, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=4 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='day', start=1, end=1, group=None, group2=None, ignore_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_item: Requested timeframe='day' with start=1 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='week', start=1, end=1, group=None, group2=None, ignore_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_item: Requested timeframe='week' with start=1 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='month', start=1, end=1, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=1 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='month', start=2, end=2, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=2 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='month', start=3, end=3, group=None, group2=None, ignore_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_item: Requested timeframe='month' with start=3 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_item: Requested 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_ondemand: result 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 NONE; No 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_zaehlerstand: zaehlerstand 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.Bezug, timeframe='year', start=1, end=1, group=None, group2=None, ignore_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_item: Requested timeframe='year' with start=1 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_item: Requested 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_ondemand: result 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 NONE; No 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 startup. No 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 startup. No updated will be processed. -- (__init__.py:update_item:399)
Zuletzt geändert von jonny7792; 05.02.2023, 12:14.
Einen Kommentar schreiben:
-
Du hast das Plugin als "dbdevelop" eingebunden, richtig?Zitat von jonny7792 Beitrag anzeigenLogger wie folgt konfiguriert:
Dann setzt nochmal einen extra Logger
und setze den generellen Plugin Logger auf den alten Wert.Code:plugins.dbdevelop: level: DEBUG
Einen Kommentar schreiben:
-
Das Log ist leer
Das wäre das Bezugs Item:
PHP-Code:Messung:
Strom:
Bezug:
type: num
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:
-
So ist es, bzw. soll es so sein.Zitat von jonny7792 Beitrag anzeigenDem entsprechend sollte wenn sich das Item "Messung.Strom.Bezug" ändert eine Berechnung stattfinden
Zeig mal Deine Item-Konfig.
Im WebIF siehst du auch im Header, welches Item gerade bearbeitet wird.
Was sagt das Log?
Einen Kommentar schreiben:
-
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.Zitat von Sisamiwe Beitrag anzeigenDie dynamischen Items (Alle, die den Verbrauch bis JETZT) beinhalten, werden berechnet, sobald ein Update des Wertes kommt.
Einen Kommentar schreiben:
-
Nein.Zitat von jonny7792 Beitrag anzeigenDauert es einen Tag bis die Items berechnet werden können?
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:
-
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:
-
Das macht die Abfrage sehr langsam, da die DB selbst rechnen muss.Zitat von stoner1801 Beitrag anzeigenEin 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.
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:
-
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:
-
Ich habe das Thema analysiert.Zitat von stoner1801 Beitrag anzeigenBesten Dank für deine Hilfe. Ich verwende mysql.
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.
- 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:
-
Besten Dank für deine Hilfe. Ich verwende mysql.Zitat von Sisamiwe Beitrag anzeigen
Das schaue ich mir gern an.
Nutzt Du mysql oder sqlite3?
Einen Kommentar schreiben:
-
Das schaue ich mir gern an.Zitat von stoner1801 Beitrag anzeigenverbrauch_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.
Nutzt Du mysql oder sqlite3?
Einen Kommentar schreiben:
-
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.
Das Log zeigt folgendes:Code:WasserZaehler.WasserTotalLiter.Auswertung.verbrauch_jahr_minus2
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:


Einen Kommentar schreiben: