Search found 7 matches

by jesses
Sunday 04 February 2018 20:43
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8302

Re: How to get status of a group

I tried it for a few days. When the sensor detects motion, i see the following in the log: 2018-02-04 20:37:00.799 EventSystem: Script event triggered: slaapkamerjm_uit 2018-02-04 20:37:00.802 EventSystem: Script event triggered: woonkamer_uit 2018-02-04 20:37:39.593 dzVents: Info: ------ Start ...
by jesses
Tuesday 30 January 2018 20:15
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8302

Re: How to get status of a group

I did something similar in dzVents. Hope this will help. Please note that checkFirst() is available in dzVents 2.3.0 onwards which is part of domoticz Beta So it took me some time to fix the upgrade. Now i am running dzvents 2.4.1 (this should support checkfirst). The script is not working, I see ...
by jesses
Wednesday 24 January 2018 20:09
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8302

Re: How to get status of a group

I did something similar in dzVents. Hope this will help. Please note that checkFirst() is available in dzVents 2.3.0 onwards which is part of domoticz Beta -- CheckFirst() available in dzVents 2.3.0 return { -- active = false, on = { devices = { "WoonkamerPIR" } }, execute = function( domoticz ...
by jesses
Wednesday 24 January 2018 20:06
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8302

Re: How to get status of a group

I did something similar in dzVents. Hope this will help. Please note that checkFirst() is available in dzVents 2.3.0 onwards which is part of domoticz Beta -- CheckFirst() available in dzVents 2.3.0 return { -- active = false, on = { devices = { "WoonkamerPIR" } }, execute = function( domoticz ...
by jesses
Wednesday 24 January 2018 10:13
Forum: LUA
Topic: How to get status of a group
Replies: 20
Views: 8302

Re: How to get status of a group

It is not a script its a function: Below is a part of my script script_device_motion.lua The function checks if a group if switches is on, off or mixed. Hi Gert, Thanks for the script function. Unfortunately I get some errors using it. The log error is: Error: EventSystem: in script_device_motion ...
by jesses
Wednesday 24 January 2018 9:01
Forum: LUA
Topic: Scripting in LUA for lights
Replies: 2
Views: 2660

Re: Scripting in LUA for lights

@Jesses, @first question: to check the state of a group in LUA check https://www.domoticz.com/forum/viewtopic.php?t=9859 @second question: this is not a problem; domoticz will just send the off signal. I might we worthwhile for you to have a look at dzVents https://www.domoticz.com/wiki/DzVents ...
by jesses
Tuesday 23 January 2018 12:12
Forum: LUA
Topic: Scripting in LUA for lights
Replies: 2
Views: 2660

Scripting in LUA for lights

Hi, I just started using Domoticz. The version and hardware I use: Raspberry PI 2 B Jessie lite Raspbarian Domoticz: Version: 3.8153 / Build Hash: 494fff7 Fibaro Motion Sensor V2 AEON labs zwave USB gen5 I have almost no experience with LUA but I used the available examples I found online and the ...