Closed valeale08 closed 2 years ago
Hi,
I have checked and there is no API to change the source of audio. There is only one API to change sound mode (Standard, Optimised, Amplify)
I guess the only option is to create custom switches with a list of commands that copy what buttons you press on physical remote to change the source.
Hi, thanks, I get it to work, I have now a switch for HDMI and TV Audio output.
Only one last thing open. I would like to have switch turning sound to TV-Audio before shutting down the TV. I'm currently using a command and was hoping that pushing the power button for 3 seconds would turn off the TV instead of going into Art mode. Is there a different Key turning of the TV completely?
{ "app_list": false, "devices": [ { ..... "options": [ "Frame.RealPowerMode", "Frame.ArtSwitch.Disable", "Frame.PowerSwitch.Disable" ], "switches": [ { "name": "Audio TV", "command": [ "KEY_MENU", "KEY_DOWN", "KEY_ENTER", "KEY_ENTER", "DELAY2s", "KEY_UP", "KEY_ENTER", "DELAY2s", "KEY_HOME", "DELAY2s", "KEY_HOME" ] }, { "name": "Audio TV - OFF", "command": [ "KEY_MENU", "KEY_DOWN", "KEY_ENTER", "KEY_ENTER", "DELAY2s", "KEY_UP", "KEY_POWER3S" ] }, { "name": "Audio HDMI", "command": [ "KEY_MENU", "KEY_DOWN", "KEY_ENTER", "KEY_ENTER", "DELAY2s", "KEY_DOWN", "KEY_ENTER", "DELAY2s", "KEY_HOME", "DELAY2s", "KEY_HOME" ] } ] } ], "platform": "SamsungTizen" }
Looks like you made a mistake. You wrote s with uppercase.
KEY_POWER*3S
instead of KEY_POWER*3s
Hi I'm looking for a switch changing the audio from TV to HDMI and back. Can't find the right the command. Can anyone help me with that?