{
"id":"_ID_",
"jsonrpc":"2.0",
"method":"hub.scenes.scripts.add",
"params":{
"name":"Switch on all lights",
"code": "require \"core\"\n local items = core.get_items()\n if items then \n \n for _, item in ipairs( items ) do\n core.set_item_value( item._id, true ) \n end\n end"
}
}