ol-iver / denonavr

Automation Library for Denon AVR receivers.
MIT License
176 stars 67 forks source link

Request for Input-Format Commands #254

Closed namornoditz closed 1 year ago

namornoditz commented 1 year ago

This is my first post in github. Sorry if this is the wrong place!

I'm trying to include my Denon AVR in HomeAssistant. I miss the sensors/commands for the current Audio-Input-Format. The get_command option in HA does not response a value.

In Telnet I can use this Commands Input Audio-Format: "SYSDA ?" Input Channel Layout: "SSINFAISFOR ?"

starkillerOG commented 1 year ago

The input audio-format and layout also seem to be available under http://192.168.1.IP/SETUP/GENERAL/INFORMATION/d_information.asp Unfortunately I could not find them anywhere in the XMLs.

@ol-iver would it be possible for you to add the Telnet commands to at least store the status if the telnet interface is used? I could make a PR in homeassistant to add a sensor platform to expose the input audio format and channel layout.

I am too instrested in using these for automations in HomeAssistant.

namornoditz commented 1 year ago

I made some pyhton scripts for my needs. https://github.com/namornoditz/denon_avr_parameter

ol-iver commented 1 year ago

In the latest version you can send telnet commands in denonavr. When you are interested in the reponse values, you could register a callback for these evente before. When you are not interested in them anymore, you can unregister them again.

This is an example how the volume callback is registered.

I'm not sure how to integrate this into HomeAssistant. The sending part is easy, but I'm not sure if it is possible to register custom callbacks for the responses. I could give it a try when I finally released the new version.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.