|  Developer
Updated on May 24, 2022

isBatteryState

  • Checking battery state of Ezlo Secure(E550)
  • This feature is available since version.
Edit
Field Type Required Description
blockOptions.method.args.state token + Required state of battery. Possible values: – battery is not connected – power cable is connected and battery is charging – power cable is connected and battery is fully charged – power cable is connected. It’s the same as charging or full. – power cable is NOT connected and battery is discharging
Edit
Internal error code Message Data
BAD_PARAMS Wrong params, rpc.params.invalid.
Edit
				
					{
   "blockType":"when",
   "blockOptions":{
      "method":{
         "name":"isBatteryState",
         "args":{
              "state":"state"
         }
      }
   },
   "fields":[
        {
           "name":"state",
           "type":"token",
           "value":"full"
        }
   ]
}