Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.65 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.65 KB

Home Assistant integration of the KEF LS 50 Wireless

Supported: KEF LS50 Wireless (Requires up to date firmware)

Untested: KEF LSX

Credit

This project is based on code from Gronis (https://github.com/Gronis/pykef) and investigations of chimpy (wireshark god).

Features supported

  • Get and set volume
  • Mute and unmute
  • Get and set source input
  • Turn off speaker
  • Turn on speaker (via HA service call)

Discussion

See home assistant thread

Use in Home Assistant

  1. Create folder in your home assistant main folder:
mkdir custom_components/media_player
  1. Copy pykef.py and kefwireless.py into that folder. This will make the custom component kefwireless available to Home Assistant:
cp pykef.py custom_components/media_player
cp kefwireless.py custom_components/media_player
  1. Add component to Home Assistant by adding to configuration.yaml and restart HA:
media_player:
   - platform: kefwireless
     host: 192.168.x.x # change to the IP of you speaker, no autodetection yet
     name: MyLS50W # optional, the name you want to see in Home Assistant
     turn_on_service: switch.turn_on # optional, place a HA service to call in here: domain.service 
     turn_on_service_data: '{"entity_id": "switch.some_switch"}' # optional, place the service data in here. Must be in quotation marks ('). Must be one line   

##Limitations

  • LS50 speakers take about 20 seconds to boot. Thus, after turning them on please be patient. Turning them on via HA is not possible.

License

MIT License

Authors

  • Robin Grönberg
  • Bastian Beggel
  • chimpy (wireshark god)