π Introduction
A library for controlling Duux Whisper Flex 2 smart fans through the Cloudgarden cloud API and a local MQTT broker.
@kud/duux controls Duux Whisper Flex 2 smart fans β passwordless sign-in, device discovery, one-shot commands, and a stateful session that reacts to state changes over either Duux's Cloudgarden cloud API or a local MQTT broker. It's the core library behind @kud/duux-cli, the terminal client.
What's here
- π Getting Started β install, sign in, and discover your fans
- π Discovery & Devices β listing fans, addressing them correctly, and renaming them
- ποΈ Commands β the
tune set <param> <value>grammar and every builder - π Sessions β a live, event-driven connection to a fan
- π Transports β cloud vs local MQTT, and the protocol quirks of each
- π API Reference β the full export surface