NorthernMan54 / homebridge-yamaha-zone-tv

12 stars 5 forks source link

Current volume is not in sync with the receiver #20

Closed nitaybz closed 4 years ago

nitaybz commented 4 years ago

I noticed that if I change the volume in the remote and than change it from the plugin, the plugin will remember its last state and not make the change relative to the current state of the receiver.

That could be easily fix by setting properly the get function of the volume characteristic to be updated with the current AVR state.

NorthernMan54 commented 4 years ago

A better approach than implementing the get event is to create a status refresh function and have it fire regularly and update the current volume. That way the Home app will change automatically without touching the app.

Personally I never use the remote, as the receiver is sitting in a cupboard

On Jul 26, 2020, at 9:18 AM, Nitay Ben-Zvi notifications@github.com wrote:

I noticed that if I change the volume in the remote and than change it from the plugin, the plugin will remember its last state and not make the change relative to the current state of the receiver.

That could be easily fix by setting properly the get function of the volume characteristic to be updated with the current AVR state.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/homebridge-yamaha-zone-tv/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXEFGGA5KW2C2ZKH6D2VH3R5QUJRANCNFSM4PH7JB7A.