Ankündigung

Einklappen
Keine Ankündigung bisher.

Supportthread für UZSU Plugin

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

  • Hasenradball
    antwortet
    Hi zusammen,

    habe testweise mein Repo der Plugins auf Develop​ umgestellt.

    Dabei kommen im log für mich neue Warnings.

    Liegt das am Develop oder habe ich da noch nicht was auf den aktuellen Stand gebracht?

    Überall wo UZSU im Spiel ist kommt ein Key Error beim Neustart.

    Kann da jemand helfen?

    2024-07-03 13:33:27 NOTICE lib.smarthome -------------------- SmartHomeNG restarting, initiated by admin interface --------------------
    2024-07-03 13:33:46 NOTICE lib.smarthome -------------------- SmartHomeNG stopped --------------------
    2024-07-03 13:33:49 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.10.0-master (4b25822a0) --------------------
    2024-07-03 13:33:49 NOTICE lib.smarthome Running in Python interpreter 'v3.11.2 final' in virtual environment, from directory /usr/local/smarthome
    2024-07-03 13:33:49 NOTICE lib.smarthome - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=185855)
    2024-07-03 13:33:49 NOTICE lib.smarthome - on 'Raspberry Pi 3 Model B v1.2, 1GB (Sony, UK)'
    2024-07-03 13:33:52 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
    2024-07-03 13:34:16 NOTICE lib.smarthome -------------------- SmartHomeNG initialization finished --------------------
    2024-07-03 13:34:16 WARNING lib.item.item Item 'AUSSEN.Garten.West.Energiesaeule.schalten.uzsu.ne xt.value': problem evaluating 'sh.AUSSEN.Garten.West.Energiesaeule.schalten.uzsu .next.property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:16 WARNING lib.item.item Item 'AUSSEN.Garten.West.Energiesaeule.schalten.uzsu.ne xt.time': problem evaluating 'sh.AUSSEN.Garten.West.Energiesaeule.schalten.uzsu .next.property.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'AUSSEN.Gartenhuette.Schaltsteckdose.schalten.uzsu .next.value': problem evaluating 'sh.AUSSEN.Gartenhuette.Schaltsteckdose.schalten.u zsu.next.property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'AUSSEN.Gartenhuette.Schaltsteckdose.schalten.uzsu .next.time': problem evaluating 'sh.AUSSEN.Gartenhuette.Schaltsteckdose.schalten.u zsu.next.property.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.RollladenZentral.Lauf.uzsu.next.value': problem evaluating 'sh.EG.Wohnen.RollladenZentral.Lauf.uzsu.next.prop erty.value['value']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.RollladenZentral.Lauf.uzsu.next.time': problem evaluating 'sh.EG.Wohnen.RollladenZentral.Lauf.uzsu.next.prop erty.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.Schaltsteckdose1.schalten.uzsu.next.val ue': problem evaluating 'sh.EG.Wohnen.Schaltsteckdose1.schalten.uzsu.next. property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.Schaltsteckdose1.schalten.uzsu.next.tim e': problem evaluating 'sh.EG.Wohnen.Schaltsteckdose1.schalten.uzsu.next. property.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.Schaltsteckdose2.schalten.uzsu.next.val ue': problem evaluating 'sh.EG.Wohnen.Schaltsteckdose2.schalten.uzsu.next. property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.Schaltsteckdose2.schalten.uzsu.next.tim e': problem evaluating 'sh.EG.Wohnen.Schaltsteckdose2.schalten.uzsu.next. property.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.FritzDect.uzsu.next.value': problem evaluating 'sh.EG.Wohnen.FritzDect.uzsu.next.property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'EG.Wohnen.FritzDect.uzsu.next.time': problem evaluating 'sh.EG.Wohnen.FritzDect.uzsu.next.property.value['next']' - KeyError (in dict)
    2024-07-03 13:34:17 WARNING lib.item.item Item 'OG.Flur.RollladenZentral.Lauf.uzsu.next.value': problem evaluating 'sh.OG.Flur.RollladenZentral.Lauf.uzsu.next.proper ty.value['value']' - KeyError (in dict)
    2024-07-03 13:34:18 WARNING lib.item.item Item 'OG.Flur.RollladenZentral.Lauf.uzsu.next.time': problem evaluating 'sh.OG.Flur.RollladenZentral.Lauf.uzsu.next.proper ty.value['next']' - KeyError (in dict)
    2024-07-03 13:34:18 WARNING lib.item.item Item 'UG.Technik.WW_Pumpe.uzsu.next.value': problem evaluating 'sh.UG.Technik.WW_Pumpe.uzsu.next.property.value['value']' - KeyError (in dict)
    2024-07-03 13:34:18 WARNING lib.item.item Item 'UG.Technik.WW_Pumpe.uzsu.next.time': problem evaluating 'sh.UG.Technik.WW_Pumpe.uzsu.next.property.value['next']' - KeyError (in dict)​

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Achtung beim Einsatz von älteren UZSU Versionen, sofern noch scipy unter 1.8.0 im Einsatz ist: https://github.com/smarthomeNG/plugi.../dependabot/34
    Wir nehmen die alte Version des Plugins aus dem aktuellen Develop Branch. Die neueste Version (seit vorigem Master) funktioniert auch ohne scipy, eine ältere Version ist somit nicht nötig und auch nicht zu empfehlen.

    Werde demnächst übrigens noch ein Update erstellen, das es ermöglicht, die nächste geplante Schaltung (samt Wert) in einem Item auszulesen. Das käme dann diesem Request nach: https://knx-user-forum.de/forum/supp...oltip-anzeigen

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Ich habe den pr gemergt, vielleicht kannst du das testen und Probleme melden. Thx

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Test der überarbeiteten Version läuft. Sieht erstmal gut aus.

    Gruß
    Wolfram

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    So ich hab jetzt doch mal die letzten Änderungen vom Plugin auf github gecheckt und gefunden, wie die Zeile davor hieß. Hab noch ein paar Verbesserungen im Logging und invalid Item Handling eingebaut, siehe hier: https://github.com/smarthomeNG/plugins/pull/916
    Ich gehe davon aus, dass aber auch schon mit den vorigen Zeilen alles geklappt hat, die Zeilen mit dem rrule warn eh nur fürs Logging.

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Die Fehlermeldung ist jedenfalls schonmal weg. Ich lasse das item zum Test in die Datenbank schreiben und berichte, sobald ich Ergebnisse von ein paar Tagen habe.

    Danke erstmal!

    Gruß
    Wolfram

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Ich denke mit dem Einfügen dieser Zeile in if "series" in time (Zeile 853 oder so..) müsste das Problem behoben sein. Kannst du das mal testen, ob dann alles so schaltet wie es soll? Hab dein Beispiel mal adaptiert und es sieht für mich gut aus..
    rrule = rrulestr(entry['rrule'], dtstart=datetime.combine(weekbefore, datetime.min.time()))
    rstr = str(rrule).replace('\n', ';')​

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Sorry, ich hatte ein item übersehen, das wohl der Auslöser des Problems ist. Ich finde darin aber auch keine Fehler und auch dieses item hat beim letzten Neustart in v1.9.5 vor ein paar Tagen keine Fehler geschmissen:
    Code:
    {'interpolation': {'type': 'none', 'initialized': False, 'itemtype': 'num', 'interval': 5, 'initage': 0}, 'list': [
    {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=MO', 'value': '3', 'time': '07:00'},
    {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=TU', 'value': '4', 'time': '08:00'},
    {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=TH', 'value': '1', 'calculated': '06:51', 'time': 'sunrise-15m'},
    {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=TU,TH,SA', 'value': '2', 'series': {'active': True, 'timeSeriesMin': 'sunrise', 'timeSeriesMax': 'sunset', 'timeSeriesIntervall': '01:00'}, 'time': 'series', 'seriesCalculated': [{'seriesMin': '07:16', 'seriesMax': '17:58', 'maxCountCalculated': 10, 'seriesDay': 'SA'}, {'seriesMin': '07:10', 'seriesMax': '17:58', 'maxCountCalculated': 10, 'seriesDay': 'TU'}, {'seriesMin': '07:06', 'seriesMax': '17:58', 'maxCountCalculated': 10, 'seriesDay': 'TH'}]},
    {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=TU,TH,SA', 'value': '3', 'series': {'active': True, 'timeSeriesMin': 'sunrise+30m', 'timeSeriesMax': 'sunset+33m', 'timeSeriesIntervall': '01:00'}, 'time': 'series', 'seriesCalculated': [{'seriesMin': '07:46', 'seriesMax': '18:31', 'maxCountCalculated': 10, 'seriesDay': 'SA'}, {'seriesMin': '07:40', 'seriesMax': '18:31', 'maxCountCalculated': 10, 'seriesDay': 'TU'}, {'seriesMin': '07:36', 'seriesMax': '18:31', 'maxCountCalculated': 10, 'seriesDay': 'TH'}]}
    ],
    'active': True, 'SunCalculated': {'sunrise': {'SA': '07:16', 'SU': '07:14', 'MO': '07:12', 'TU': '07:10', 'WE': '07:08', 'TH': '07:06', 'FR': '07:04'}, 'sunset': {'SA': '17:58', 'SU': '18:00', 'MO': '18:01', 'TU': '18:03', 'WE': '18:05', 'TH': '18:06', 'FR': '18:08'}}, 'plugin_version': '2.0.0', 'sunrise': '07:16', 'sunset': '17:58'}
    Die Logeinträge dazu sind alle doppelt. Das kann aber auch an der Einstellung meiner Logger liegen. In Summe sind es fast 2000 Zeilen (nur für das UZSU-Plugin), so dass ich jetzt mal nur die unmittelbar vor den Fehlermeldungen geloggten Meldungen für das o.g. item herausgegriffen habe:
    Code:
    2024-02-24  01:49:39 DEBUG    plugins.uzsu        scheduler_remove: name = plugins.uzsu.test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Schedule Item test.varuzsu.uzsu, Trigger: run, Changed by: Init:Cache
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Updated sun entries for item test.varuzsu.uzsu, triggered by Scheduler:UZSU. sunrise: 07:16, sunset: 17:58
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Created rrule: 'DTSTART:20240217T070000;RRULE:FREQ=WEEKLY;BYDAY=MO'' for time:'07:00'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Return from rrule next: 2024-02-26 07:00:00+01:00, value 3.
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Created rrule: 'DTSTART:20240217T070000;RRULE:FREQ=WEEKLY;BYDAY=MO'' for time:'07:00'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Not returning previous rrule 2024-02-19 07:00:00+01:00 because it's in the past.
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu with datetime 2024-02-26 07:00:00+01:00, value 3 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Created rrule: 'DTSTART:20240217T080000;RRULE:FREQ=WEEKLY;BYDAY=TU'' for time:'08:00'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Return from rrule next: 2024-02-27 08:00:00+01:00, value 4.
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Created rrule: 'DTSTART:20240217T080000;RRULE:FREQ=WEEKLY;BYDAY=TU'' for time:'08:00'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Not returning previous rrule 2024-02-20 08:00:00+01:00 because it's in the past.
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu with datetime 2024-02-27 08:00:00+01:00, value 4 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu keep 2024-02-26 07:00:00+01:00, value 3 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Could not create a rrule from rrule: 'FREQ=WEEKLY;BYDAY=TH' and time:'sunrise-15m'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-17 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise-15m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-17 06:14:04.671726+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-17 07:14:04.671726+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Looking for next sun-related time. Found rrule: DTSTART:20240217T071404;RRULE:FREQ=WEEKLY;BYDAY=TH
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-29 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise-15m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-29 05:51:37.475152+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-29 06:51:37.475152+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Result parsing time (rrule) sunrise-15m: 2024-02-29 06:51:37.475152+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sun calculation 06:51 entry not updated for item test.varuzsu.uzsu with value 06:51
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Return from rrule next: 2024-02-29 06:51:37.475152+01:00, value 1.
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Could not create a rrule from rrule: 'FREQ=WEEKLY;BYDAY=TH' and time:'sunrise-15m'
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-17 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for previous
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise-15m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        previous time for sunrise: 2024-02-17 06:14:04.671726+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-17 07:14:04.671726+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Looking for previous sun-related time. Found rrule: DTSTART:20240217T071404;RRULE:FREQ=WEEKLY;BYDAY=TH
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-22 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for previous
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise-15m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        previous time for sunrise: 2024-02-22 06:05:00.648160+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-22 07:05:00.648160+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Result parsing time (rrule) sunrise-15m: 2024-02-22 07:05:00.648160+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Not returning previous rrule 2024-02-22 07:05:00.648160+01:00 because it's in the past.
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu with datetime 2024-02-29 06:51:37.475152+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu keep 2024-02-26 07:00:00+01:00, value 3 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.471194+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:16:15.651258+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:16:15.651258+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.511035+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunset
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunset: 2024-02-24 16:58:40.938602+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunset is included and calculated as 2024-02-24 17:58:40.938602+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:16:15.651258+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:16:15.651258+01:00
    2024-02-24  01:49:40 ERROR    plugins.uzsu        Error "series" parsing time: local variable 'rrule' referenced before assignment
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.616329+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:16:15.651258+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:16:15.651258+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.672769+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunset
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunset: 2024-02-24 16:58:40.938602+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunset is included and calculated as 2024-02-24 17:58:40.938602+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-22 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-22 06:20:00.648160+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-22 07:20:00.648160+01:00
    2024-02-24  01:49:40 ERROR    plugins.uzsu        Error "series" parsing time: local variable 'rrule' referenced before assignment
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu keep 2024-02-26 07:00:00+01:00, value 3 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.832197+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise+30m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:46:15.651258+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:46:15.651258+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.872151+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunset+33m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunset: 2024-02-24 17:31:40.938602+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunset is included and calculated as 2024-02-24 18:31:40.938602+01:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise+30m
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:46:15.651258+00:00
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:46:15.651258+01:00
    2024-02-24  01:49:40 ERROR    plugins.uzsu        Error "series" parsing time: local variable 'rrule' referenced before assignment
    
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        item: test.varuzsu.uzsu
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.975237+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:40 DEBUG    plugins.uzsu        Examine param time string: sunrise+30m
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-24 06:46:15.651258+00:00
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-24 07:46:15.651258+01:00
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Given param dt=2024-02-24 00:00:00.015385+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Examine param time string: sunset+33m
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        next time for sunset: 2024-02-24 17:31:40.938602+00:00
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Sunset is included and calculated as 2024-02-24 18:31:40.938602+01:00
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Given param dt=2024-02-22 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Examine param time string: sunrise+30m
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        next time for sunrise: 2024-02-22 06:50:00.648160+00:00
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-02-22 07:50:00.648160+01:00
    2024-02-24  01:49:41 ERROR    plugins.uzsu        Error "series" parsing time: local variable 'rrule' referenced before assignment
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        uzsu active entry for item test.varuzsu.uzsu keep 2024-02-26 07:00:00+01:00, value 3 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        will add scheduler named uzsu_test.varuzsu.uzsu with datetime 2024-02-26 07:00:00+01:00 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin') and value 3.0
    2024-02-24  01:49:41 DEBUG    plugins.uzsu        scheduler_add: name = plugins.uzsu.test.varuzsu.uzsu, parameters: prio=3, value={'item': Item: test.varuzsu.uzsu, 'value': 3.0, 'caller': 'Scheduler'}, next=datetime.datetime(2024, 2, 26, 7, 0, tzinfo=tzfile('/usr/share/zoneinfo/Europe/Berlin'))
    ​
    Danke und Gruß
    Wolfram

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Sehr komisch. Kannst du mal vor Zeile 748 diese Zeile hier einfügen:
    self.logger.debug(f"Item: {item}")
    und das Log auf Debug stellen und alles was ab dem "Item: .." kommt hier posten?

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Die Meldung zeigt nicht an, von welchem uzsu-item der Fehler kommt. Aber eigentlich sehen alle bis auf die individuellen Zeiten gleich aus. Beispiel:
    Code:
    {'interpolation': {'type': 'none', 'initialized': False, 'itemtype': 'num', 'interval': 5, 'initage': 0}, 'list': [{'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU', 'value': '2', 'calculated': '17:42', 'time': '16:30<sunset-15m<;21:15'}, {'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU', 'value': '0', 'time': '23:15'}], 'active': False, 'sunrise': '07:18', 'sunset': '17:57', 'plugin_version': '2.0.0', 'SunCalculated': {'sunrise': {'FR': '07:18', 'SA': '07:16', 'SU': '07:14', 'MO': '07:12', 'TU': '07:10', 'WE': '07:08', 'TH': '07:06'}, 'sunset': {'FR': '17:57', 'SA': '17:58', 'SU': '18:00', 'MO': '18:01', 'TU': '18:03', 'WE': '18:05', 'TH': '18:06'}}}
    ​
    Ich hab mal experimentiert, ob die Fehler verschwinden, wenn ich per Widget eine Serie anlege und dann shng neu starte. Bisher habe ich aber keinen eindeutigen Effekt feststellen können.

    Gruß
    Wolfram​

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Hm, da bräuchten wir bitte das dict von deinem UZSU Item. Vom Code her wär mir soweit klar, wo das Problem liegt, aber ich weiß nicht, wie das gedacht war mit den Serien und was man da genau ändern muss. Evtl. hilft es, den Inhalt deiner UZSU zu kennen.

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Moin,

    nach dem Update auf v1.10 tauchen für mich unbekannte Meldungen im Log vom UZSU-Plugin auf:
    Code:
    2024-02-22  19:45:44 ERROR    plugins.uzsu        Error "series" parsing time: local variable 'rrule' referenced before assignment
    Das jeweilige UZSU-item ist seit Jahren unverändert und wurde bisher nicht beanstandet.

    Was kann die Ursache für den Fehler sein?

    Gruß
    Wolfram

    Einen Kommentar schreiben:


  • zzzhtc
    antwortet
    🙏 vielen Dank! So einfach. Sorry, dass ich euch damit belästigt habe.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Genau. Das struct muss weiter rechts eingerückt werden

    Einen Kommentar schreiben:


  • wvhn
    antwortet
    Ich denke Du hast das UZSU-struct auf der falschen Ebene. Dadurch schaltet die UZSU das item 'TEST.Wohnzimmer.Lampe_1', auf dem aber keine knx-Adressen definiert sind. Du musst das struct um eine ebene weiter einrücken. In der Visu ist dann das item 'TEST.Wohnzimmer.Lampe_1.Schalten.uzsu' anzusprechen.

    Gruß
    Wolfram

    Einen Kommentar schreiben:

Lädt...
X