EasyManuals Logo

Embedded Systems LM5p-GSMC User Manual

Default Icon
291 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #228 background imageLoading...
Page #228 background image
228
{ '15/1/3', 90 },
}
function callscene(id)
local key, scene
key = 'scene_' .. id
scene = storage.get(key, scenes[ id ])
if type(scene) ~= 'table' then
alert('Scene ' .. id .. ' not found')
return
end
for _, item in ipairs(scene) do
grp.write(item[ 1 ], item[ 2 ])
end
end
function savescene(id)
local key, scene
scene = scenes[ id ]
if type(scene) ~= 'table' then
alert('Scene ' .. id .. ' not found')
return
end
for i, item in ipairs(scene) do
scene[ i ][ 2 ] = grp.getvalue(item[ 1 ])
end
key = 'scene_' .. id
storage.set(key, scene)
end
Example (Binary dimmer for DALI lamps to be able dim DALI lamp from physical pushbutton)
1) Add bindimmer function to Common functions
function bindimmer(up, down, out, event)

Table of Contents

Other manuals for Embedded Systems LM5p-GSMC

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Embedded Systems LM5p-GSMC and is the answer not in the manual?

Embedded Systems LM5p-GSMC Specifications

General IconGeneral
BrandEmbedded Systems
ModelLM5p-GSMC
CategoryDimmer
LanguageEnglish

Related product manuals