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:
In der Item.conf ist das betreffende Item folgendermaßen konfiguriert:
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
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="]Init SmartHome.py 1.1.888.dev[/FONT] [FONT="]2014-12-03 18:07:54 ERROR Main Item Enocean.handle_bath.status: value true does not match type num.[/FONT] [FONT="]2014-12-03 18:07:54 ERROR Main Item Enocean.handle_bath.status: problem creating: [/FONT] [FONT="]Traceback (most recent call last):[/FONT] [FONT="] File "/usr/smarthome/lib/item.py", line 219, in __init__[/FONT] [FONT="] child = Item(smarthome, self, child_path, value)[/FONT] [FONT="] File "/usr/smarthome/lib/item.py", line 254, in __init__[/FONT] [FONT="] self._value = self.cast(self._value)[/FONT] [FONT="] File "/usr/smarthome/lib/item.py", line 94, in _cast_num[/FONT] [FONT="]raise ValueError[/FONT] [FONT="]ValueError[/FONT]
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
Grüße
Alex
Kommentar