Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Separate DLNA_DMR and DLNA_DMS devices #204

Merged
merged 3 commits into from
Aug 8, 2018
Merged

Separate DLNA_DMR and DLNA_DMS devices #204

merged 3 commits into from
Aug 8, 2018

Conversation

StevenLooman
Copy link
Contributor

The DLNA standard specifies four device types (see the Wikipedia page on DLNA):

  • DMS: Digital Media Server
  • DMR: Digital Media Renderer
  • DMC: Digital Media Controller
  • DMP: Digital Media Player

At this moment netdisco discovers DMS and DMR devices as one, named DLNA.
Currently, Home Assistant is - as far as I know - only interested in DMR devices (as per home-assistant/core#14749). The component in home-assistant now needs to detect if the device is a DMR device.

If these device types are separated, home-assistant becomes less 'polluted' with checks for proper device types. Also, introducing a DMS component to home-assistant would not work with discovery, as the DLNA_DMR component already 'catches' the DLNA discoveries.

Also, there are 4 DMS and 3 DMR versions. Currently only version 1 of both is discovered. This pull request makes netdisco support the other versions.

Please do inform me before merging (and releasing) this! The DLNA_DMR component in home-assistant + discovery has to be updated as well.

@balloob
Copy link
Collaborator

balloob commented Aug 7, 2018

Thanks!

ok to merge when lint addressed and PR for Home Assistant created 👍

@balloob balloob merged commit 9be4a78 into home-assistant-libs:master Aug 8, 2018
@balloob
Copy link
Collaborator

balloob commented Aug 8, 2018

Released as netdisco 2.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants