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
#7
For this module this is enough configuration:
EnOcean->KNX: F6-02-01 (first object S2, second S1)
KNX->EnOcean: F6-01-03 (connect on/off to only first object to control relay; select "Send telegram")

One device is controlled via such set of objects:
Zone 1_on/off - command object from LM true = on, false = off
Zone 1_toggle 1 - status of click (used for update the Zone 1_status)
Zone 1_toggle 2 - status of click (used for switching other object)
Zone 1_status - calculated relay status

These objects should have tag e.g. "enocean_st":
Zone 1_on/off
Zone 1_toggle 1

This script should be connected to above tag "enocean_st":

Code:
-- Updating relay state

value = event.getvalue()
alias = grp.alias(event.dst)
zone, mode = alias:match('(.*)_(.*)')

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

if mode == 'toggle 1' then
 grp.write(statusAlias, not status)
elseif mode == 'on/off' then
 grp.write(statusAlias, value)
end
Done is better than perfect
Reply


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

Forum Jump: