assistant-relay
assistant-relay copied to clipboard
Please expose more commands provided by the CATT CLI via Assistant Relay.
Is your feature request related to a problem? Please describe. Please expose more commands provided by the CATT CLI, via the /cast endpoint in Assistant Relay.
Describe the solution you'd like It would be great if I could use Assistant Relay to perform operations like...
- Check if the device is already playing something
- If not, cast to the device
- Else, do not interrupt what is playing
Using CATT, this would be possible by the following command...
if ! catt -d "Living Room display" status | grep 'PLAYING' ; then
catt -d "Living Room display" cast_site <url>
fi
Similarly, another CLI argument in CATT that would be helpful, is the ability to set the device volume. It would be great if Assistant Relay could expose this too.
catt -d "Living Room display" volume 0
Describe alternatives you've considered The alternative for folks like me who use docker (Hassio) to run Assistant Relay would be to have another container running CATT separately, to issue these commands. This seems redundant since Assistant Relay already uses CATT.
In V4 you can call almost any catt command but still response is not returned in body - but it is diplayed in the logs
@ajayjohn I will make PR with changes to V4 branc