Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Problem mit cache = True

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

    - √ - Problem mit cache = True

    Hallo zusammen,
    ich bin auf ein Problem gestoßen, welches beim Initialisieren auftritt, sobald ein bestimmtes Item mit dem Atribut cache = True versehen wird.

    Die Fehlermeldung lautet wie folgt:
    Code:
     [FONT=&quot]Init SmartHome.py 1.1.888.dev[/FONT]
      [FONT=&quot]2014-12-03 18:07:54 ERROR    Main         Item Enocean.handle_bath.status: value true does not match type num.[/FONT]
      [FONT=&quot]2014-12-03 18:07:54 ERROR    Main         Item Enocean.handle_bath.status: problem creating: [/FONT]
      [FONT=&quot]Traceback (most recent call last):[/FONT]
      [FONT=&quot]  File "/usr/smarthome/lib/item.py", line 219, in __init__[/FONT]
      [FONT=&quot]    child = Item(smarthome, self, child_path, value)[/FONT]
      [FONT=&quot]  File "/usr/smarthome/lib/item.py", line 254, in __init__[/FONT]
      [FONT=&quot]    self._value = self.cast(self._value)[/FONT]
      [FONT=&quot]  File "/usr/smarthome/lib/item.py", line 94, in _cast_num[/FONT]
      [FONT=&quot]raise ValueError[/FONT]
      [FONT=&quot]ValueError[/FONT]
    In der Item.conf ist das betreffende Item folgendermaßen konfiguriert:
    Code:
    Item:
    [[handle]]
        enocean_rx_id = 12345689
        enocean_rx_eep = F6_10_00
        [[[status]]]
            type = num
            enocean_rx_key = STATUS
            visu_acl = ro
            cache = True
            enforce_updates = true
      [[handle_bath]]
        enocean_rx_id = 12345678
        enocean_rx_eep = F6_10_00
        [[[status]]]
            type = num
            enocean_rx_key = STATUS
            visu_acl = ro
            cache = True
            enforce_updates = true
    Das Seltsame ist, dass das Cachen für das erste item "handle" funktioniert. Beim zweiten item "handle-bath" gibt es die Fehlermeldung. Lässt man das cache = True weg, funktioniert alles. Hat jemand eine Idee?
    Grüße
    Alex

    #2
    Hi,

    hast Du das Item evtl. von einem bool in ein num geändert?

    Davon abgesehen kannst Du auch einfach den cache für die Datei löschen.
    var/cache/item.pfad

    Bis bald

    Marcus

    Kommentar


      #3
      Danke Marcus, das Löschen der Datei hat geholfen.

      Viele Grüße
      Alex

      Kommentar

      Lädt...
      X