sahilchaddha / homebridge-yeelight-platform

Homebridge plugin for Yeelight Lights supporting Scenes/Moods/Color Flow/Custom Presets/Music Flow/Night Mode
MIT License
58 stars 7 forks source link

Change id -1 to 1 #26

Closed ierhyna closed 2 years ago

ierhyna commented 4 years ago

Id must be integer, otherwise there is 'invalid command' error. Fixes #23 and #25

YusufcanY commented 2 years ago

pls merge this

YusufcanY commented 2 years ago

@sahilchaddha

howyawn commented 2 years ago

Hi all, reinstalled the plugin but I am still getting this error and I can't command any bulbs on or off. Any ideas?

[19/02/2022, 10:33:27] [Yeelight-Platform] [ '** Sending Command to ', [ '0x000000001b752464' ], { id: -1, method: 'set_power', params: [ 'on', 'smooth', 500 ] } ] [19/02/2022, 10:33:27] [Yeelight-Platform] [ 'Device Response', '0x000000001b752464', { id: 0, error: { code: -1, message: 'invalid command' } } ]