Page 1 of 1

RFLink does not work in combo with dzVents script

Posted: Saturday 01 December 2018 23:28
by egrootoonk
I have a problem with RFLink

When I use Domoticz dzVents script the LED lights aren't switch on and off, but when I use the Domotiz GUI, they do.
I turned on Debug in RFLink but from a loggin POV it seems to work fine. But in real live it doesn't. the LED leds are only switched on when I use the Domoticz GUI.

I have a thread below where the whole dzVents script is reviewed and it seems that its not dzVends
viewtopic.php?f=59&t=25899&p=199254#p199038

Is there a way to have a even more detailed log, or can you look at the thread above. I'm realy stuck and don't know what to do.

Edwin

Re: RFLink does not work in combo with dzVents script

Posted: Thursday 06 December 2018 15:18
by egrootoonk
I think is a bug.

I had to add a .afterSEc(1) to the switchOn() in order to make it work.
It seems to a bug to me. Apperently the PIR sends multiple time the ON signal when it's triggered and the RFLink gateway can't handle it.

Code: Select all

return {
        on = { devices = { "PIR" }},

   execute = function(domoticz, switch)

        if switch.active  then

             domoticz.devices(73).switchOn().checkFirst().afterSec(1)
             domoticz.devices(73).switchOff().checkFirst().afterSec(10)
        end
    end
}