return { on = { devices = {'Przycisk'} }, logging = { level = domoticz.LOG_DEBUG, marker = 'Przycisk', }, execute = function(domoticz, device) local Dom1 = domoticz.groups('Parter') if (device.state == 'On' ) then if (Dom1.state == 'Off') then Dom1.switchOn() elseif (Dom1.state == 'On') then Dom1.switchOff() end end end }