(27.05.2023, 07:06)admin Wrote: This script must be event not resident.
okay, what about the input address then? same as event address?
Okay I got It working, but not the way I think It should work!
If I put a 1 in the " AddressBlocking = '32/1/7' " then the script kinda works, but the retriggering is acting up, it jumps all over the place.
Maybe I expect the script to behave different, I have 10 "toggle spring buttons" short press they send a 1 for a short time to 4/0/1 long press (2 sec) they send a 1 for a short time to 32/1/7, you click 1 button the light turns on, you click it again and the light keeps on but the timer resets to its beginning state. You hold 1 button for 2 sec and the light turns off and the timer goes to 0.
Code:
Event address '4/0/1'
-- Set input address
AddressInput = '4/0/1' -- 01. 1 bit (boolean)
-- Set output address
AddressOutput = '32/1/6' -- 01. 1 bit (boolean)
-- Set external time address (optional)
AddressExternalTime = '55/1/4' -- 07. 2 byte unsigned integer
-- Use time left indication
UseTimeLeft = true -- Set to false if no time left indication is used
-- Set feedback adress of time left indication (optional)
AddressTimeLeft = '32/1/5' -- 255 byte string
-- Set blocking address
AddressBlocking = '32/1/7'
-- Set time delay (Used when external time is not available)
SetDelay = 20 -- 2 minutes
-- Seconds or Minutes
SetSec = true -- Set to false for Minutes
-- Set factor delay (Multiplies Delay)
SetFac = 1
-- Logic can be turned of by value 0
Off_by_Value_Zero = false