Skip to content

@mega-yfue/eufy-sdk / tuya / buildPublishDpsAction

Function: buildPublishDpsAction()

ts
function buildPublishDpsAction(
   devId, 
   gwId, 
   dps
): TuyaAction;

CONTROL: publish device data-points. dps is { "<dpId>": <value> }; note it is JSON-stringified INSIDE the postData (Tuya nests the dps map as a string). Action thing.m.device.dp.publish v2.0.

Parameters

devId

string

gwId

string

dps

Record<string, unknown>

Returns

TuyaAction

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.