LUA inìdentifer onTimer event

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

LUA inìdentifer onTimer event

Post 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
The most dangerous phrase in any language is:
"We always done this way"
krzemo
Posts: 5
Joined: Thursday 05 January 2017 19:38
Target OS: OS X
Domoticz version:
Contact:

Re: LUA inìdentifer onTimer event

Post by krzemo »

Hi,
anyone?
I have the same question/prolem.

Regards,
Przemek
thaui
Posts: 58
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: LUA inìdentifer onTimer event

Post by thaui »

I am also looking for a solution.
gerard76
Posts: 53
Joined: Wednesday 22 March 2017 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: LUA inìdentifer onTimer event

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest