Started work on an 'Onkyo AVR / Pioneer AVR / Integra AVR' custom integration

Hi all, version 0.7.1 is now available.

0.7.1

  • added sensor that shows current volume (UC Firmware 2.7.1+)
  • fix for updating albumart when running firmware 2.7.0+ (for example when using Onkyo to control Spotify)
  • removed duplicate steps albumart hash
  • removed duplicate steps eiscp command handling
  • improved handling of remote sleep/wakeup
  • source switch: query volume (level can be changed because of source volume setting in AVR per input source)
  • source switch: clear album art when not applicable
  • source switch: clear media attributes so they can be updated with new data, prevents showing old data if new source does not deliver similar info

If your previous version is 0.6.5 or lower, read this

If your previous version is 0.7.0 then that one-time extra step is not needed and you can upgrade without it.

Sensor is described here

Thank you for update 0.7.1.

I had problems in 0.7.0 with the remote not establishing a connection after longer sleep times or a power cycle of the AVR. Had to reboot the remote and then the connection worked again. Those are gone now. Using it with Onkyo TX-NR555

Hi @Stank9265 , thanks for letting me know!

I’m currently testing a few extra sensors: source, audio in/out, video in/out. Those will be in v0.7.2.

If you have any other issues or wishes with this integration just let me know and I will see what I can do.

Cheers,

Ed

@Eddy I apologize for what is likely a dumb question but we were watching something on AppleTV last night and for the first time I noticed that whereas previously my volume went up/down by 0.5 increments (60, 60.5, 61, etc) it now goes up/down in 1.0 increments (this is looking at the on screen display). I’m not saying it’s a 0.7.1 issue as it’s likely I likely simply never realized it previously. I went into setup again and changed “Adjust Volume Display” from Yes to No and it still behaved that way. Then I changed the Volume Scale from 0-100 to 0-80 and nothing changed. Is there another configuration step I need to do to get 0.5 increments? The Onkyo app (and IR control) still does 0.5. As always, thank you!

Hi @PNWUC , to be honest I expected that question since v0.0.1 :smiley: The integration is doing 1.0 volume steps since the first version. It then always matches the level showing on the remote itself when changing volume (at this moment the remote itself cannot show 0.5 steps on the display, only integers like 1,2,3,…).

It is possible to send 0.5 steps by cheating with the ‘Input source’, select that as command for the volume button and then as ‘source’ enter ‘volume level-up’ or ‘volume level-down’ without the quotes. See the Cheats section in the readme of the integration. But then the value shown by the remote will be a bit off when the level is at x.5

If the remote itself can show 0.5 steps in the future, I will add something like a ‘volumeUp0.5’ to the list of commands but if I do that now I assume I would get too many messages about volume level on remote not matching level on AVR.

Edit Dec 20: I now added this info to the doc about volume.

Kind regards,

Ed

Hi all,

v0.7.2 is now available, it sets some extra sensors:

  • Volume

  • Source

  • Audio Input

  • Audio Output

  • Video Input

  • Video Output

  • Output Display

When you switch Source, the integration will try to refresh the sensor values. You can send a request to the AVR to refresh the information when you suspect the value has not been updated, trigger the `Info` command in that case

If your previous version is 0.6.5 or lower, read this

If your previous version is 0.7.0 or higher then that one-time extra step is not needed and you can upgrade without it.

Sensors are described here

Hi all,
Version 0.7.3 is now available:

  • several changes under the hood, like:

    • replaced AsyncQueue with async.QueueObject
    • centralized constants
    • moved reconnection logic to its own separate class
    • stateManager also determines the 'sub-source’ when source is ‘NET’
    • restructured some code for better maintainability
  • you can now directly switch to a specific ‘sub-source’ of ‘NET’ read the doc:

    • TuneIn
    • Spotify
    • Deezer
    • Tidal
    • AmazonMusic
    • Chromecast
    • DTS-Play-Fi
    • AirPlay
    • Alexa
    • Music-Server
  • queue some incoming message types so less chance of missing a message send by the AVR

  • creation of sensors is now configurable during setup (yes/no, all or nothing, you can delete the ones you don’t use)

  • two new sensors available:

If your previous version is 0.6.5 or lower, read this.

If your previous version is 0.7.0 or higher then that one-time extra step is not needed and you can upgrade without it.

This is the last version that will offer the easy migration path from v0.6.5 or lower versions.

FYI: I installed UC beta firmware 2.8.3 on my R3 and v0.7.3 appears to be working fine on the new firmware.

Hi all,

v0.8.0 is now available.

It expects (beta) firmware 2.8.3

Here are the highlights:

  • migration to v.0.7.x has been removed (if your current version is v0.6.5 or lower, first install v.0.7.x and perform migration)
  • Front Panel Sensor gets refreshed on start and after source switch
  • commands and mapping are split into dedicated files
  • several parts of the code are moved to dedicated classes to improve maintainability
  • added some unit tests
  • info command now also queries source
  • integration version is mentioned in AVR on/off logstatements
  • backup/restore of configuration is now supported through setup, see backup/restore doc
  • the new backup/restore is compatible with integration manager (thanks Jack!)
  • the list of Listening Modes is updated with some Pioneer translations (thanks Harvey!)
  • the first select entity is available, for listening modes, see the select doc
  • updated documentation
1 Like

FYI, integration running fine on UC beta firmware 2.8.4

Hi all, v0.8.1 is available:

  • fixed issue that blocked certain AVR names
  • fixed repeatedly querying of the AVR on integration start
  • moved some parts of the code to dedicated classes for better maintainability and as preparation for easier unit testing
  • updated project description based of feedback of David
  • updated instructions about using slider to control AVR volume
  • added select-entity for input-selector, similar workings as select-entity for listening mode
  • both select-entities accept ‘none’ as input during setup step, they will not be created in that case
  • added posibility to select TuneIn Presets, check out the TuneIn doc

Tested on UC firmware v2.8.4

Hi all, v0.8.2 is available: fixed bug that prevented selecting TuneIn presets with double digits.

Hi all v.0.8.3 is available:

- volume up/down and mute on multiple zones, read the doc

- changed integration name and description to ‘Onkyo/Pioneer/Integra AVR’ (internal id is not changed so your mappings in activities are not impacted)

- added Architecture and Operation doc, written by my dear friend Claude Sonnet

- based on this list, added 53 missing commands

Hi, v0.8.4 is available:

  • bugfix: prevent listening-mode query loop
  • bugfix: internal TuneIn Preset macro now considers zone, preventing main to switch on while only needing zone2 and/or zone3
  • updated docs: added info about zones and the use of NET subsources
  • bugfix: mediawidget fixes for zone2/3, source agnostic updates are now shared by zones playing same source
  • new: you can now configure the integration to use shorter display names for the entities by not showing their IP address. To change your already configured entities from long-name to short-name or the other way around: remove the integration, install it again and during setup/configuration set Entity name style to Short - hide IP address. As the IDs in the background don’t change all your mappings keep on working.

Hi all,

v0.8.5 is available:

New:

  • TuneIn now allows mediabrowsing of the ‘my presets’ list (only works with UC firmware v2.9.1+)


Under the hood:

  • updated github workflow
  • raised node baseline and now using v0.5.0 of ‘unfoldedcircle/integration-node-library’ so deleted the custom wrapper for select-entities (no change in behavior of the Onkyo/Pioneer/Integra integration)

Hi all, version v0.8.6 is available. It contains a few more commands (for example dirac) and can be configured to display a calculated relative volume level on the remote. About the absolute/relative setting:

  • there currently is a trade off: when you configure the integration to work with dB (relative), you cannot use the slider yet!
  • relative calculation: if the calculated value does not match with the AVR, please let me know and preferably with some examples like “if absolute = 50 then relative according to your AVR is -xx”, a couple of those examples will help getting a better calculation. I expect some issues with it, maybe we have to decide to stick to absolute in the end but I would like to give this a try :slight_smile:

Hi all, v0.8.8 is available:

  • fixed bug that sometimes prevented switching to another subsource of NET
  • mediabrowser for Tidal, including Tidal menu, see the Tidal doc
  • rearranged docs a bit

Tip: UC beta firmware v2.9.3 allows you to upgrade integrations directly in web configurator! See screenshot in Installing a new version directly within the web configurator running Unfolded Circle Firmware v.2.9.3+ on this doc.

Hi all, v0.8.9 is available.

In case the AVR sends out ‘unknown’ for AV info during a switch in source or content, the next update might not be sent or picked up. In that ‘unknown’ case the Integration will start a timer and after a few seconds trigger the AVR to send updated AV info so the integration can update the related sensors. If in the meantime a new AV update was already received then the integration will cancel the timer and not trigger the AVR.

Hi all, v0.8.10 is available:

  • TuneIn: (re)configurable to just show My Presets or the full menu so you can browse the TuneIn menu using MediaBrowser
  • TuneIn: shows currently playing station in MediaBrowser where applicable
  • MediaBrowser for Tidal and TuneIn: next to ‘main menu’ now also a ‘back’ option is available to navigate back one step
  • Default log level set to warn, (re)configurable during setup
  • refactored parts of the code
  • updated architecture doc
  • code style corrections by prettier
  • updated dependencies

Hi all, v0.8.11 is available:

  • refactored parts of the code that handles subsources of NET like TuneIn, Tidal and Deezer
  • added MediaBrowser support for Deezer (similar to TuneIn and Tidal)
  • updated docs
  • updated dependencies
  • added more unit tests