mknx/smarthome

Function Trigger

Opened this issue · 0 comments

Hello

Is it possible to have details about the functions:
logic.trigger()
sh.scheduler.trigger() / sh.trigger()

What are the arguments of these functions
Is it possible to have an example.

I tested this
import datetime a = datetime.datetime.now() b = a + datetime.timedelta(0,180) logic.trigger('MinuterieBur',[],[],[],[b])

And then this (second solution)
logic.trigger('MinuterieBur',[],[],[],[datetime('2017, 11, 24, 20, 15, 00, 00000')])

The goal is to reactivate the script after x minute

The error message (with second solution) in debugger is:

Traceback (most recent call last):
File "/usr/smarthome/lib/scheduler.py", line 327, in _task
exec(obj.bytecode)
File "/usr/smarthome/logics/MinuterieBur.py", line 26, in
logic.trigger('MinuterieBur',[],[],[],[datetime('2017, 11, 24, 00, 20, 00, 00000')])
TypeError: 'module' object is not callable

But it does not work

Thank you !