Page 1 of 1

Determine if script trigger is node update vs other script update

Posted: Sunday 14 February 2021 21:46
by lastofthejediknights
Hi,

Is it possible to determine the source of the update of a device's value?
i.e. in a script, activated upon a device update, can I determine whether the change was due to an INCOMING data update, as opposed to a change to the device from another script for example?

Re: Determine if script trigger is node update vs other script update

Posted: Sunday 14 February 2021 21:54
by waltervl
For a switch you can check the device log.
For a sensor I think the easiest way is to check the domoticz log file.

Re: Determine if script trigger is node update vs other script update

Posted: Sunday 14 February 2021 21:58
by waaren
lastofthejediknights wrote: Sunday 14 February 2021 21:46 Is it possible to determine the source of the update of a device's value?
A similar question was answered here