Ankündigung

Einklappen
Keine Ankündigung bisher.

UZSU schaltet nur den nächsten Wert nach der Eingabe

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

    UZSU schaltet nur den nächsten Wert nach der Eingabe

    Hallo,
    ich habe Smarthome auf einen Raspberry umgezogen. Betriebssystem und PHP auf dem neuesten Stand Pip hat Probleme gemacht, aber es läuft alles soweit, bis auf die UZSU. Wenn ich in der smartvisu die Zeiten/Regeln eingebe und speichere tauchen diese im Scheduler in Smarthome auf. Es wird auch die nächste Aktion ausgeführt. Aber leider nur diese und nicht die Weiteren. Was triggert die nächste Berechnung? Wenn ich in der smartvisu die UZSU öffne und mit OK beende ist wieder alles gut, aber wieder nur die nächste. Habe jetzt Crontab in den Items eingesetzt. Das geht soweit. Es gibt keine Fehlermeldungen. Wo kann ich ansetzen zu suchen?
    Gruß
    Mischl

    #2
    Bitte gib noch die Versionen von smarthomeNG und smartVISU an, die Du verwendest. Und bitte gib auch die Daten an, mit denen Du die UZSU befüllst. Am besten gehst Du dazu im Admin-Interface von shNG in den item-Baum und kopierst das Dict des UZSU-Items. Das beginnt in etwa so:
    Code:
    {'interpolation': {'type': 'none', 'initialized': False, 'interval': '5', 'initage': '0', 'itemtype': 'num'}, 'list': [{'active': True, 'rrule': 'FREQ=WEEKLY;BYDAY=FR'  ...
    Die Neuberechnung des Schedulers für ein item findet immer nach der Abarbeitung des aktuellen Schedulers statt.

    Gruß
    Wolfram

    Edit: gibt es Meldungen im Logfile?
    Zuletzt geändert von wvhn; 15.03.2024, 14:44.

    Kommentar


      #3
      SmartHomeNG Version:v1.10.0-master
      SmartHomeNG Plugins Version:v1.9.5-master
      Administrations-Oberfläche:shngAdmin v0.9.3
      SmartVisu 3.4.0

      Code:
      {"interpolation": {"type": "none", "initialized": false, "interval": "5", "initage": "0", "itemtype": "bool"}, "list": [{"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR", "value": "1", "time": "05:55"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=SA,SU", "value": "1", "time": "07:30"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU", "value": "0", "time": "22:00"}], "active": false, "sunrise": "06:39", "sunset": "18:32", "plugin_version": "1.6.5", "SunCalculated": {"sunrise": {"FR": "06:39", "SA": "06:37", "SU": "06:35", "MO": "06:32", "TU": "06:30", "WE": "06:28", "TH": "06:26"}, "sunset": {"FR": "18:32", "SA": "18:34", "SU": "18:36", "MO": "18:37", "TU": "18:39", "WE": "18:40", "TH": "18:42"}}}
      Code:
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu keep 2024-03-14 07:18:00+01:00, value 0 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        will add scheduler named uzsu_KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-14 07:18:00+01:00 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin') and value 0
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        scheduler_add: name = plugins.uzsu.KG.Werkstatt.Zirkulation.uzsu, parameters: prio=3, value={'item': Item: KG.Werkstatt.Zirkulation.uzsu, 'value': '0'}, next=datetime.datetime(2024, 3, 14, 7, 18, tzinfo=tzfile('/usr/share/zoneinfo/Europe/Berlin'))
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Get sun4week for item KG.Werkstatt.Zirkulation.uzsu called by _update_item
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Updated weekly sun info for item KG.Werkstatt.Zirkulation.uzsu caller : UZSU Plugin comment : update
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Series Calculate method for item KG.Werkstatt.Zirkulation.uzsu called by UZSU Plugin. Source: update
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Updated seriesCalculated for item KG.Werkstatt.Zirkulation.uzsu caller : UZSU Plugin comment : update
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Updated sun entries for item KG.Werkstatt.Zirkulation.uzsu, triggered by _update_item. sunrise: 06:39, sunset: 18:31
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Updated sunset/rise calculations for item KG.Werkstatt.Zirkulation.uzsu caller : UZSU Plugin comment : update
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Update Item KG.Werkstatt.Zirkulation.uzsu, Caller UZSU Plugin, Source update, Dest None. Will update: False
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Calculate Item KG.Werkstatt.Zirkulation.uzsu, Trigger: dry_run, Changed by: UZSU Plugin:update
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Updated sun entries for item KG.Werkstatt.Zirkulation.uzsu, triggered by dry_run. sunrise: 06:39, sunset: 18:31
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-15 05:55:00+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-16 07:30:00+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu keep 2024-03-15 05:55:00+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-14 07:18:00+01:00, value 0 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu using now 2024-03-14 07:18:00+01:00, value 0 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-14 07:19:00+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu keep 2024-03-14 07:18:00+01:00, value 0 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:25:20 DEBUG    plugins.uzsu        scheduler_remove: name = plugins.uzsu.KG.Werkstatt.Zirkulation.uzsu
      2024-03-14  07:25:20 DEBUG    plugins.uzsu        Removing scheduler for item KG.Werkstatt.Zirkulation.uzsu[
      
      
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-14 07:19:00+01:00, value 1 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        uzsu active entry for item KG.Werkstatt.Zirkulation.uzsu keep 2024-03-14 07:18:00+01:00, value 0 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        will add scheduler named uzsu_KG.Werkstatt.Zirkulation.uzsu with datetime 2024-03-14 07:18:00+01:00 and tzinfo tzfile('/usr/share/zoneinfo/Europe/Berlin') and value 0
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        scheduler_add: name = plugins.uzsu.KG.Werkstatt.Zirkulation.uzsu, parameters: prio=3, value={'item': Item: KG.Werkstatt.Zirkulation.uzsu, 'value': '0'}, next=datetime.datetime(2024, 3, 14, 7, 18, tzinfo=tzfile('/usr/share/zoneinfo/Europe/Berlin'))
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Get sun4week for item KG.Werkstatt.Zirkulation.uzsu called by _update_item
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Given param dt=2024-03-14 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Examine param time string: sunrise
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        next time for sunrise: 2024-03-14 05:41:26.226047+00:00
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        next_time.tzinfo gives tzfile('/usr/share/zoneinfo/Europe/Berlin')
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Sunrise is included and calculated as 2024-03-14 06:41:26.226047+01:00
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Given param dt=2024-03-14 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Examine param time string: sunset
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        next time for sunset: 2024-03-14 17:31:25.073540+00:00
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Sunset is included and calculated as 2024-03-14 18:31:25.073540+01:00
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Given param dt=2024-03-15 00:00:00+01:00, tz=tzfile('/usr/share/zoneinfo/Europe/Berlin') for next
      2024-03-14  07:16:43 DEBUG    plugins.uzsu        Examine param time string: sunrise
      Die Zirkulationspumpe habe ich als Test genommen. Ich habe sie eingeschaltet und eine Minute später wieder aus. Eingeschaltet hat sie, aber nicht mehr aus :-(
      Dies sind nur Ausschnitte. Es taucht nirgends ein Fehler auf.

      Kommentar


        #4
        Sorry, hatte das ja deaktiviert. Jetzt der Aktivierte Code:
        Code:
        {"interpolation": {"type": "none", "initialized": false, "interval": "5", "initage": "0", "itemtype": "bool"}, "list": [{"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR", "value": "1", "time": "05:55"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=SA,SU", "value": "1", "time": "07:30"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU", "value": "0", "time": "22:00"}], "active": true, "sunrise": "06:37", "sunset": "18:32", "plugin_version": "1.6.5", "SunCalculated": {"sunrise": {"FR": "06:39", "SA": "06:37", "SU": "06:35", "MO": "06:32", "TU": "06:30", "WE": "06:28", "TH": "06:26"}, "sunset": {"FR": "18:32", "SA": "18:34", "SU": "18:36", "MO": "18:37", "TU": "18:39", "WE": "18:40", "TH": "18:42"}}}

        Kommentar


          #5
          Plugin-Scheduler:
          Code:
          uzsu.KG.Werkstatt.Zirkulation.uzsu 2024-03-15 22:00:00+0100 3 {'item': Item: KG.Werkstatt.Zirkulation.uzsu, 'value': '0'}
          Hier der Ausschnitt der Admin Seite:
          KG.Werkstatt.Zirkulation.uzsu KG.Werkstatt.Zirkulation (bool) True False ‪15.03.2024 22:00‬ True
          • Interpolation (Intervall) none
          • Init 0
          • Dictionary {"interpolation": {"type": "none", "initialized": false, "interval": "5", "initage": "0", "itemtype": "bool"}, "list": [{"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR", "value": "1", "time": "05:55"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=SA,SU", "value": "1", "time": "07:30"}, {"active": true, "rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU", "value": "0", "time": "22:00"}], "active": true, "sunrise": "06:37", "sunset": "18:32", "plugin_version": "1.6.5", "SunCalculated": {"sunrise": {"FR": "06:39", "SA": "06:37", "SU": "06:35", "MO": "06:32", "TU": "06:30", "WE": "06:28", "TH": "06:26"}, "sunset": {"FR": "18:32", "SA": "18:34", "SU": "18:36", "MO": "18:37", "TU": "18:39", "WE": "18:40", "TH": "18:42"}}}

          Kommentar


            #6
            Gibt es einen Grund, warum Du die Plugins nicht auf v1.10 aktualisiert hast und einen Mix fährst der mit hoher Wahrscheinlichkeit nicht 100%ig funktioniert? Das Update würde ich als erstes mal machen.

            Gruß
            Wolfram

            Kommentar


              #7
              Ich fress meinen Hut. Das war es...
              DANKE ...

              Kommentar

              Lädt...
              X