Skip to content

Instantly share code, notes, and snippets.

@piksel
Created January 9, 2026 13:43
Show Gist options
  • Select an option

  • Save piksel/2f20ecbe0a06d3af4cf0df99df165dce to your computer and use it in GitHub Desktop.

Select an option

Save piksel/2f20ecbe0a06d3af4cf0df99df165dce to your computer and use it in GitHub Desktop.
Samsung SmartThings CLI, change display input
#!/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