Event twice triggered

Post Reply
juankar
Posts: 504
Joined: Saturday 30 August 2014 20:20
Target OS: Raspberry Pi
Domoticz version:
Location: Spain
Contact:

Event twice triggered

Post by juankar » Wednesday 21 December 2016 1:39

I have seen that my thermostat (Qubino ZMNHID1) triggers an associated event twice when I change its Mode (and I can not read the value of the thermostat Mode in lua).
Looking the log I see that device reports the mode status twice, although controller sends just one command GET.
Is it a question of OpenZwave or a config param or...?

User avatar
jannl
Posts: 955
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Geleen
Contact:

Re: Event twice triggered

Post by jannl » Wednesday 21 December 2016 8:08

Do you check in your device script which device triggered the event? Remember every device script is run with every device change

juankar
Posts: 504
Joined: Saturday 30 August 2014 20:20
Target OS: Raspberry Pi
Domoticz version:
Location: Spain
Contact:

Re: Event twice triggered

Post by juankar » Wednesday 21 December 2016 22:25

This script from Domoticz wiki is very useful

Code: Select all

for deviceName,deviceValue in pairs(devicechanged) do
    print ("Device based event fired on '"..deviceName.."', value '"..tostring(deviceValue).."'");
end  
And log shows when and which script is triggered. And I'm sure that the script is triggered twice when I change the thermostate mode.
And digging in log I can see that this device send one command Get but receive two answers to this command get. So I think that every answer trigger the event.
The question is then why Qubino ZMNHID1 returns to answers to one command Get?

Although I patched this issue using a user var.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest