GithubHelp home page GithubHelp logo

basnijholt / media_player.kef Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 0.0 165 KB

πŸ πŸ”ˆ Home Assistant integration for KEF LS50 Wireless and LSX speakers

License: MIT License

Python 100.00%
home-assistant hacs kef ls50 ls50w lsx

media_player.kef's Introduction

CHECK OUT https://www.home-assistant.io/integrations/kef/ (which is more up-to-date)

Home Assistant custom_component for KEF speakers

hacs_badge

Supported: KEF LS50 Wireless (tested with latest firmware at 08-11-2019, p6.2101809171.105039422) Untested: KEF LSX

Supported features

  • Get and set volume
  • Mute and unmute
  • Get and set source input
  • Turn speaker on and off
  • Automatically connects and disconnects when speakers goes online/offline

Use in Home Assistant

Install

(Recommended) Installation with HACS. Go to the HACS store and install KEF.

(Alternative) Manual installation. Download the repo. Create folder in your home assistant config folder:

mkdir -p /path/to/config/custom_components/
cp -r media_player.kef/custom_components/kef /path/to/config/custom_components/

Configure

Add the component to Home Assistant by adding the following to configuration.yaml:

media_player:
  - platform: kef
    host: 192.168.x.x  # the IP of your speaker
    type: LS50  # or LSX
    name: MyAwesomeSpeaker  # optional, the name in Home Assistant
    maximum_volume: 0.5  # optional, to avoid extremely loud volumes
    volume_step: 0.05  # optional
    inverse_speaker_mode: false  # optional, switch L/R to R/L
    standby_time: 20  # optional, either 20 or 60 (in minutes) or leave out for an infinite standby time

Discussion

See this Home Assistant discussion thread where the creation of the KEF speakers is discussed.

License

MIT License

Contributions

media_player.kef's People

Contributors

basnijholt avatar gronis avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

media_player.kef's Issues

The component does not load in HASS v0.115.3

I put the component into custome_components and configured the media-player entries, but upon HASS restart it gives me this error in logs:

 Sep 30 12:05:06 raspberrypi hass[29538]:     return _bootstrap._gcd_import(name[level:], package, level)
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
Sep 30 12:05:06 raspberrypi hass[29538]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
Sep 30 12:05:06 raspberrypi hass[29538]:   File "/home/pi/.homeassistant/custom_components/kef/media_player.py", line 10, in <module>
Sep 30 12:05:06 raspberrypi hass[29538]:     from custom_components.kef_custom.aiokef import (
Sep 30 12:05:06 raspberrypi hass[29538]: ModuleNotFoundError: No module named 'custom_components.kef_custom'

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.