set_power
Turn any Tuya or Smart Life device on or off directly over your local network, with optional datapoint override for custom relay switches.
Instructions
Turn a device on or off.
switch_dp overrides the datapoint carrying the relay/switch. Leave it
unset to let tinytuya pick, which is correct for the large majority of
plugs, switches and bulbs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| device | Yes | ||
| switch_dp | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||