GuySie / ha-meural

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

orientationMatch causes current_item to go out of sync #7

Open GuySie opened 4 years ago

GuySie commented 4 years ago

If orientationMatch is enabled on the Canvas device, the device will automatically switch to an item in the right orientation when the orientation of the device changes. However, the current_item in gallery_status - which we use to detect when we need to get new item details - does not update when this happens. We currently reload the gallery when we detect an orientation change to force an update of current_item, but this can cause flickering or a change in displayed item on the device. It would be preferable to find a way to update current_item that is not visible to the user.

GuySie commented 2 years ago

Check if syncing the Meural also updates the current_item? If it does that would work better than reloading the gallery, which causes a visible flicker/change.

GuySie commented 2 years ago

Nope, syncing does not update the current_item :( apparently the Canvas itself isn't even aware that it is displaying another item entirely if orientationMatch changes it. Unless Meural fixes this, reloading the gallery is still the best solution.