BeoLiving news & support from Khimo!

636 replies
......

Actually, there is undocumented functionality in MLGW (and maybe also in BLGW) through the CLI to tap into the full Masterlink bus.

 

Check this out:

I built an integration with Home Assistant, the leading open-sourche home automation, here:

My B&O Icons:

Beovision-Avant.png Beovision-Avant.png
Beosound.png Beosound.png
giac

Hi Khimo.

Can you help me with some “simple” LUA code? I just want to make a toggle on / toggle off macro for my M3.

I use LK-IHC to turn the radio On - but it would fantastic to turn i on with the same input.

Thank you

Christian

 

function(event, engine) 
2
  engine.fire("Stueplan/Køkken/AV renderer/Beoplay M3/Playqueue add TuneIn station?Name=Radio Soft 950&Play now=true&Station id=s77506")
3
  engine.delay(1,0)
4
  engine.fire("Stueplan/Køkken/AV renderer/Beoplay M3/Volume level?Level=15")
5
end 

 

Is this possible:

I walk into my bathroom, a sensor sees that someone is in the room, turn on the lights and start playing radio on the Beoplay M3

And if so, want movement sensor do you recommend that I can buy in Denmark.

And I have seen Philips Hue have one, can that be used?

CTR wrote:

Hi Khimo.

Can you help me with some “simple” LUA code? I just want to make a toggle on / toggle off macro for my M3.

I use LK-IHC to turn the radio On - but it would fantastic to turn i on with the same input.

Thank you

Christian


Hi CTR, Have you had a look at our link? I think the "" is a similar (albeit more complex) example of what you want to do.

For your specific case, after turning on your M3 with a source, your lua macro could look something like this:

-- query the M3's station
local m3 = engine.query("Stueplan/Køkken/AV renderer/Beoplay M3")
-- save the M3's source ID local SEL_SOURCE = m3[1].get_string("sourceUniqueId")
-- get all the info from the speakers in your installation
local speakers = engine.query("Stueplan/*/AV renderer/*") -- Iterate through them setting the M3 source for i, s in ipairs(speakers) do engine.fire(s.area() .. "/" .. s.zone() .. "/AV renderer/" .. s.name() .. "/Select source by id?sourceUniqueId=" .. SEL_SOURCE) end
Hope this gives you the idea!


Emil Jensen wrote:

Is this possible:

I walk into my bathroom, a sensor sees that someone is in the room, turn on the lights and start playing radio on the Beoplay M3

And if so, want movement sensor do you recommend that I can buy in Denmark.

And I have seen Philips Hue have one, can that be used?


Emil, indeed the this setup would be possible, sounds nice! I believe your best options for motion sensors would be going for LK, Lutron or KNX. With these you will be able to configure their sensors as triggers to the BLI's scenes.

Probably been said a few times, but could I put in a vote for Miele@home integration for BLI https://www.miele.com/developer/index.html

And also for tado please? https://www.openhab.org/addons/bindings/tado/

Thanks 🤒

Emil Jensen wrote:

Is this possible:

I walk into my bathroom, a sensor sees that someone is in the room, turn on the lights and start playing radio on the Beoplay M3

And if so, want movement sensor do you recommend that I can buy in Denmark.

And I have seen Philips Hue have one, can that be used?

hello emil. easier, and cheaper if you don't have a knx system yet, you can do this via phillips hue. the hue motion sensor detects movement and switches a hue lamp on to 100% via the hue app. this hue lamp (STATE_UPDATE? LEVEL = 100) can be used in the blgw as a trigger for a macro. (Send command? Command = JOIN & Continue type = short_press) Disadvantages: small time delay and if you don't need a hue lamp you can also use a hue led stripe without a stripe.

beoandy

beoandy wrote:

Emil Jensen wrote:

Is this possible:

I walk into my bathroom, a sensor sees that someone is in the room, turn on the lights and start playing radio on the Beoplay M3

And if so, want movement sensor do you recommend that I can buy in Denmark.

And I have seen Philips Hue have one, can that be used?

hello emil. easier, and cheaper if you don't have a knx system yet, you can do this via phillips hue. the hue motion sensor detects movement and switches a hue lamp on to 100% via the hue app. this hue lamp (STATE_UPDATE? LEVEL = 100) can be used in the blgw as a trigger for a macro. (Send command? Command = JOIN & Continue type = short_press) Disadvantages: small time delay and if you don't need a hue lamp you can also use a hue led stripe without a stripe.

beoandy

Thank you Beoandy,

Yes I would use a Hue Lamp anyways, and the sensor is much cheaper, I will try :) 

benjnz wrote:

Probably been said a few times, but could I put in a vote for Miele@home integration for BLI https://www.miele.com/developer/index.html

And also for tado please? https://www.openhab.org/addons/bindings/tado/

Thanks 🤒

Hi Beninz, we will have a look and add them to our list of requested integrations!

 

beoandy wrote:

easier, and cheaper if you don't have a knx system yet, you can do this via phillips hue. the hue motion sensor detects movement and switches a hue lamp on to 100% via the hue app. this hue lamp (STATE_UPDATE? LEVEL = 100) can be used in the blgw as a trigger for a macro. (Send command? Command = JOIN & Continue type = short_press) Disadvantages: small time delay and if you don't need a hue lamp you can also use a hue led stripe without a stripe.

Great tip BeoAndy!

Emil Jensen wrote:

Is this possible:

I walk into my bathroom, a sensor sees that someone is in the room, turn on the lights and start playing radio on the Beoplay M3

And if so, want movement sensor do you recommend that I can buy in Denmark.

And I have seen Philips Hue have one, can that be used?

Hello Emil,

what I have done is to start an M5 when I turn the lights on. If any A/V rendere is playing any source then the M5 joins, otherwise it starts on spotify I

decided to go for the lights state as an event cause the sensor to be reliable it has to cover all the area and I should move "constantly" (my bathroom is a bit big).

For controlling the lights I use fibaro.

Below you can find the lua😕

function(event, engine) 

 

  -- Define the resource address in your project:

  local music_player_address = "Main/*/AV renderer/*"

  local bathroom_address = "Main/Bathroom/AV renderer/Beoplay M5 Bathroom"

 

   -- Get music player state

   local music_player = engine.query(music_player_address)[1]

   if music_player.get("sourceUniqueId") ~= "" then

       engine.fire(bathroom_address .. "/Send command?Command=JOIN&Continue type=short_press")

   else 

  engine.fire("Main/Bathroom/AV renderer/Beoplay M5 Bathroom/Select source?Connector=&Origin=local&Source Type=SPOTIFY")

 

   end

end 

 

I hope that I have no errors, at least for me it works as intended.

Yet another couple of crazy question that I'm struggling to find an answer for which maybe just wish list items 😕

In Resources - on Philips Hue for the sensors and smart buttons there's no obvious listing for them when I "Load resources form the connected system" I can't notice anything in the list from the Hue Hub that maybe them, if not would support for those please go in the wish list?

In Macros - would it be possible in Events (to get on the wish list please) that the System and Clock option would give you a choice of a time slice of the day say from X HH:mm to Y HH:mm? The event would only be registered and therefore the commands only trigger during that period if the event was fulfilled?

......
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.