Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Add support for Sonos One player - #4429

Merged
kaikreuzer merged 1 commit into
eclipse-archived:masterfrom
ivivanov-bg:add_support_for_sonos_one
Oct 23, 2017
Merged

Add support for Sonos One player#4429
kaikreuzer merged 1 commit into
eclipse-archived:masterfrom
ivivanov-bg:add_support_for_sonos_one

Conversation

@ivivanov-bg

Copy link
Copy Markdown
Contributor

Add support for Sonos One player

Signed-off-by: Ivaylo Ivanov ivivanov.bg@gmail.com

xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd">

<!-- Player ONE Thing Type -->
<thing-type id="One" listed="false">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be better "ONE" in capitals (to be in sync with the PLAYXs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well - it could be - but the the discovery has to be tuned too because the player announces itself as 'One' and not 'ONE'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The discovery code could ignore the case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree that it would be better to harden the discovery code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real Name of Play 1 is "PLAY:1" and the real name of the one is "One" and NOT "ONE". So i recommend to use the real name for the ID. Sonos changed their pattern: http://www.sonos.com/de-de/shop/one.html

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but then these lines are clearly wrong in the first place: https://github.com/eclipse/smarthome/pull/4429/files#diff-148f59c83d8c2a479dea48c22dd67b70R10

@lolodomo lolodomo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add new entries in the translation files, somethiong similar to
thing-type.sonos.CONNECT.label = CONNECT
thing-type.sonos.CONNECT.description = Représente un lecteur pré-ampli Sonos CONNECT
If you don't know how to translate, put the line in comments.

<channel id="sleeptimer" typeId="sleeptimer" />
<channel id="currenttransporturi" typeId="currenttransporturi" />
<channel id="currenttrackuri" typeId="currenttrackuri" />
</channels>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no line-in in the One ? If line-in is present, take example on the PLAY:5.

@lolodomo

Copy link
Copy Markdown
Contributor

If "One" is kept as thing type id, there is nothing to change in the discovery code.
Please add the following lines in the french translation:
thing-type.sonos.One.label = One
thing-type.sonos.One.description = Représente une enceinte Sonos One

@kaikreuzer kaikreuzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure to use the correct spelling "One" throughout the PR, especially in user facing texts.

Signed-off-by: Ivaylo Ivanov <ivivanov.bg@gmail.com>
@kaikreuzer
kaikreuzer merged commit 4049898 into eclipse-archived:master Oct 23, 2017
hsudbrock pushed a commit to hsudbrock/smarthome that referenced this pull request Oct 24, 2017
Signed-off-by: Ivaylo Ivanov <ivivanov.bg@gmail.com>
@ivivanov-bg
ivivanov-bg deleted the add_support_for_sonos_one branch November 3, 2017 15:29
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
@openhab-bot

Copy link
Copy Markdown
Contributor

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/sonos-one-discovered-as-zoneplayer-solved/39834/3

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.

5 participants