Giter Site home page Giter Site logo

snapcast-ha-player's Introduction

Snapcast Player Home Assistant Integration

⚠️ Unfortunately, due to health issues I will not be able to maintain this integration in future, so your YMMV ⚠️

Simple integration designed to allow playback through a snapcast server (the built in snapcast integration doesn't support audio playback). Audio is streamed to snapcast using ffmpeg, which is preinstalled on HassOS.

Installation

Install via HACS or copy ./custom_components/snapcast_player/ to /config/custom_components/

Configuration Variables

key required example description
platform yes snapcast_player Platform name
host yes 127.0.0.1 Hostname, IP address of the snapcast server. If snapcast is running on the same machine, this can also be the path to a pipe
name no multiroom_player Entity name
port no 4953 Port to stream audio to, default is 4953
start_delay no 1s Insert a delay at the stream start. This can prevent the start of TTS announcements being cut off

Example Config

media_player:
  - platform: snapcast_player
    host: 127.0.0.1
    start_delay: 1s

TODO

  • Support modifying the play queue via the media_player.play_media service.

snapcast-ha-player's People

Contributors

s-knibbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jb1228

snapcast-ha-player's Issues

So how to we actually use this?

Installed via hacs, added the following to the config:

media_player:
  - platform: snapcast_player
    host: 127.0.0.1
    start_delay: 1s

Snapserver is running as an addon on HA.
Is there any additional configuration required on snapserver?

Here's what I use: https://github.com/rwjack/addon-snapserver-spotify
(I have also made the change locally to expose 4953)

When I go into media, select snapcast_player, and try google TTS, I get no output on my snapclient devices.

Add name config option

Add a name config option to set the entity name. Currently the entity name is hardcoded as snapcast_player. In theory this should make it possible to configure multiple player entities, connected to different servers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.