-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
140 additions
and
8 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Cron actions | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
validate: | ||
runs-on: "ubuntu-latest" | ||
name: Validate | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
|
||
- name: HACS validation | ||
uses: "hacs/action@main" | ||
with: | ||
category: "integration" | ||
ignore: brands | ||
|
||
# - name: Hassfest validation | ||
# uses: "home-assistant/actions/hassfest@master" |
10 changes: 5 additions & 5 deletions
10
.github/workflows/validate.yml → .github/workflows/hacs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Validate | ||
name: HACS Action | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
validate-hacs: | ||
hacs: | ||
name: HACS Action | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- name: HACS validation | ||
- uses: "actions/checkout@v2" | ||
- name: HACS Action | ||
uses: "hacs/action@main" | ||
with: | ||
category: "integration" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Test hassfest | ||
|
||
on: | ||
pull_request: | ||
branches: ["master"] | ||
push: | ||
branches: ["master"] | ||
|
||
jobs: | ||
hassfest: | ||
runs-on: ubuntu-latest | ||
name: hassfest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test hassfest | ||
uses: home-assistant/actions/hassfest@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Bluesound" | ||
"Bluesound", | ||
"HACS" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Alternative Bluesound Integration for Home Assistant | ||
This project is an alternative integration for Bluesound speakers. | ||
|
||
## Main features | ||
* Group variable refreshes properly in Home Assistant | ||
* Group variable works with groups bigger than two | ||
* Works with [Mini Media Player](https://github.com/kalkih/mini-media-player) grouping | ||
* Further updates if improvements can be made |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,86 @@ | ||
# bluesound_alt | ||
Custom Bluesound HACS integration | ||
# Alternative Bluesound Integration for Home Assistant | ||
This project is an alternative integration for Bluesound speakers. | ||
|
||
[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=aunefyren&repository=bluesound_alt) | ||
|
||
<br> | ||
<br> | ||
|
||
> [!IMPORTANT] | ||
> This integration is built on top of the official one. I did not create all the original source code, but I am developing it further. Everything might not be perfect yet as I am learning and fixing the code. Feel free to open an issue to contribute. | ||
## Main features | ||
* Group variable refreshes properly in Home Assistant | ||
* Group variable works with groups bigger than two | ||
* Works with [Mini Media Player](https://github.com/kalkih/mini-media-player) grouping | ||
* Further updates if improvements can be made | ||
|
||
<br> | ||
<br> | ||
|
||
## Installation instructions | ||
The installation within Home Assistant is identical to the official Bluesound integration, but you have to select the platform `bluesound_alt` for your media players. | ||
|
||
1. Install `bluesound_alt` in HACS (might have to be added as a custom repository) | ||
2. Open the Home Assistant `configuration.yaml` and add the Bluesound media speakers using the `bluesound_alt` platform | ||
|
||
`configuration.yaml` example: | ||
``` | ||
media_player: | ||
- platform: bluesound_alt | ||
hosts: | ||
- host: 192.168.10.73 | ||
name: C700 Amplifier | ||
- host: 192.168.10.46 | ||
name: Pulse Soundbar | ||
- host: 192.168.10.77 | ||
name: Pulse Flex Bathroom | ||
- host: 192.168.10.93 | ||
name: Pulse Flex Office | ||
``` | ||
|
||
<br> | ||
<br> | ||
|
||
### Example: Mini Media Player YAML | ||
I fixed the original integration for Bluesound mostly because I wanted to do proper speaker grouping. This is something I wanted to achieve through the Mini Media Player card. Below is an example of how you can use the `bluesound_alt` speaker devices through Mini Media Player: | ||
|
||
``` | ||
type: vertical-stack | ||
cards: | ||
- type: custom:mini-media-player | ||
entity: media_player.pulse_soundbar_2 | ||
artwork: material | ||
group: false | ||
hide: | ||
power: true | ||
icon: true | ||
source: false | ||
speaker_group: | ||
platform: bluesound | ||
show_group_count: true | ||
entities: | ||
- entity_id: media_player.pulse_soundbar_2 | ||
name: Living room soundbar | ||
- entity_id: media_player.c700_amplifier_2 | ||
name: Living room stereo | ||
- entity_id: media_player.pulse_flex_bathroom | ||
name: Bathroom speaker | ||
- entity_id: media_player.pulse_flex_office_2 | ||
name: Office speaker | ||
``` | ||
|
||
Note that the platform here says `bluesound`. This is because Mini Media Player sort of has Bluesound support, but it doesn't work properly because the official integration is old. By selecting `bluesound` in the card configuration we are using their Bluesound settings with our Bluesound Alt devices. | ||
|
||
Result: | ||
|
||
![Alt text](.github/assets/mini-media-player-example.png) | ||
|
||
<br> | ||
<br> | ||
|
||
## Ideas for further development | ||
Would love to hear how many Bluesound users there are who also use Home Assistant. Hoping to hear some suggestions on what people are missing and what could be improved. | ||
* Optimize code for faster/more efficient speaker communication? | ||
* Add speakers through the UI? |