17.02.2020, 10:14
Just remove all \\ from command strings.
More correct approach is to encode data via JSON:
More correct approach is to encode data via JSON:
Code:
require('json')
power = event.getvalue()
command = json.encode({
method = 'setPowerStatus',
id = 55,
version = '1.0',
params = {
{ status = power }
}
})
ipControlTV("system", command)