Discussions

Ask a Question
Back to All

most data does not seem to work

I use https://openapi.api.govee.com/router/api/v1/user/devices and it returns my 1 device a lightbulb. The name is correct...

{
"code": 200,
"message": "success",
"data": [
{
"sku": "H6006",
"device": "3B:13:98:17:3C:32:C8:CA",
"deviceName": "bulb1",
"type": "devices.types.light",
"capabilities": [
......

But when I run command to turn on or off, it says success but nothing happens.


Also when I run

https://openapi.api.govee.com/router/api/v1/device/state
{
"requestId": "uuid",
"payload": {
"sku": "H6006",
"device": "3B:13:98:17:3C:32:C8:CA"
}
}


It returns a response that shows its not online and not turned on, even though it is online and turned on...

{
"requestId": "uuid",
"msg": "success",
"code": 200,
"payload": {
"sku": "H6006",
"device": "3B:13:98:17:3C:32:C8:CA",
"capabilities": [
{
"type": "devices.capabilities.online",
"instance": "online",
"state": {
"value": false
}
},
{
"type": "devices.capabilities.on_off",
"instance": "powerSwitch",
"state": {
"value": 0
}
},

.....

For Turn Off I use: https://openapi.api.govee.com/router/api/v1/device/control
{
"requestId": "uuid",
"payload": {
"sku": "H6006",
"device": "3B:13:98:17:3C:32:C8:CA",
"capability": {
"type": "devices.capabilities.on_off",
"instance": "powerSwitch",
"value": 0
}
}
}

Response is
{
"requestId": "uuid",
"msg": "success",
"code": 200,
"capability": {
"type": "devices.capabilities.on_off",
"instance": "powerSwitch",
"state": {
"status": "success"
},
"value": 0
}
}

But it is still on.

I can turn off and on with phone app no problem.


Any help is appreciated.