Hah! True!
Well, I spent some time over the last few weeks messing around with Vera, and the latest Denon code from code.mios.com. I also spent a little time inside the API docs I could find for a Denon 3808 just for fun.
I made a few changes to my local copy of the code, which does the following:
- Receivers that have been named through the menu on the receiver now inherit that name and show up in Vera that way (instead of just the model number – receivers that do not support naming will behave the way they used to)
- The regex for the source names was broken on my stock AVR-1912 (specifically, the NET/USB source and V.AUX source). I fixed it on mine and it parses out the stock AVR-1912 sources as well as sources with spaces in the names now.
- Added support for digesting and saving the following to the device variables: individual channel volume levels, maximum volume (was previously statically defined at the top of the lua), audio source for a given input, and audio codec for a given input.
Nothing really happens with those device variables, but now the Denon plugin doesn’t toss as many unhandled return log messages as it used to for me. Previously I’d get a storm of unhandled returns whenever the volume changed or the source changed.
I’ll spend a few minutes tonight looking at the json side, I know a little about it but not how Vera is using it to define what gets displayed where.