From 1a2cc58e035386fec8e2f31298408b0587dba66e Mon Sep 17 00:00:00 2001 From: mj23000 Date: Wed, 25 Sep 2024 13:38:21 +0000 Subject: [PATCH 1/4] Add device trigger documentation --- source/_integrations/bang_olufsen.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/bang_olufsen.markdown b/source/_integrations/bang_olufsen.markdown index 943f45c00359..ce4029436334 100644 --- a/source/_integrations/bang_olufsen.markdown +++ b/source/_integrations/bang_olufsen.markdown @@ -250,6 +250,11 @@ data: WebSocket notifications received from the device are fired as events in Home Assistant. These can be received by listening to `bang_olufsen_websocket_event` event types, where `device_id` or `serial_number` can be used to differentiate devices. +### Device triggers +Device triggers for most of the physical controls are available for all devices. + +Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. To trigger these triggers, enter the `Control` or `Light` submenus by pressing `Select` and press any of the compatible buttons, or enter the submenus by pressing `Right` and trigger any of the renamable functions (Enable debug logging to see what IDs are associated with the different functions). Each button press will send a `KeyPress` and a `KeyRelease` event and therefore also a `KeyPress` and a `KeyRelease` device trigger. + ### Getting Deezer URIs To find Deezer playlist, album URIs, and user IDs for Deezer flows, the Deezer website has to be accessed. When navigating to an album, the URL will look something like: , and this needs to be converted to: `album:ALBUM_ID` and the same applies to playlists, which have the format: `playlist:PLAYLIST_ID`. From 38832fe107a0013b9e1e0f59b2a0e3c055804d0e Mon Sep 17 00:00:00 2001 From: mj23000 Date: Wed, 25 Sep 2024 13:56:52 +0000 Subject: [PATCH 2/4] Rewrite documentation --- source/_integrations/bang_olufsen.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/_integrations/bang_olufsen.markdown b/source/_integrations/bang_olufsen.markdown index ce4029436334..0d170f627b47 100644 --- a/source/_integrations/bang_olufsen.markdown +++ b/source/_integrations/bang_olufsen.markdown @@ -253,7 +253,11 @@ WebSocket notifications received from the device are fired as events in Home Ass ### Device triggers Device triggers for most of the physical controls are available for all devices. -Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. To trigger these triggers, enter the `Control` or `Light` submenus by pressing `Select` and press any of the compatible buttons, or enter the submenus by pressing `Right` and trigger any of the renamable functions (Enable debug logging to see what IDs are associated with the different functions). Each button press will send a `KeyPress` and a `KeyRelease` event and therefore also a `KeyPress` and a `KeyRelease` device trigger. +Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. Enter the submenus __Control__ or __Light__ by pressing __Right__ and trigger any of the renamable functions. Additionally the __Control__ and __Light__ submenus can be entered by pressing __Select__, which will make most of the buttons trigger an event. Each compatible button press will send a __KeyPress__ and a __KeyRelease__ event and therefore also a __KeyPress__ and a __KeyRelease__ device trigger. + +{% tip %} +Enable debug logging to see what IDs are associated with the different functions. +{% endtip %} ### Getting Deezer URIs From 1da564813fc5951c88642e206b9d255683f0d5fd Mon Sep 17 00:00:00 2001 From: mj23000 Date: Wed, 25 Sep 2024 14:13:57 +0000 Subject: [PATCH 3/4] Apply coderabbitai comments --- source/_integrations/bang_olufsen.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/bang_olufsen.markdown b/source/_integrations/bang_olufsen.markdown index 0d170f627b47..189c2890e0be 100644 --- a/source/_integrations/bang_olufsen.markdown +++ b/source/_integrations/bang_olufsen.markdown @@ -250,10 +250,11 @@ data: WebSocket notifications received from the device are fired as events in Home Assistant. These can be received by listening to `bang_olufsen_websocket_event` event types, where `device_id` or `serial_number` can be used to differentiate devices. + ### Device triggers Device triggers for most of the physical controls are available for all devices. -Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. Enter the submenus __Control__ or __Light__ by pressing __Right__ and trigger any of the renamable functions. Additionally the __Control__ and __Light__ submenus can be entered by pressing __Select__, which will make most of the buttons trigger an event. Each compatible button press will send a __KeyPress__ and a __KeyRelease__ event and therefore also a __KeyPress__ and a __KeyRelease__ device trigger. +Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. Enter the submenus __Control__ or __Light__ by pressing __Right__ and trigger any of the renamable functions. Additionally, the __Control__ and __Light__ submenus can be entered by pressing __Select__, which will make most of the buttons trigger an event. Each compatible button press will send a __KeyPress__ and a __KeyRelease__ event, and therefore also a __KeyPress__ and a __KeyRelease__ device trigger. {% tip %} Enable debug logging to see what IDs are associated with the different functions. From 272765c11fd50e0c16f1bb5b648b447ffbbea050 Mon Sep 17 00:00:00 2001 From: mj23000 Date: Wed, 25 Sep 2024 14:21:15 +0000 Subject: [PATCH 4/4] Apply coderabbitai comment --- source/_integrations/bang_olufsen.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/bang_olufsen.markdown b/source/_integrations/bang_olufsen.markdown index 189c2890e0be..3cbdb164f46b 100644 --- a/source/_integrations/bang_olufsen.markdown +++ b/source/_integrations/bang_olufsen.markdown @@ -252,7 +252,7 @@ WebSocket notifications received from the device are fired as events in Home Ass ### Device triggers -Device triggers for most of the physical controls are available for all devices. +Device triggers for most of the physical controls are available for all devices. Device triggers for the [Beoremote One](https://www.bang-olufsen.com/en/dk/accessories/beoremote-one) are supported. Enter the submenus __Control__ or __Light__ by pressing __Right__ and trigger any of the renamable functions. Additionally, the __Control__ and __Light__ submenus can be entered by pressing __Select__, which will make most of the buttons trigger an event. Each compatible button press will send a __KeyPress__ and a __KeyRelease__ event, and therefore also a __KeyPress__ and a __KeyRelease__ device trigger.