Previous: , Up: Configuration Reference   [Contents]


4.2 Optional Options

api-base

OpenAPI host. Default https://openapi.tuyaeu.com. Use the regional endpoint that matches the cloud project (US, CN, …).

poll-interval

Poll period. Plain milliseconds or a duration with suffix ms, s, m, h, or d (for example 120s). Default 120 seconds. Zero is rejected.

autodiscover

If true (default), list all project devices via GET /v2.0/cloud/thing/device. If false, only <device> allowlist entries are used (at least one is then required in practice).

device

Optional allowlist entry. Attribute id is required. If any <device> elements are present, only those IDs are polled.