versuche ich die Dauer für autotimer aus ein Item zu holen, so bekomme ich eine Fehlermeldung
(SHNG 1.4.2.master)
der autotimer im backend:
(SHNG 1.4.2.master)
Code:
[Dg] [[Tablet]] [[[Test]]] type = bool [[[StromversorgungTest]]] type = bool value = true autotimer = sh.Dg.Tablet.StromversorgungTest.Dauer() = False = latest eval_trigger = Dg.Tablet.Test eval = not value [[[[Dauer]]]] value = 5
[('5', False), 'latest', 'Dg.Tablet.StromversorgungTest.Dauer', None] |
2018-04-13 22:56:27 ERROR Dg.Tablet.StromversorgungTest Method Dg.Tablet.StromversorgungTest exception: unsupported type for timedelta seconds component: str
Traceback (most recent call last):
File "/usr/local/smarthome/lib/scheduler.py", line 451, in _task
obj(**value)
File "/usr/local/smarthome/lib/item.py", line 775, in __run_eval
self.__update(value, caller, source, dest)
File "/usr/local/smarthome/lib/item.py", line 902, in __update
next = self._sh.now() + datetime.timedelta(seconds=_time)
TypeError: unsupported type for timedelta seconds component: str
Traceback (most recent call last):
File "/usr/local/smarthome/lib/scheduler.py", line 451, in _task
obj(**value)
File "/usr/local/smarthome/lib/item.py", line 775, in __run_eval
self.__update(value, caller, source, dest)
File "/usr/local/smarthome/lib/item.py", line 902, in __update
next = self._sh.now() + datetime.timedelta(seconds=_time)
TypeError: unsupported type for timedelta seconds component: str
Kommentar