Created
January 9, 2026 13:43
-
-
Save piksel/2f20ecbe0a06d3af4cf0df99df165dce to your computer and use it in GitHub Desktop.
Samsung SmartThings CLI, change display input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Get device ID: | |
| smartthings devices | |
| # Get available input sources | |
| smartthings devices:capability-status $DEVICE_ID main samsungvd.mediaInputSource -j | jq -r '.supportedInputSourcesMap.value[] | .id' | |
| # Set input source | |
| smartthings devices:commands $DEVICE_ID 'samsungvd.mediaInputSource:setInputSource("$INPUT_SOURCE")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment