Previous: Key Shape and Enums, Up: Concepts [Contents]
configure parses <plugin name="tuya-cloud"> (credentials,
poll interval, allowlist).
start opens the cloud context on the worker thread, obtains a
token, discovers devices, loads models, runs an initial poll, and emits
a batch of STCAValue entries.
PUT /data/… (or D-Bus SetData) calls
write_value(s), which groups commands per device and posts
/v1.0/devices/{id}/commands on the cloud thread.
stop cancels the timer and tears down the cloud loop.