Node.js module for Xiaomi/Aquara smart home hub
npm install node-xiaomi-smart-homeNote that you need to switch on the developer mode - HOWTO. The link is in Chinese, but good enough with google translate and screenshots.
bash
npm install --save node-xiaomi-smart-home
``see examples in JavaScript and TypeScript in examples