02.02.2023, 08:29
Have you replaced "--devices ID--" with actual device id in the request URL?
Remove log calls from inside the request table.
Your JSON is incorrect, use json.encode to have a valid output:
Remove log calls from inside the request table.
Your JSON is incorrect, use json.encode to have a valid output:
Code:
test = json.encode({
commands = {
{
component = 'main',
capability = 'switch',
command = 'on',
}
}
})