Hi everyone, I’m trying to see if there is a way I can update a device type through the API. There seems to be a bug with the yeelight connector causing the devices go offline after a certain time (there are a couple of threads about this). We found out that over time the device type gets changed to placeholder and needs to be changed to ‘Simulated RGBW Bulb’ for the device to work again.
I’m trying to see if I can create a process that will do this automatically.
I created a token with access to the device permissions and my idea is to do a POST request to: https://graph-na04-useast2.api.smartthings.com/device/update
This is the same request that is done through the website. I’m sending the token in the header as Bearer and the id (device id) and type.id in the form data, however i’m getting a 403 error.
Is this the right approach or should I be doing something completely different?
I’m not trying to create anything fancy, just really a quick code in python that will be able to change the device type on demand for all my bulbs to ‘RGBW Simulated Bulbs’