Device type script triggers on all devices with built in editor?

Moderator: leecollings

Post Reply
marin849
Posts: 43
Joined: Tuesday 27 May 2014 10:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4xxx
Location: Sweden
Contact:

Device type script triggers on all devices with built in editor?

Post by marin849 »

I have a device called "P_tot" and a script "script_device_p_tot.lua" in /scripts/lua.
This works fine, and the script is only executed when the utility sensor "P_tot" is updated.

The problem: If I instead create a new script of type "device" in the built-in script editor and paste the code there and save it, it gets triggered when ANY device is updated. I have tried saving the script as "P_tot" and "p_tot" with the same result.

I also tested a script that triggers on uservariables (with the built-in editor) but that works fine!

Any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest