Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Feature/add speaker device #45

Merged
merged 19 commits into from
Nov 29, 2022

Conversation

TheMrBooyah
Copy link
Collaborator

Started to implement the speaker device.
No clue yet on how to implement starting playback on them.
Maybe if you have an idea?

@TheMrBooyah TheMrBooyah added enhancement New feature or request help wanted Extra attention is needed devices labels Nov 28, 2022
@dvdgeisler
Copy link
Owner

I guess you may control the playback using the SpeakerStateAttributes.playback field. In the IKEA app I found the following enum constants:

public enum PlaybackState {
        IDLE,
        PLAYING,
        PAUSED,
        NEXT,
        PREVIOUS,
        BUFFERING
}

IDLE proly corresponds to the "playbackIdle" state then. Thus, the enums are look like to be serialized according to the pattern "playbackX". I will give it a try and push the changes here.

@TheMrBooyah
Copy link
Collaborator Author

Yeah I guessed that would be the case.
Just don't know what the gateway accepts in the playback field. I suppose all music services

@dvdgeisler dvdgeisler merged commit fbd7662 into dvdgeisler:develop Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants