Conflict Error for Smarthings CLI

Hello all, I was using smarthings cli. This command used to work until a few days ago and now it is not working. Anyone knows the problem?

smartthings devices:commands {device_id} switch:off
AxiosError: Request failed with status code 409:
{“requestId”:“6910330072523279806”,“error”:{“code”:“ConflictError”,“message”:“invalid device
state”,“details”:}}
Code: ERR_BAD_REQUEST

It says “invalid device” which seems to imply that the deviceID being supplied is wrong or isn’t matching any device in your account. I’d verify the deviceID on the CLI or AWA.

Thank you for the message. I verified the id from

smartthings devices

So the device id is not the issue.

Use this command:
smartthings devices:commands {device_id} main:switch:off

Thank you everyone. It looks the error was not from the command line.

My TV sometimes disconnects wifi. When I reinitialized, this command is working.

Obviously this is not “conflict error”. Hope the error message to be more clear such as “device is not accessible”.