New Bang Olufsen Masterlink Gateway / Beolink Gateway integration (MLGW/BLGW)

So here’s the problem … you are trying to detect Red after selecting TV, on the TV device. That event never goes on the bus because the TV looks at it and says “this is for me”. This is a known problem and unfortunately there is no workaround.
When the App sends the Red to the TV it goes to the mlgw and then gets forwarded to the TV so it does travel on the ML bus.

However, If you want to simply close the Apple TV when the TV set turns off you can listen to the Release command for TV.

1 Like

Ohh ok :smiley: that make sense :+1:

Hey Giovanni
I have noticed if i add my ip adress (hass.io)to the beomaster 5 ip adress under mlgw setup
Then your netradio plugin shows in the beolink app. You cant do anything with it.
But would it be possible to make it show the Music files you have on your Home Assistant :thinking: this could be very Nice and maybe do something with a beo6.

That is interesting. I have no idea how that would work though, I don’t have a beomaster 5… :slight_smile:

Hey just so that you know, I made some improvements to the code to avoid random duplicative discovery if the integration is already installed. Just need to re-install the integration and restart HA.

Hello.
Does anyone know if there is a workaround, so that HA listen for 2 events to start an automation
examble:
In AMEM if you press 1 and one sec after press 2 (the number 12) then it starts a Automation.

As it is now it is limited from 0-9, it could be nice if you could make more then 10 radio stations/playlist’s

1 Like

You could probably bang something together with an input entity, the time trigger, and a condition on the “2” trigger based on the previous digit if it was within a certain time limit.

By the way , there is a new version of the plugin in the works that increases reliability significantly and adds a lot of new features.

1 Like

yeah maybe :slight_smile: i can’t figure this out :frowning: so i hoped that there where somebody who has cracked the “code”

Just an announcement here, v2023.2.1 is a major release. It significantly improves the reliability of the plugin. Now, if MLGW will turn off or crash and restart, the plugin will automatically reconnect. Also, the code is significantly improved to be faster, for example the updates to icons and names of radio stations happen immediately.

This version also includes Trigger and Action shortcuts to make MLGW devices easier to configure in Automations in Home Assistant.

In addition, the way that Light notifications are sent changed: instead of being sent to a given Room= number, the actual name of the room is used. This may require you to update your automations that use Light signals. In addition, messages now also include the friendly name and entity name of the devices involved, to make it easier to write automations.

Finally, cleanup, refactoring, simplification and overall code maintenance to make it compliant with newer Home Assistant coding standards.

1 Like

Hey Giovanni :slight_smile:
Thank you so much for your hard work, im sure there are many who appreciate this :+1:

THANK YOU

1 Like

I like the new feature for pictures on radio stations. I have my Apple TV on the TV button, i noticed that the MLGW send the “channel” no. 255 is it possible in the future to have the same function on the TV as on the RADIO
image

Hi Thomas

I was actually thinking to build something like that.

Can you send me your configuration so I understand how the TV source is setup?
just http: http://MLGW_IP/mlgwpservices.json

Yeah :slight_smile: an e-mail or just the text here?

