Page 1 of 1

LUA inìdentifer onTimer event

Posted: Tuesday 29 November 2016 12:26
by emme
Ciao
Is it possible to identify if a devicechanged event has been triggered by an OnTimer or a user/manual activation?

in the log I can see:

Code: Select all

2016-11-29 12:21:57.782 User: marco initiated a switch command (740/NET_SpeedTest/On)
and for the same device......

Code: Select all

2016-11-29 12:20:01.634 Schedule item started! Name: NET_SpeedTest, Type: On Time, DevID: 740, Time: 2016-11-29 12:20:01
If domoticz understand the timer vs manual activation, my intention is to define the same in LUA...

...but how?! :P

ciao
M

Re: LUA inìdentifer onTimer event

Posted: Friday 13 January 2017 21:17
by krzemo
Hi,
anyone?
I have the same question/prolem.

Regards,
Przemek

Re: LUA inìdentifer onTimer event

Posted: Thursday 13 April 2017 19:54
by thaui
I am also looking for a solution.

Re: LUA inìdentifer onTimer event

Posted: Friday 14 April 2017 8:56
by gerard76
You could create a dummy device and have that dummy device be switched by the timer and then script to turn on the real device and then you also know the timer was triggered. The manual action would be on the device itself.