- Visit the iot platform
- Create a Project
- Add Authorization
Standalone
- install modules with
npm install
- create a
.env
file (see.env.example
) - run tests with
npm test
- link, rename, test & unlink devices
- implement interactive test script
- implement pure CLI
- implement classes for other IoT devices (climate, fan, lock, etc.)
- Device
online
heartbeat timeout is ~5 minutes, so even though online status is registered within ~30 seconds, officialoffline
status is registered within the heartbeat timeout - status function values (
switch_*
,colour_data_*
, etc.) have their values updated instantaniously, so they can be used to determine a device's responsiveness - Most light bulbs (
dj
) consume ~30 Watts inwhite
mode, and <~30 Watts incolour
mode - Power sockets (
cz
) report down to at least ~32 Watts as measurable power consumption
Advanced low-level device communication. Utilizes tuya-connector-nodejs
.
See also