skycris
(Ayden)
August 16, 2024, 11:39pm
1
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
skycris:
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.
skycris
(Ayden)
August 17, 2024, 12:07am
3
Thank you for the message. I verified the id from
smartthings devices
So the device id is not the issue.
TapioX
August 17, 2024, 6:01am
4
Use this command:
smartthings devices:commands {device_id} main:switch:off
skycris
(Ayden)
August 19, 2024, 4:27pm
5
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”.