loxhill / go-vee

An unofficial Go wrapper for the Govee API.
Other
1 stars 0 forks source link

Device(address, model) is empty #6

Open lordofscripts opened 4 months ago

lordofscripts commented 4 months ago

Given a known MAC address and a device model for a light fixture, I perform client.ListDevices() and every Device object is fully initialized.

However, if I call client.Device(address, model) the returned Device instance is only partly initialized. In that case the Device and is empty and both Controllable and Retrievable are false whereas Address, Model etc. are properly returned. For that device Controllable & Retrievable are true when using ListDevices().