diff --git a/src/api/Lights.ts b/src/api/Lights.ts index 18ed21f..f70f61e 100644 --- a/src/api/Lights.ts +++ b/src/api/Lights.ts @@ -99,7 +99,7 @@ export class Lights extends ApiDefinition { * Renames a Light on the Bridge to the specified name in the Light instance. */ renameLight(light: LightsType): Promise { - return this.execute(lightsApi.setLightAttributes, {id: light, light: light}); + return this.execute(lightsApi.setLightAttributes, {id: light.id, light: light}); } // /**