12.07.2018, 10:27
(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
Done is better than perfect