{“port”:9000,“project”:“Skovtoften”,“sn”:“22026306”,“timestamp”:1676389434,“version”:“2”,“zones”:[{“cameras”:[],“name”:“Stue”,“number”:1,“products”:[{“Beo4NavButton”:true,“MLN”:1,“name”:“Beovision 7”,“sources”:[{“channels”:[{“icon”:“https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/DR_TV_logo.svg/1200px-DR_TV_logo.svg.png",“name”:“DRTV”,“selectSEQ”:[1]},{“icon”:“https://play-lh.googleusercontent.com/TwdbLsCkhRAhcyE76DIRXbLI7dlprfqcoQB38CCSPN0Acd5-gEpjMVNVn-rLarbljIY=s256-rw”,“name”:"TV2 Play”,“selectSEQ”:[2]},{“icon”:“https://webtech-web-grn-assets.pluto.tv/assets/images/og_logo-9aeeae8b9656922ae6c516104741602f.png",“name”:"Pluto TV”,“selectSEQ”:[3]},{“icon”:“https://b1thisted.dk/wp-content/uploads/2019/09/0d578067-20ae-4556-a07d-d7a5dd44c58c.jpg",“name”:"Apple TV”,“selectSEQ”:[2,{“delay”:100},5,{“delay”:100},5]}],“destination”:0,“format”:“F0”,“link”:0,“name”:“TV”,“secondary”:0,“selectCmds”:[{“cmd”:128,“format”:“F0”,“unit”:0}],“selectID”:128,“statusID”:11,“uiType”:“15.0”},{“destination”:0,“format”:“F0”,“link”:0,“name”:“DVD”,“secondary”:0,“selectCmds”:[{“cmd”:134,“format”:“F0”,“unit”:0}],“selectID”:134,“statusID”:41,“uiType”:“8.0”},{“channels”:[{“icon”:“https://www.pricerunner.dk/images/logos/22694.png",“name”:“AMEM”,“selectSEQ”:[1]}],“destination”:1,“format”:“F0”,“link”:0,“name”:“A.MEM”,“secondary”:0,“selectCmds”:[{“cmd”:145,“format”:“F0”,“unit”:0}],“selectID”:145,“statusID”:121,“uiType”:“2.0”},{“channels”:[{“icon”:“https://beocentral.com/images/products/beogram4000.jpg”,“name”:"Beogram 4002”,“selectSEQ”:[1]},{“icon”:“https://www.radio.net/images/broadcasts/ea/89/10773/1/c300.png",“name”:"DR P3”,“selectSEQ”:[2]},{“icon”:“https://assets.planetradio.co.uk/img/ConfigLockScreenImageUrl/212.jpg?ver=1538492839",“name”:"Radio Soft”,“selectSEQ”:[3]}],“destination”:1,“format”:“F0”,“link”:0,“name”:“RADIO”,“secondary”:0,“selectCmds”:[{“cmd”:129,“format”:“F0”,“unit”:0}],“selectID”:129,“statusID”:111,“uiType”:“13.0”},{“destination”:1,“format”:“F0”,“link”:0,“name”:“CD”,“secondary”:0,“selectCmds”:[{“cmd”:146,“format”:“F0”,“unit”:0}],“selectID”:146,“statusID”:141,“uiType”:“4.0”}]}],“scenes”:[{“button”:1,“hints”:{},“name”:“AUDIO 1”},{“button”:2,“hints”:{},“name”:“AUDIO 2”},{“button”:3,“hints”:{},“name”:“AUDIO 3”},{“button”:4,“hints”:{},“name”:“AUDIO 4”},{“button”:5,“hints”:{},“name”:“AUDIO 5”},{“button”:6,“hints”:{},“name”:“AUDIO 6”},{“button”:7,“hints”:{},“name”:“AUDIO 7”},{“button”:8,“hints”:{},“name”:“AUDIO 8”},{“button”:9,“hints”:{},“name”:"AUDIO 9 "},{“button”:10,“hints”:{},“name”:“Stand Spisebord”}]},{“cameras”:[],“name”:“Badeværelse”,“number”:2,“products”:[{“Beo4NavButton”:false,“MLN”:2,“name”:“Beolab3500”,“sources”:[{“destination”:1,“format”:“F0”,“link”:0,“name”:“RADIO”,“secondary”:0,“selectCmds”:[{“cmd”:129,“format”:“F0”,“unit”:0}],“selectID”:129,“statusID”:111,“uiType”:“0.0”},{“destination”:1,“format”:“F0”,“link”:0,“name”:“A.MEM”,“secondary”:0,“selectCmds”:[{“cmd”:145,“format”:“F0”,“unit”:0}],“selectID”:145,“statusID”:121,“uiType”:“0.2”},{“destination”:1,“format”:“F0”,“link”:0,“name”:“CD”,“secondary”:0,“selectCmds”:[{“cmd”:146,“format”:“F0”,“unit”:0}],“selectID”:146,“statusID”:141,“uiType”:“0.0”}]}],“scenes”:[]}]}

Hi Giovanni, thanks for your great work on this!

I was just wondering if there was a way to avoid state duplication in a system with 2 gateway’s and therefore two Video Masters (BLGW at one end of the house, and MLGW at the other).

I tried different option settings on the products, and the two Video Masters are at different mln addresses, but there’s still a state duplication for shared sources.

e.g. if I select TV in the bedroom (BV10, BS Overture, BLGW), then HA registers it as active, but also the BS3 (+ BS3200 & MLGW) in the living room as active.
In this case, the BS3 doesn’t actually turn on, but turning the BS3 off in HA will turn off the BV10 too.

I know that not having a fully wired ML system is to blame, but it’s unfornately not an option where I am.

Am I missing a simple setting? Otherwise, is there a way to incorporate a MLN check for the status within HA?

Thanks in advance!

Toma

Hi @Ossendjiver !

I think you are the first person who is using the plugin with 2 gateways. You are right. The two devices should be completely independent.
Enable debug logs in configuration.yaml

logger:
  default: warning
  logs:
    custom_components.mlgw: debug

After editing configuration.yaml, restart home assistant, the plugins will spit out the configuration. Then try the scenario you described. Then Can you send me the debug logs

Thanks!

1 Like

Haha I guess it’s a fairly niche implementation.
Below is the log; I turn on the BV10 with a Beo4, I guess the BS3 is flagged as on (but does not turn on) when the status signals comes through. Then turn off the BS3 through HA, and the BV10 is turned off as well. After that, I turned on the BS3 with Beo5 just for reference.

dual-mlgw-home-assistant-2 - Pastebin.com

Hi Giovanni
So I discovered your incredible implementation and I can only be very impressed! :open_mouth:
After searching for a long time everywhere, I stay with some probably trivial questions:
• the sources dropdown lists of the Mini Media Player seem to contain the corresponding number of choices but they stay blank and their selection doesn’t have any effect: see attached screenshot and the corresponding Room/Device/Radio-favourites in the BeoLink app
• I suppose the selection of radio channels by their number or by favourite-shortcut is not possible?
Thanks for your feedback!
Luc


Hi hi! thanks for the kudos!
That’s weird. Can you send me the file:

192.168.1.10/mlgwpservices.json

where you need to replace 192.168.1.10 with the IP address of your MLGW/BLGW.

Giovanni