Next: Adapter HTTP Behaviour, Previous: Keys and Types, Up: STCA Tuya Cloud Plugin [Contents]
Keys marked writable in the device specifications / model
(accessMode containing w, or the functions list) appear
with access rw in the adapter store. Writes use the same
numeric encoding as reads (enum index ⇒ string from the table).
PUT /data/{device_id}:{code} or D-Bus
SetData.
write_values groups commands per device and posts one
/v1.0/devices/{id}/commands body per device.
Cloud status can lag tens of seconds behind a successful write (HTTP 204 / success). Downstream STCS feedback settle delays are normal; do not treat a delayed read as a failed write without checking the plugin log.