- install smartthings cli
- configure login for the cli, or provide a PAT (Personal Access Token) in "TOKEN" env variable (or put in .env.local file)
- run
npm i
- run
npm start
Find your soundbar device id with smartthings devices
command
send GET request to http://localhost:3000/soundbar/:id/soundmode/:mode e.g http://localhost:3000/soundbar/abc/soundmode/surround