this night I was wake up by my alarm script.
Now I'm checking the log and I found this issue :
Code: Select all
Mar 21 04:08:26 domoticzstable domoticz: OpenZWave: Received Node Dead notification from HomeID: 4081278406, NodeID: 82 (0x52)
Mar 21 04:08:26 domoticzstable domoticz: EventSystem: Script event triggered: AllarmeRileva
Mar 21 04:08:26 domoticzstable domoticz: 2017-03-21 04:08:26.457 (ZWAVE CONTROLLER) Light/Switch (PIR ALARM CUCINA2)
Please note that NodeID: 82 is "PIR ALARM CUCINA2"
The script "AllarmRileva" is activated by Device event , and check for source device in order to know if trigger the "Siren".
Here you are a little part of the script :
Code: Select all
tc=next(devicechanged)
switch=tostring(tc)
if uservariables["AlarmActive"] ~= 0 and uservariables["AlarmDetected"] == 0 then
if otherdevices['Domoticz Security Panel'] == 'Arm Away' then
if (switch:sub(1,9) == 'PIR ALARM') then
ScriveLog('PIR ALARM motion detected : '..switch)
commandArray['Variable:AlarmDetected'] = '1'
end