Table of Contents

Event DeviceStateChanged

Namespace
Yeelight
Assembly
YeelightClient.dll

Raised when a property of a light changed (its brightness, whether it is connected, its name, ...), for every light of the client. The event says which property changed: a change that is still waiting when the same property changes again is raised once, so read the property.

public event EventHandler<DeviceStateChangedEventArgs>? DeviceStateChanged

Returns

EventHandler<DeviceStateChangedEventArgs>
Raised when a property of a light changed (its brightness, whether it is connected, its name, ...), for every light of the client. The event says which property changed: a change that is still waiting when the same property changes again is raised once, so read the property.