LUA variables on BLGW

3 replies
Hi everyone,

I’m programming IF ELSE statements on my BLGW and want to use some variables to make some commands work. Apparently unless defined as local the variable are global by default. However I don’t seem to be able to share variables amongst macros. Anyone any clues??
Hi, do you get the if else-statement working in a macro? I tried it several times for programming brightness-depending scenes. But without success.

I want to switch the mode in blgw if brightness is higher than xxx

Do you have an example?

ChrisBerlin wrote:

Hi, do you get the if else-statement working in a macro? I tried it several times for programming brightness-depending scenes. But without success.

I want to switch the mode in blgw if brightness is higher than xxx

Do you have an example?

Closest I’ve been able to do is use state updates from the panel

IE volume is 30.. closed drapes and blinds
or
BeoWorld Gold Membership card
Join BeoWorld

Register to access the forums, reference material, and exclusive member benefits — including our monthly prize draw.

Become a Member

December 2026 Prize Draw

Gold Members Only

As a Gold member you're automatically entered into our exclusive prize draw — your chance to win iconic Bang & Olufsen products. A unique benefit of BeoWorld Gold membership, every draw brings a new opportunity to win something special.