Next: , Previous: , Up: Keys and Types   [Contents]


5.2 Value Encoding

Boolean

0 / 1.

Integer / float

Raw cloud numeric value. Downstream STCS transforms (for example divide-by-10 for decidegrees) belong in the service XML, not in this plugin.

Enum (string)

0-based index from an internal string-to-index map. Prefer the thing model range (GET /v2.0/cloud/thing/{id}/model), which is often more complete than /specifications (for example thermostat mode=home/auto/temporary). The table sticky-extends when a new string is observed at runtime.

Note: some devices expose a wider status range than the writable functions set. Writes of home/temporary may return Tuya error 2008 while auto works.