Replies: 10 comments 23 replies
-
Home Assistant has a handler for media device groups, as an example, both the Sonos and Yamaha Music Cast integrations support them. IMO exposing each zone as a device of sorts to HA will fit in with the existing method of use that already exists in HA. I don't see any real benefit of exposing the AmpliPi's preset groups into HA, but that could just be me. HA can have it's own control over speaker groups and to me, it makes the most sense for it to do that on it's own. With the current media players such as Sonos and Music Cast (I use these as examples because I have used them both), there are Sources which are the various physical and digital sources, i.e. Amazon Music, Line In, etc. Having the AmpliPi populate the sources for each of the zones when exposed to HA would provide the most seamless experience for existing HA users. For me, it's primarily the adding/removing of zones from a specific source that I use constantly. Examples: The garage is playing the "main source" of audio when there is "presence" in the garage. The Family room, and kitchen are playing the "main source" all the time, except when the TV is turned on at which point that zone is turned off so that the audio source is now the TV instead. Backyard speakers are joined to the "main source" when the "backyard activity" input is enabled in HA. Planned usage is for the kids rooms to each have the ability to stream their own bluetooth devices into the speakers in their rooms with the ability for HA to "play 'dinner is ready' flac file and then resume their bluetooth". |
Beta Was this translation helpful? Give feedback.
-
I would agree with most of what @bs42 has written. I do want to share my current setup that the AmpliPi will be replacing. I currently have 5x Chromecast Audios, each attached to a separate amplifier. Through the Google Home app, I'm able to pre-define "zones" (i.e. combos of speakers). This gives me the ability to ask my Google Home to play local internet radio in the kitchen, or a specific Spotify album on "inside". Homeassistant ties in with this through wall-mounted tablets that gives me the ability to control local volume as well as play/pause/skip tracks. In an ideal world, I would still be able to use some sort of voice assistant to get the AmpliPi to play a local internet radio station or Spotify resource on a specific set of AmpliPi outputs. I would also be able to do this through a wall-mounted tablet running Lovelace. |
Beta Was this translation helpful? Give feedback.
-
just stepping into the world of both HA and AmpliPi for the ongoing house-redo-project... so sorry if my input is naive or vague:
|
Beta Was this translation helpful? Give feedback.
-
I'm putting the new Sonoff NSPanels in each room I'm not entirely sure how I would like it, but these scenarios seem nice to me
So having a control panel in Home Assistant that lists each source and a toggle for each zone so you can quickly turn them all on/off from a central panel And pretty please don't make "Groups" a separate entity like Google do (e.g when I play something to "Home Group", even though is plays on all speakers, each speaker independently shows idle in HA instead of playing) |
Beta Was this translation helpful? Give feedback.
-
I'm also busy setting up a Home Assistant platform and I'm looking to replace an aging AMX Precis DSP 8x8 audio switcher with something like AmpliPi if it would have HA support. I think you need to do whatever possible to make AmpliPi discoverable and not require any configuration.yaml. This seems to be possible with other similar HA integrations. At the very least, you will need to implement the Media Player interface, presumably one for each output: https://www.home-assistant.io/integrations/media_player/ The Universal Media Player interface makes total sense too. https://www.home-assistant.io/integrations/universal/ It looks like Brian has the right idea to develop a standalone Python API module first (I see it in his development branch) and use that to implement the HA integration. |
Beta Was this translation helpful? Give feedback.
-
The way I understand it, the AmpliPi has 4 DAC's that it is capable of streaming at a given time. You can see this modeled in the UI for the device and the developer API. The HA integration path I chose was to create 4 I don't have an actual device, so I have been developing against a mocked developer service running in a VM. I believe the mute/volume controls should be working and I am just smoothing out the play/pause/next controls for pandora/spotify. Right now I don't support |
Beta Was this translation helpful? Give feedback.
-
Right now AmpliPi only supports playback control on Pandora and Spotify :/
We need to add more support to come of the other streams and add some way
of indicating each of the streams capabilities. Sorry about that.
…On Thu, Feb 3, 2022, 11:59 Juggler00 ***@***.***> wrote:
Here is my setup:
- HA v2022.2.0) as a docker container.
- 3 additional inputs (beyond rca 1-4) configured on AmpliPi: Airplay,
2x streaming internet stations
On my Lovelace dashboard I see 4x media player entities, 1 for each of the
inputs. When "idle", they each have a play button, media button (this does
nothing), and the 3-dot more button. Clicking on the more button brings up
the media pop-up that also has volume and TTS input. The TTS input works!
When streaming an internet station (initiated from AmpliPi web interface),
the media player entity changes to reflect the artwork of the station. The
play button becomes a pause button and there is also a next button.
Pressing the pause button gives an error "Failed to call service
media_player/media_pause. AmpliPi api error: The url
http://192.168.2.15:80/api/streams/0/pause returned error 404". Clicking
on the more button shows the same as before, note the volume slider does
not reflect the current level set through the AmpliPi interface.
When the input is changed to the Airplay stream, the media player entity
shows the title "Airplay". When I "cast" to the input, the play also
changes to pause and the next track button appears.
The volume control as previously noted does not reflect the current volume
level. Changing the volume through HA does not change the volume.
I fully appreciate that this is a beginning and am very grateful for your
work. Happy to test at any point! Can I ask what your involvement with
AmpliPi is? If you don't have a unit, why are you developing this?
—
Reply to this email directly, view it on GitHub
<#206 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEZPOYGTU4OMYUBXEBUOSDUZLGALANCNFSM5HEUNQPA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just throwing in some of the use cases I have for Home Assistant + AmpliPi:
|
Beta Was this translation helpful? Give feedback.
-
I posted a newer release last night that resolves the following:
I will be adding the "zone" media players within the next few days. The distinction will be:
|
Beta Was this translation helpful? Give feedback.
-
I apologize for the slow updates. I had some time to play with the zone/group assignment and it seems to work nicely. The feedback has been great, please keep it coming! |
Beta Was this translation helpful? Give feedback.
-
We know many of you are planning on integrating AmpliPi into your Home Assistant (HA) setups.
One developer has already started working on a prototype HA integration, see #184 for the initial plan, but we would like to use their resources efficiently.
What HA integrations and automations would you create, assuming AmpliPI was available in HA?
Please add an answer that describes the functionality you would like or up-vote others.
Beta Was this translation helpful? Give feedback.
All reactions