@Andre_Mens Okay, I used your commands and got the following responses:
Request #1:
{
"data": {
"devices": [
{
"device": "MY-DEVICE-ID",
"model": "H6160",
"deviceName": "Office LED Strip",
"controllable": true,
"retrievable": true,
"supportCmds": [
"turn",
"brightness",
"color",
"colorTem"
],
"properties": {
"colorTem": {
"range": {
"min": 2000,
"max": 9000
}
}
}
}
]
},
"message": "Success",
"code": 200
}
Request #2:
{
"data": {
"device": "MY-DEVICE-ID",
"model": "H6160",
"properties": [
{
"online": "false"
},
{
"powerState": "off"
},
{
"brightness": 100
},
{
"color": {
"r": 255,
"b": 0,
"g": 255
}
}
]
},
"message": "Success",
"code": 200
}
Request #3 (Turn On):
{
"code": 200,
"message": "Success",
"data": {}
}
Request #4 (Turn Off):
{
"code": 200,
"message": "Success",
"data": {}
}
But the last two do not turn on or off the light. I also tried the above second Request with the light on and got the same result (that the powerState was off). I’m guessing the “online : false” is the problem?
I had the polling time set to 20 already and tried again with 40. Also, after initial testing with the same result, I requested a new API Key and retested with the above results.
Again, the Govee app works fine for controlling the light, so not sure what is wrong. However, I do notice that when I use the app, it starts out showing the light as “Connection Failed” and then after a few seconds either switches to “Connected” or (maybe 50% of the time) gives a “Reconnect” button (but always connects successfully after a "Reconnect). I don’t know if this is normal behavior since I didn’t use the App before since the HA integration worked correctly up til this month.
So, presumably, this is a Govee problem since the API is returning erroneous information.
Thanks much!
Paul