Developer Web API Playground - Notes of geeky oneliners

This can be shortened to promise.then(…) :slight_smile:

Or this:

Homey.devices.getDevices()
.then(f => {
   return Object.values(f).filter((device) => device.driverUri === 'homey:app:com.mi.flora');
})
.then(devices => console.log(JSON.stringify(devices)));
3 Likes