This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

NodOn wallplug - multiple event triggering on one trigger
#3
(12.07.2018, 10:16)admin Wrote: Are you talking about standard EnOcean wall switch, single or double rockers?

This one:
https://www.amazon.de/Nod-SIN-2-1-01-Eno...KAQMJ15DWH

One relay and 2 inputs, but I've connected only first input. It is a device which has profile not supported by LM but by using some other it works:
F6-04-01 as EnOcean->KNX
F6-01-03 as KNX->EnOcean

I've tried filter one value but unfortunately probably this 2 telegrams starts on the same time and filter telegram is inverted on same value:
Code:
value = event.getvalue()
alias = grp.alias(event.dst)
zone, mode = alias:match('(.*)_(.*)')
log(mode, value, event)

statusAlias = zone .. '_status'
status = grp.getvalue(statusAlias)

filterAlias = zone .. '_filter'
filter = grp.getvalue(filterAlias)

if mode == 'toggle' and not value then
 if filter then
   grp.write(statusAlias, not status)
 end
 grp.write(filterAlias, not filter)
elseif mode == 'on/off' then
 grp.write(statusAlias, value)
end

Attached Files Thumbnail(s)
   
Done is better than perfect
Reply


Messages In This Thread
RE: NodOn wallplug - multiple event triggering on one trigger - by buuuudzik - 12.07.2018, 10:27

Forum Jump: