Source: factory.service/package.gekkoridge/ObjServiceTuya.py
Tuya smart device service.
Authenticates via HMAC-SHA256 signed requests
to the Tuya Cloud API v2.0. Manages device
state and property updates.
| Method | Signature | Description |
|---|---|---|
| list_devices | list_devices() -> list[dict] |
Fetch all devices linked to the account. |
| sync_devices | sync_devices() -> int |
Fetch devices and upsert into data_tuya. |
| get_device_status | get_device_status(device_id: str) -> list[dict] |
Get current status properties of a device. |
| record_status | record_status(device_id: str) -> bool |
Snapshot device status to data_tuya_status. |
| set_device_property | set_device_property(device_id: str, property_name: str, property_value: Any) -> bool |
Send a command to set a device property. |
| process | process(context: dict) -> dict |
Workflow entry point for Tuya operations. |