Call:

				
					{
   "id":"_ID_",
   "method":"hub.scenes.expressions.list",
   "params":{ 
      "withCode": true
   }
}				
			

Reply:

				
					{
    "error": null,
    "id": "_ID_",
    "result": {
        "expressions":[ {
            "name":"TwoTwo",
            "code": "return 2 + 2",
            "value": 4 
          }
        ]
    }
}				
			

Show only expressions of types , ,

Call:

				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.expressions.list",
   "params":{
        "showCode": false,
        "filterTypes": [ "int", "float", "bool"]
   }
}				
			

Show only expressions comparable for type “illuminance”; can be “illuminance”, “int”, “float”. Illuminance has no converters defined.

Call:

				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.expressions.list",
   "params":{
        "showCode": false,
        "filterType": "temperature"
   }
}				
			

Show only expressions of type “temperature”.

Call:

				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.expressions.list",
   "params":{
        "showCode": false,
        "filterType": "temperature"
   }
}				
			

Reply:

				
					{
    "error": null,
    "id": "_ID_",
    "result": {
        "expressions":[
            {
                "name": "myVar1",
                "params": {},
                "value": "6",
                "variable": true
            },
            {
                "name": "kitchenHallTempAverage",
                "params": {
                    "items": [
                        {
                            "name": "kitchenTemperatureSetpoint",
                            "_id": "5fecdf73222aaa175f6d6be4"
                        },
                        {
                            "name": "hallTemperatureSetpoint",
                            "_id": "60c7696b933ffb710a8be319"
                        }
                    ]
                },
                "value": { "value": 1.27641, "scale": "fahrenheit" },
                "valueType": "temperature",
                "metadata": { "info": "contents of metadata field" }
            },
            {
                "name": "varWithError",
                "params": {},
                "error": "Some error occurred, error description here"
            },
        ]
    }
}