Home

Awesome

Lovelace forked daapd card

A lovelace card for Home Assistant to control a forked daapd instance.

This card allow you to control your forked daapd instance through Home Assistant. The following controls are available: master volume, play/pause, next/previous, on/off, output selection, individual output volume.

<img src="https://user-images.githubusercontent.com/457678/46584235-03d92100-ca61-11e8-9d4d-969cbca7f88c.gif" alt="Preview" width="400">

Requirements

Install

Simple install

resources:
  - url: /local/forked-daapd-card.js?v=0.0.2
    type: module

Install using git

git clone https://github.com/kalkih/forked-daapd-card.git
resources:
  - url: /local/forked-daapd-card/forked-daapd-card.js?v=0.0.2
    type: module

Updating

resources:
  - url: /local/forked-daapd-card.js?v=0.0.2
    type: module

If you went the git clone route, just run git pull from inside your config/www/forked-daapd-card/ directory, to get the latest version of the code. Then add the new version number to the end of the card reference url in your ui-lovelace.yaml like below.

resources:
  - url: /local/forked-daapd-card/forked-daapd-card.js?v=0.0.2
    type: module

Using the card

Options

NameTypeDefaultSinceDescription
typestringrequiredv0.0.1custom:forked-daapd-card.
entitystringrequiredv0.0.1The entity_id of your forked-daapd media_player (mpd) in home assistant.
ipstringrequiredv0.0.1Set the IP address of your forked-daapd server.
portnumber3689v0.0.1Set the port of your forked-daapd server.
ws_portnumber3688v0.0.1Set the websocket port of your forked-daapd server.
namestringoptionalv0.0.1Set a custom friendly_name which is displayed beside the icon.
iconstringoptionalv0.0.1set a custom icon from any of the available mdi icons.
outputslistoptionalv0.0.1If you want to only show specific outputs, include the id of each one in the list.

Example usage

Normal

- type: "custom:forked-daapd-card"
  entity: media_player.multiroom_audio
  ip: "192.168.1.5"
  name: Multiroom

Show only specified outputs

- type: "custom:forked-daapd-card"
  entity: media_player.multiroom_audio
  ip: "192.168.1.5"
  name: Multiroom
  outputs:
    - "225176710053082"
    - "962995053492"
    - "24918234768"

Getting errors?

Make sure you have javascript_version: latest in your configuration.yaml under frontend:.

Make sure you have the latest versions of forked-daapd-card.js.

If you have issues after updating the card, try clearing your browser cache.

License

This project is under the MIT license.