janstol / yeedart

Simple Dart library that lets you control Yeelight devices over LAN.
MIT License
10 stars 4 forks source link

Name is empty #10

Closed guyluz11 closed 2 years ago

guyluz11 commented 3 years ago

The device from Yeelight.discover() return with an empty name '' although the name appears in the Yeelight app.

Device type: yeelight 1SE

Other params seem correct.

janstol commented 2 years ago

Hi, this happens because name reported in discover response is stored on device and name shown in the Yeelight is stored in cloud. See the documentation.

set_name_prop

So I think you should probably set the name by calling device.setName method.