realthk / asyncpioneer

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

feature request: listening mode #17

Open jtonk opened 3 years ago

jtonk commented 3 years ago

Hi,

I like the plugin and it's rock solid, thanks! Would it be possible to implement the listening mode (telnet command ****SR)

regards,

J.

glassbase commented 3 years ago

I wrote a couple python_script to do this. It would be great if it was apart of the component.

Here is one that sets listening mode to Dolby Surround.

import telnetlib

telnet = telnetlib.Telnet("10.0.0.15","8102")

telnet.write("0040SR".encode("ASCII") + b"\r")
telnet.read_very_eager()  # skip response
telnet.close()
quit()
realthk commented 3 years ago

Pls check current version with select_sound_mode service and current_sound_mode attribute (with mode names from the Pioneer xls)

glassbase commented 3 years ago

@realthk you're awesome