|  Developer
Updated on December 2, 2022

isBatteryLevel

  • Checking battery level of Ezlo Secure(E550)
  • This feature is available since version.
Edit
Field Type Required Description
blockOptions.method.args.comparator string + Argument declaration of comparator state. The value should be in field block with name . Possible values: , , , , , .
blockOptions.method.args.value int + Defines required battery .
Edit
Internal error code Message Data
BAD_PARAMS Wrong params, rpc.params.invalid.
Edit
				
					{
   "blockType":"when",
   "blockOptions":{
      "method":{
         "name":"isBatteryLevel",
         "args":{
              "comparator":"comparator",
              "value":"value"
         }
      }
   },
   "fields":[
        {
           "name":"comparator",
           "type":"string",
           "value":"<"
        },
        {
           "name":"value",
           "type":"int",
           "value":20
        }
   ]
}