This example shows how to build an assistant for controlling Xiaomi vacuum cleaner on top of Dasha. If you need any help, join us in our Developer Community.
The app is built on node-mihome and uses it's specific parameters. Please consult with their docs on how to obtain your DEVICE_ID, DEVICE_TOKEN, etc.
- Clone the repo and install the dependencies:
git clone https://github.com/dasha-samples/dasha-miio-vacuum-cleaner
cd dasha-miio-vacuum-cleaner
npm install- Create a file
.envthat contains:
DEVICE_ID=<your_deviceid>
MI_USERNAME=<your_mi_username>
MI_PASSWORD=<your_mi_password>
MI_MODEL=<your_device_model>
DEVICE_IP=<your_device_ip>
DEVICE_TOKEN=<your_device_token>- Create or log into your account using the Dasha CLI tool:
npx dasha account login- To start a text chat, run:
npm start chat- To receive a phone call from Dasha, run:
npm start <your phone number>The phone number should be in the international format without the + (e.g. 12223334455)