GuySie / ha-meural

Integration for NETGEAR Meural Canvas digital art frame in Home Assistant
MIT License
57 stars 11 forks source link

Add support for Albums #33

Closed GuySie closed 4 years ago

GuySie commented 4 years ago

Meural has added an additional type of collected images to their system, called Albums. These are linked to corresponding albums on your smartphone and synced by the Meural app. We currently only support displaying Playlists, but should add support for Albums.

GuySie commented 4 years ago

On the Meural API side, albums are tracked separately from Galleries, in AlbumIDs[] as opposed to GalleryIDs[]. currentPlaying{} now uses "type" to declare if a gallery or album is being played. currentGallery does not update with album IDs.

GuySie commented 4 years ago

On the local side, the device does not seem to make a difference between Albums or Playlists. However, the ID used by the local device for a gallery that is an album is different than the ID used by the Meural servers for an album.

GuySie commented 4 years ago

Because we consider the list of galleries available on the local device leading, and albums available on the device are represented with gallery IDs (that do not match the server album IDs) on the local device, there does not appear to be anything we have to do to support albums.

Albums are given a gallery ID when sent to the local device, and changing galleries to that ID from Home Assistant works. So albums currently work the same as normal playlists.

The only issue is that we are unable to retrieve media browser thumbnails for albums, because IDs do not match between the local device and the server.