Ankündigung

Einklappen
Keine Ankündigung bisher.

Neues Plugin: DatabaseAddOn - Erweitere Testphase

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

    #91
    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.

    Kommentar


      #92
      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.
      Gruss Oliver

      Projektleiter Technische Gebäudeausrüstung

      Kommentar


        #93
        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?

        Kommentar


          #94
          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​​
          Gruss Oliver

          Projektleiter Technische Gebäudeausrüstung

          Kommentar


            #95
            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.

            Kommentar


              #96
              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.
              Gruss Oliver

              Projektleiter Technische Gebäudeausrüstung

              Kommentar


                #97
                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?

                Kommentar


                  #98
                  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
                  Gruss Oliver

                  Projektleiter Technische Gebäudeausrüstung

                  Kommentar


                    #99
                    Zitat von jonny7792 Beitrag anzeigen
                    Ja ich musste sie löschen da sie teilweise unbrauchbar war , aber trotzalledessen sollte der tagesverbauch doch berechnet werden.
                    Hier sind 2 Dinge relevant:
                    A) Wie ich bereits mehrfach schrieb, führt das Plugin erst seine Berechnungen nach einer gewissen Zeit nach dem Start aus.
                    B) Wie soll das Plugin den Tagesverbrauch berechnen, wenn noch kein Tag in der DB ist? Deine DB beginnt doch erst heute gegen 9.00 Uhr. Damit das Plugin bei solchen Fällen den ältesten Eintrag der DB nimmt, kann man das in den Plugin Parametern konfigurieren. Der Parameter "use_oldest_entry" ist dafür gedacht.

                    Kommentar


                      Dementsprechend werde ich wohl den ein oder anderen Tag vergehen lassen und anschliessend schauen was sich ändert
                      Gruss Oliver

                      Projektleiter Technische Gebäudeausrüstung

                      Kommentar


                        Zitat von Sisamiwe Beitrag anzeigen
                        Damit das Plugin bei solchen Fällen den ältesten Eintrag der DB nimmt, kann man das in den Plugin Parametern konfigurieren. Der Parameter "use_oldest_entry" ist dafür gedacht.

                        Hallo Sisamiwe

                        habe nun den entsprechenden Parameter gesetzt.

                        Das klappt soweit auch, jedoch musste ich feststellen das der Monatsverbrauch nicht addiert wird.
                        Dieser Eintrag bleibt nach wie vor leer obwohl 2 Tage in der DB hinterlegt sind.

                        Das gleiche bei den beiden folgenden Items:


                        PHP-Code:
                           Item Pfad Messung.Strom.Eigenverbrauch  ​Wert 18722.604   Messung.Strom.Eigenverbrauch.verbrauch_heute num verbrauch_heute on-change Nein 0 08.02.2023 10:47:46 08.02.2023 10:47:46  ​


                        Ebenso 
                        die MonatsverbräucheImport und Export   Messung.Strom.Bezug.verbrauch_heute num verbrauch_heute on-change Nein 25 08.02.2023 12:49:49 08.02.2023 12:49:34 Messung.Strom.Bezug.verbrauch_jahr num verbrauch_jahr on-change Nein 0 08.02.2023 10:47:46 08.02.2023 10:47:46 Messung.Strom.Bezug.verbrauch_monat num verbrauch_monat on-change Nein 0 08.02.2023 10:47:46  ​   Messung.Strom.Bezug.verbrauch_gestern num verbrauch_heute_minus1 täglich Ja 53.2 08.02.2023 12:31:37 08.02.2023 10:52:50 Messung.Strom.Bezug.verbrauch_gestern_minus1 num verbrauch_heute_minus2 täglich Ja 50.4 08.02.2023 12:31:37 08.02.2023 10:52:51  ​ 

                        Wenn ich die Doku richtig verstanden habe sollte er doch den Monats und Wochenverbrauch täglich auf Basis des Vortages berechnen - korrekt?

                        Die Items sind wie folgt definiert:

                        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
                                Lieferung:
                                    type: num
                                    knx_dpt: 13
                                    knx_listen: 1/6/23
                                    eval: value/1000
                                    database: 'init'
                                    struct:
                                      - dbdevelop.verbrauch_1
                                      - dbdevelop.verbrauch_2
                                      - dbdevelop.zaehlerstand_1
                        
                                Eigenverbrauch:
                                    type: num
                                    #eval: value/1000
                                    database: 'init'
                                    cache: true
                                    struct:
                                      - dbdevelop.verbrauch_1
                                Einsparung:
                                    type: num
                                    database: 'init'
                                    cache: true
                                    struct:
                                      - dbdevelop.verbrauch_1
                        ....
                        ....
                        ....
                        
                            M_Export:
                                type: num
                                name: M_Exported
                                enforce_updates: 'True'
                                eval: value*10**sh.Photovoltaik.M_Export_sf()
                                modBusAddress: '40226'
                                modBusFactor: '0.001'
                                modBusDataType: uint32
                                database: 'init'
                                struct:
                                    - dbdevelop.verbrauch_1
                                    - dbdevelop.verbrauch_2
                                    - dbdevelop.zaehlerstand_1
                            M_Export_sf:
                                type: num
                                name: M_Energy_W_sf
                                enforce_updates: 'True'
                                modBusAddress: '40242'
                                modBusFactor: '0.001'
                                modBusDataType: int16
                            M_Import:
                                type: num
                                name: M_Imported
                                enforce_updates: 'True'
                                eval: value*10**sh.Photovoltaik.M_Import_sf()
                                modBusAddress: '40234'
                                modBusFactor: '0.001'
                                modBusDataType: uint32
                                database: 'init'
                                struct:
                                    - dbdevelop.verbrauch_1
                                    - dbdevelop.verbrauch_2
                                    - dbdevelop.zaehlerstand_1
                            Produktion2:
                                type: num
                                name: I_AC_Energy_WH
                                enforce_updates: 'True'
                                eval: value*10**sh.Photovoltaik.Produktion_sf2()/1000
                                modBusAddress: '40093'
                                modBusFactor: '1'
                                modBusDataType: uint32
                                modBusUnit: '2'
                                struct:
                                    - dbdevelop.verbrauch_1
                                    - dbdevelop.verbrauch_2
                                    - dbdevelop.zaehlerstand_1
                        Eigenverbrauch und Einsparung werden durch eine Logik berechnet:

                        Code:
                        #!/usr/bin/env python3
                        # eigenverbrauch.py
                        #Berechne anhand von Erzeugter sowie und Exportierter Energie den Eigenverbrauch und schreibe das Ergebniss in ein Item
                        sh.Messung.Strom.Eigenverbrauch(sh.Photovoltaik.Produktion2() - sh.Photovoltaik.M_Export())
                        #Berechne ebenfalls die Eingesparten Kosten aufgrund vom Eigenverbrauch
                        sh.Messung.Strom.Einsparung(round(sh.Messung.Strom.Eigenverbrauch()*0.32 + (144/365)),2)
                        Gruss Oliver

                        Projektleiter Technische Gebäudeausrüstung

                        Kommentar


                          Zitat von jonny7792 Beitrag anzeigen
                          Wenn ich die Doku richtig verstanden habe sollte er doch den Monats und Wochenverbrauch täglich auf Basis des Vortages berechnen - korrekt?
                          Naja. Wie ich oben schon geschrieben habe, rechnet Plugin standardmäßig nur, wenn der Abfragezeitraum komplett in der Datenbank seht.
                          Sprich: Die Monatsberechnung wird dann ausgeführt wenn auch für den 1. des Monats Daten vorliegen. Da deine Datenbank erst ab 5.2. beginnt, überspringt das Plugin die Berechnung. Seht so auch im Logfile.

                          Alternativ kannst Du den Parameter "use_oldest_entry​" nutzen. Das bedeutet: "Verwendung des ältesten Eintrags des Items in der Datenbank, falls der Start des Abfragezeitraums zeitlich vor diesem Eintrag liegt". Sprich hier würde er den Monatswert errechnen und dafür den "oldest_entry" nutzen.

                          Hatte ich aber ober schon mal geschrieben.
                          Zitat von Sisamiwe Beitrag anzeigen
                          B) Wie soll das Plugin den Tagesverbrauch berechnen, wenn noch kein Tag in der DB ist? Deine DB beginnt doch erst heute gegen 9.00 Uhr. Damit das Plugin bei solchen Fällen den ältesten Eintrag der DB nimmt, kann man das in den Plugin Parametern konfigurieren. Der Parameter "use_oldest_entry" ist dafür gedacht.

                          Kommentar


                            Der Parameter use oldest entry wurde gesetzt.
                            use_oldest_entry bool falsetruefalse

                            true


                            Dementsprechend sollte doch auch etwas kommen .. ab dem 05.02 - dies geschieht jedoch nicht - deswegen habe ich mich noch mal gemeldet

                            Für die Items welche ich nachträglich hinzugefügt habe wie zmb den Eigenverbrauch sowie die Ersparnis ist klar das er noch keinen wert hat , aber ich bin wie gesagt ein wenig verwundert da es ja mit dem Tages Bezug ebenfalls funktioniert
                            Zuletzt geändert von jonny7792; 08.02.2023, 18:54.
                            Gruss Oliver

                            Projektleiter Technische Gebäudeausrüstung

                            Kommentar


                              Zitat von jonny7792 Beitrag anzeigen
                              Der Parameter use oldest entry wurde gesetzt.
                              Was soll ich aus der Tabelle erkennen?

                              Zitat von jonny7792 Beitrag anzeigen
                              wenig verwundert da
                              Was sagt denn das Log?

                              Kommentar


                                Hallo Zusammen,

                                ich probiere mich nun leider auch seit 2 Tagen erfolglos an dem Addon. Vielleicht seht ihr ja meinen Fehler direkt. Ich bin etwas ratlos und nachdem ich den Thread hier durch habe seit ihr meine letzte Hoffnung erstmal.

                                Im WebIf des Plugins werden mir keine Items angezeigt und die Items, welche über struct angelegt werden, bleiben verständlicher weise leer. Im Log meckert er jedes mal beim starten folgendes, was wohl auch mein Problem ist:

                                2023-02-15 15:24:27 CET WARNING __init__ Main No database item found for Sensoren.Schlafzimmer.Temperatur.verbrauch_heute: Item ignored. -- (__init__.pyarse_item:371)
                                Das Item ist wie folgt angelegt:

                                # Sensoren.yaml
                                Sensoren:
                                Schlafzimmer:
                                Temperatur:
                                name: Temperatur Schlafzimmer
                                type: num
                                knx_dpt: 9
                                knx_listen: 0/2/3
                                database@mariadb: init
                                struct: priv_db_addon.verbrauch_1​
                                Wo liegt mein Fehler? Jemand einen Tipp für mich?

                                Danke & Viele Grüße
                                Jannis
                                Zuletzt geändert von startrix; 15.02.2023, 16:54.

                                Kommentar

                                Lädt...
                                X