realthk / asyncpioneer

Async Pioneer AVR for Home Assitant
27 stars 22 forks source link

Current volume for HDZone in XV (not in HZV) #16

Open user0x01 opened 3 years ago

user0x01 commented 3 years ago

Maybe only on VSX-930?

Workaround: add under this lines

        elif (data[:3] == "HZV" and self._zone == "HDZone"):
            self._volume = int(data[3:5]) / MAX_ZONE_VOLUME
            _LOGGER.debug("Volume: " + str(round(self._volume*100))+"%")

this new lines

        elif (data[:2] == "XV" and self._zone == "HDZone"): ## on VSX-930 XVnn
            self._volume = int(data[2:4]) / MAX_ZONE_VOLUME
            _LOGGER.debug("Volume: " + str(round(self._volume*100))+"%")