Desk Lamp LAN control broken



I’m working on scripts to integrate Yeelights in some applications, on the recent firmware versions there seems to be an issue with sending commands to the Mi Desk Lamp. The lamp only takes maybe 1 out of 10 commands, otherwise it closes or refuses the connection.

Any idea about that? My current firmware is 1.3.7_058, users reported the bugs from firmware 1.3.0 on.